Current File : //usr/share/gdb/python/gdb/command/__pycache__/prompt.cpython-39.pyc
a

ɱZh��@s0dZddlZddlZGdd�dej�Ze�dS)z.GDB command for working with extended prompts.�NcsReZdZdZedej��ZdZdZ�fdd�Z	dd�Z
d	d
�Zdd�Z�Z
S)
�_ExtendedPromptz�Set the extended prompt.

    Usage: set extended-prompt VALUE

    Substitutions are applied to VALUE to compute the real prompt.

    The currently defined substitutions are:�
zSet the extended prompt.zShow the extended prompt.cs(tt|��dtjtj�d|_d|_dS)Nzextended-prompt�F)�superr�__init__�gdbZCOMMAND_SUPPORTZPARAM_STRING_NOESCAPE�value�hook_set��self��	__class__��+/usr/share/gdb/python/gdb/command/prompt.pyr(s


�z_ExtendedPrompt.__init__cCs|jrd|jSdSdS)NzThe extended prompt is: zThe extended prompt is not set.)r)rZpvaluerrr�get_show_string/s
z_ExtendedPrompt.get_show_stringcCs|jdur|jt_d|_dS)NFTr)r	�before_prompt_hookrZprompt_hookr
rrr�get_set_string5s
z_ExtendedPrompt.get_set_stringcCs|jrtj�|j�SdSdS)N)rr�promptZsubstitute_prompt)r�currentrrrr;sz"_ExtendedPrompt.before_prompt_hook)�__name__�
__module__�__qualname__�__doc__rrZprompt_helpZset_docZshow_docrrrr�
__classcell__rrrrrs
r)rrZ
gdb.promptZ	Parameterrrrrr�<module>s+