Current File : //proc/self/root/kunden/usr/share/gdb/python/gdb/command/__pycache__/prompt.cpython-39.pyc |
a
ɱZh� � @ 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__�gdbZCOMMAND_SUPPORTZPARAM_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 d S )NzThe extended prompt is: zThe extended prompt is not set.)r )r Zpvaluer r r �get_show_string/ s
z_ExtendedPrompt.get_show_stringc C s | j du r| jt_d| _ dS )NFTr )r �before_prompt_hookr Zprompt_hookr
r r r �get_set_string5 s
z_ExtendedPrompt.get_set_stringc C s | j rtj�| j �S d S d S )N)r r �promptZsubstitute_prompt)r �currentr r r r ; s z"_ExtendedPrompt.before_prompt_hook)�__name__�
__module__�__qualname__�__doc__r r Zprompt_helpZset_docZshow_docr r r r �
__classcell__r r r r r s
r )r r Z
gdb.promptZ Parameterr r r r r �<module> s +