HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/gdb/python/gdb/command/__pycache__/prompt.cpython-310.pyc
o

̴6b��@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__�gdb�COMMAND_SUPPORT�PARAM_STRING_NOESCAPE�value�hook_set��self��	__class__��+/usr/share/gdb/python/gdb/command/prompt.pyr(s


�
z_ExtendedPrompt.__init__cCs|jrd|jSdS)NzThe extended prompt is: zThe extended prompt is not set.)r
)r
�pvaluerrr�get_show_string/s
z_ExtendedPrompt.get_show_stringcCs|jdur|jt_d|_dS)NFTr)r�before_prompt_hookr�prompt_hookrrrr�get_set_string5s
z_ExtendedPrompt.get_set_stringcCs|jr
tj�|j�SdS)N)r
r�prompt�substitute_prompt)r
�currentrrrr;sz"_ExtendedPrompt.before_prompt_hook)�__name__�
__module__�__qualname__�__doc__rr�prompt_help�set_doc�show_docrrrr�
__classcell__rrrrrs
r)rr�
gdb.prompt�	Parameterrrrrr�<module>s

+