| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/gdb/python/gdb/command/__pycache__/ |
Upload File : |
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
+