| 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 : /proc/thread-self/root/usr/share/gdb/python/gdb/__pycache__/ |
Upload File : |
o
̴6b~ � @ s� d Z ddlZddlZdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zee e
eeeeeee
ed�Zdd� Zdd� ZdS ) z# Extended prompt library functions.� Nc C s t �� S )zThe current working directory.)�os�getcwd)�ignore� r �#/usr/share/gdb/python/gdb/prompt.py�_prompt_pwd s r c C sf |du r|}z| � }W n t jy d| Y S w t||�r-t||�}t|�r+|� }|S d||f S )z,Internal worker for fetching GDB attributes.Nz<no %s>z<no attribute %s on current %s>)�gdb�error�hasattr�getattr�callable)�func�what�attr�nattr�obj�resultr r r �_prompt_object_attr s
�
r c C � t tjd| d�S )z8The selected frame; an argument names a frame parameter.�frame�name)r r �selected_frame�r r r r �
_prompt_frame- � r c C r )z:The selected thread; an argument names a thread parameter.�thread�num)r r �selected_threadr r r r �_prompt_thread2 r r c C s t jS )zThe version of GDB.)r �VERSIONr r r r �_prompt_version7 s r c C � dS )zThe ESC character.�r r r r r �_prompt_esc<