Sindbad~EG File Manager

Current Path : /usr/local/share/gdb/python/gdb/__pycache__/
Upload File :
Current File : /usr/local/share/gdb/python/gdb/__pycache__/prompt.cpython-311.pyc

�

��g���dZddlZddlZd�Zd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zee	e
eeeeeee
ed�Zd�Zd�ZdS)z# Extended prompt library functions.�Nc�(�tj��S)zThe current working directory.)�os�getcwd)�ignores �./gdb/prompt.py�_prompt_pwdrs��
�9�;�;��c���|�|}	|��}n#tj$rd|zcYSwxYwt||��r+t||��}t	|��r
|��}|Sd|�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_attrrs����|��� ��d�f�f�����9� � � ��4����� �����s�D���@���d�#�#���F���	��V�X�X�F��
�	@�59�D�D�$�$�$�?�?s�
�(�(c�:�ttjd|d��S)z8The selected frame; an argument names a frame parameter.�frame�name)rr�selected_frame�rs r�
_prompt_framer.s���s�1�7�D�&�I�I�Ir	c�:�ttjd|d��S)z:The selected thread; an argument names a thread parameter.�thread�num)rr�selected_threadrs r�_prompt_threadr"3s���s�2�H�d�E�J�J�Jr	c��tjS)zThe version of GDB.)r�VERSIONrs r�_prompt_versionr%8s
���;�r	c��dS)zThe ESC character.��rs r�_prompt_escr)=����6r	c��dS)zA backslash.�\r(rs r�
_prompt_bsr-B����4r	c��dS)z
A newline.�
r(rs r�	_prompt_nr1Gr.r	c��dS)zA carriage return.�
r(rs r�	_prompt_rr4Lr.r	c�*�tj|��S)z6A parameter's value; the argument names the parameter.)r�	parameterrs r�
_prompt_paramr7Qs���=����r	c��dS)z-Begins a sequence of non-printing characters.�r(rs r�_prompt_noprint_beginr:Vr*r	c��dS)z+Ends a sequence of non-printing characters.�r(rs r�_prompt_noprint_endr=[r*r	)�er,�n�r�v�w�f�t�p�[�]c��d}tt�����}|D]}|d|�dt|j�d�z
}�|dz
}|S)zNGenerate help dynamically from the __doc__ strings of attribute
    functions.�z  \�	r0z�
A substitution can be used in a simple form, like "\f".
An argument can also be passed to it, like "\f{name}".
The meaning of the argument depends on the particular substitution.)�sorted�prompt_substitutions�keys�__doc__)rrM�keys   r�prompt_helprPosr���F��&�+�+�-�-�.�.�D��L�L����C�C�C�)=�c�)B�)J�)J�)J�K�K���
�G�G�F��Mr	c��d}t|��}d}||kr�||dkr�|dz}||krn�||}|tvr�t|}|dz|krb||dzdkrS|dz}||kr#||dkr|dz}||kr||dk�||ks||dkrd}n||dz|�}|}nd}|t||����z
}n|||z
}n|||z
}|dz}||k��|S)	z Perform substitutions on PROMPT.rIrr,��{�}N�)�lenrL�str)�promptr�plen�i�cmdch�cmd�j�args        r�substitute_promptr_~sZ���F��v�;�;�D�	�A�
�d�(�(��!�9�����A��A��D�y�y���1�I�E��,�,�,�*�5�1���q�5�4�<�<�F�1�q�5�M�S�$8�$8��A��A��d�(�(�v�a�y�C�'7�'7���E���d�(�(�v�a�y�C�'7�'7��D�y�y�F�1�I��$4�$4�"���$�Q��U�Q�Y�/������C��#�c�c�#�h�h�-�-�'����&��)�#����f�Q�i��F�
��E��=�d�(�(�@�Mr	)rNrrrrrr"r%r)r-r1r4r7r:r=rLrPr_r(r	r�<module>r`s4��"*�)�	�	�	�	�
�
�
�
����
@�@�@�"J�J�J�
K�K�K�
���
���
���
���
���
���
���
���
�
�	�	�	�	�	�	�	�	�	�������&�&�&�&�&r	

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists