Sindbad~EG File Manager
�
��g � � � d Z ddlZddlZd� Zd� Zd� Zd� Zd� Zd� Zd � Z d
� Z
d� Zd� Zd
� Z
d� Zee e
eeeeeee
ed�Zd� Zd� ZdS )z# Extended prompt library functions.� Nc �( � t j � � S )zThe current working directory.)�os�getcwd)�ignores �./gdb/prompt.py�_prompt_pwdr s � �
�9�;�;�� c �� � |�|} | � � }n# t j $ r d|z cY S w xY wt ||� � r+t ||� � }t |� � r
|� � }|S d|�d|�d�S )z,Internal worker for fetching GDB attributes.Nz<no %s>z<no attribute z on current �>)�gdb�error�hasattr�getattr�callable)�func�what�attr�nattr�obj�results r �_prompt_object_attrr s� � ��|��� ��d�f�f�����9� � � ��4����� �����s�D��� @���d�#�#���F��� ��V�X�X�F��
� @� 59�D�D�$�$�$�?�?s �
�(�(c �: � t t j d| d� � S )z8The selected frame; an argument names a frame parameter.�frame�name)r r �selected_frame�r s r �
_prompt_framer . s � ��s�1�7�D�&�I�I�Ir c �: � t t j d| d� � S )z:The selected thread; an argument names a thread parameter.�thread�num)r r �selected_threadr s r �_prompt_threadr"