//proc/self/root/usr/share/gdb/python/ó
›à Rc @ só d Z d d l Z d d l Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d
„ Z
d „ Z d „ Z d
„ Z
d „ Z i e d 6e d 6e
d 6e d 6e d 6e d 6e d 6e d 6e d 6e
d 6e d 6Z d „ Z d „ Z d S( s# Extended prompt library functions.iÿÿÿÿNc C s
t j ƒ S( s The current working directory.( t ost getcwdu( t ignore( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_pwd s c C sŠ | d k r | } n y
| ƒ } Wn t j k
r= d | SXt | | ƒ rx t | | ƒ } t | ƒ rt | ƒ } n | Sd | | f Sd S( s, Internal worker for fetching GDB attributes.s s N( t Nonet gdbt errort hasattrt getattrt callable( t funct whatt attrt nattrt objt result( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_object_attr s
c C s t t j d | d ƒ S( s8 The selected frame; an argument names a frame parameter.t framet name( R R t selected_frame( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt
_prompt_frame* s c C s t t j d | d ƒ S( s: The selected thread; an argument names a thread parameter.t threadt num( R R t selected_thread( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_thread. s c C s t j S( s The version of GDB.( R t VERSION( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_version2 s c C s d S( s The ESC character.s ( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_esc6 s c C s d S( s A backslash.s \( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt
_prompt_bs: s c C s d S( s
A newline.s
( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_n> s c C s d S( s A carriage return.s
( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_rB s c C s
t j | ƒ S( s6 A parameter's value; the argument names the parameter.( R t parameter( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt
_prompt_paramF s c C s d S( s- Begins a sequence of non-printing characters.s ( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_noprint_beginJ s c C s d S( s+ Ends a sequence of non-printing characters.s ( ( R ( ( s# /usr/share/gdb/python/gdb/prompt.pyt _prompt_noprint_endN s t es \t nt rt vt wt ft tt pt [t ]c C sR d } t t j ƒ ƒ } x) | D]! } | d | t | j f 7} q W| d 7} | S( sN Generate help dynamically from the __doc__ strings of attribute
functions.t s \%s %s
s³
A substitution can be used in a simple form, like "\f".
An argument can also be passed to it, like "\f{name}".
The meaning of the argument depends on the particular substitution.( t sortedt prompt_substitutionst keyst __doc__( R R0 t key( ( s# /usr/share/gdb/python/gdb/prompt.pyt prompt_help` s
c C s[ d } t | ƒ } d } x<| | k rV| | d k r;| d } | | k rQ Pn | | } | t k r*t | } | d | k r| | d d k r| d } x* | | k rË | | d k rË | d } q¢ W| | k sè | | d k rñ d } q| | d | !} | } n d } | t | | ƒ ƒ 7} qI| | | 7} n | | | 7} | d } q W| S( s Perform substitutions on PROMPT.R- i s \i t {t }i N( t lenR/ R t str( t promptR t plent it cmdcht cmdt jt arg( ( s# /usr/share/gdb/python/gdb/prompt.pyt substitute_promptn s2
$
( R1 R R R R R R R R R R R R R! R" R/ R3 R? ( ( ( s# /usr/share/gdb/python/gdb/prompt.pyt s8