Current File : //proc/self/root/kunden/usr/share/gdb/python/gdb/__pycache__/prompt.cpython-39.opt-1.pyc |
a
ɱZh~ � @ 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 sj |du r|}z
| � }W n t jy2 d| Y S 0 t||�rZt||�}t|�rV|� }|S d||f S dS )z,Internal worker for fetching GDB attributes.Nz<no %s>z<no attribute %s on current %s>)�gdb�error�hasattr�getattr�callable)�funcZwhat�attrZnattr�obj�resultr r r �_prompt_object_attr s
r c C s t tjd| d�S )z8The selected frame; an argument names a frame parameter.�frame�name)r r Zselected_frame�r r r r �
_prompt_frame- s r c C s t tjd| d�S )z:The selected thread; an argument names a thread parameter.�threadZnum)r r Zselected_threadr r r r �_prompt_thread2 s r c C s t jS )zThe version of GDB.)r ZVERSIONr r r r �_prompt_version7 s r c C s dS )zThe ESC character.�r r r r r �_prompt_esc<