Your IP : 172.28.240.42


Current Path : /usr/share/gdb/python/gdb/
Upload File :
Current File : //usr/share/gdb/python/gdb/prompt.pyc

ó
Š&‡Oc@sódZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd	„Z	d
„Z
d„Zd„Zd
„Z
d„Zied6e	d6e
d6ed6ed6ed6ed6ed6ed6e
d6ed6Zd„Zd„ZdS(s# Extended prompt library functions.iÿÿÿÿNcCs
tjƒS(sThe current working directory.(tostgetcwdu(tignore((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_pwdscCsŠ|dkr|}ny
|ƒ}Wntjk
r=d|SXt||ƒrxt||ƒ}t|ƒrt|ƒ}n|Sd||fSdS(s,Internal worker for fetching GDB attributes.s<no %s>s<no attribute %s on current %s>N(tNonetgdbterrorthasattrtgetattrtcallable(tfunctwhattattrtnattrtobjtresult((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_object_attrs	
	cCsttjd|dƒS(s8The selected frame; an argument names a frame parameter.tframetname(RRtselected_frame(R((s#/usr/share/gdb/python/gdb/prompt.pyt
_prompt_frame*scCsttjd|dƒS(s:The selected thread; an argument names a thread parameter.tthreadtnum(RRtselected_thread(R((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_thread.scCstjS(sThe version of GDB.(RtVERSION(R((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_version2scCsdS(sThe ESC character.s((R((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_esc6scCsdS(sA backslash.s\((R((s#/usr/share/gdb/python/gdb/prompt.pyt
_prompt_bs:scCsdS(s
A newline.s
((R((s#/usr/share/gdb/python/gdb/prompt.pyt	_prompt_n>scCsdS(sA carriage return.s
((R((s#/usr/share/gdb/python/gdb/prompt.pyt	_prompt_rBscCs
tj|ƒS(s6A parameter's value; the argument names the parameter.(Rt	parameter(R((s#/usr/share/gdb/python/gdb/prompt.pyt
_prompt_paramFscCsdS(s-Begins a sequence of non-printing characters.s((R((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_noprint_beginJscCsdS(s+Ends a sequence of non-printing characters.s((R((s#/usr/share/gdb/python/gdb/prompt.pyt_prompt_noprint_endNstes\tntrtvtwtftttpt[t]cCsVd}tjƒ}|jƒx)|D]!}|d|t|jf7}q#W|d7}|S(sNGenerate help dynamically from the __doc__ strings of attribute
    functions.ts	  \%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.(tprompt_substitutionstkeystsortt__doc__(RR/tkey((s#/usr/share/gdb/python/gdb/prompt.pytprompt_help`s

cCs[d}t|ƒ}d}x<||krV||dkr;|d}||krQPn||}|tkr*t|}|d|kr||ddkr|d}x*||krË||dkrË|d}q¢W||ksè||dkrñd}q||d|!}|}nd}|t||ƒƒ7}qI|||7}n|||7}|d}qW|S(	s Perform substitutions on PROMPT.R-is\it{t}iN(tlenR.Rtstr(tpromptRtplentitcmdchtcmdtjtarg((s#/usr/share/gdb/python/gdb/prompt.pytsubstitute_promptos2


$
		(R1RRRRRRRRRRRR R!R"R.R3R?(((s#/usr/share/gdb/python/gdb/prompt.pyt<module>s8