ó ›à Rc@sBdZddlZddlZdejfd„ƒYZeƒdS(s.GDB command for working with extended prompts.iÿÿÿÿNt_ExtendedPromptcBsQeZdZeejjƒZdZdZd„Zd„Z d„Z d„Z RS(s¦Set the extended prompt. Usage: set extended-prompt VALUE Substitutions are applied to VALUE to compute the real prompt. The currently defined substitutions are: sSet the extended prompt.sShow the extended prompt.cCs8tt|ƒjdtjtjƒd|_t|_dS(Nsextended-promptt( tsuperRt__init__tgdbtCOMMAND_SUPPORTtPARAM_STRING_NOESCAPEtvaluetFalsethook_set(tself((s+/usr/share/gdb/python/gdb/command/prompt.pyR(s   cCs"|jdk rd|jSdSdS(NRsThe extended prompt is: sThe extended prompt is not set.(R(R tpvalue((s+/usr/share/gdb/python/gdb/command/prompt.pytget_show_string/s cCs+|jtkr'|jt_t|_ndS(NR(R Rtbefore_prompt_hookRt prompt_hooktTrue(R ((s+/usr/share/gdb/python/gdb/command/prompt.pytget_set_string5s  cCs<|jdk r4tjj|jƒ}|jddƒSdSdS(NRs\s\\(RRtprompttsubstitute_prompttreplacetNone(R tcurrentt newprompt((s+/usr/share/gdb/python/gdb/command/prompt.pyR ;s( t__name__t __module__t__doc__RRt prompt_helptset_doctshow_docRR RR (((s+/usr/share/gdb/python/gdb/command/prompt.pyRs    (RRt gdb.promptt ParameterR(((s+/usr/share/gdb/python/gdb/command/prompt.pyts  ,