File: //usr/share/gdb/python/gdb/command/__pycache__/prompt.cpython-310.pyc
o
̴6b� � @ s0 d Z ddlZddlZG dd� dej�Ze� dS )z.GDB command for working with extended prompts.� Nc sR e Zd ZdZed ej�� 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.c s( t t| ��dtjtj� d| _d| _d S )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__c C s | j rd| j S dS )NzThe extended prompt is: zThe extended prompt is not set.)r
)r
�pvaluer r r �get_show_string/ s
z_ExtendedPrompt.get_show_stringc C s | j du r| jt_d| _ dS )NFTr )r �before_prompt_hookr �prompt_hookr r r r �get_set_string5 s
z_ExtendedPrompt.get_set_stringc C s | j r
tj�| j �S d S )N)r
r �prompt�substitute_prompt)r
�currentr r r r ; s z"_ExtendedPrompt.before_prompt_hook)�__name__�
__module__�__qualname__�__doc__r r �prompt_help�set_doc�show_docr r r r �
__classcell__r r r r r s
r )r r �
gdb.prompt� Parameterr r r r r �<module> s
+