File: //usr/share/gdb/python/gdb/__pycache__/prompt.cpython-310.pyc
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<