Sindbad~EG File Manager

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

�

��g3!����ddlZddlmZmZddlmZddlmZddlm	Z	m
Z
mZdae
d���Z
dae
d	���Ze
d
���Ze
d���Ze
d���Ze
d
���Ze
d���Ze
d���Zdae
d���Zdae
defd���Zdae
d/d���Zidd�dd�dd�dd�dd�dd�dd�dd�dd �d d �d!d �d"d#�d$d%�d&d&�d'd'�d(d(�d)d)�d*d+d,��ae
d-���Zdae
d.���Z ej!j"�#e��ej!j$�#e
��ej!j%�#e��ej!j&�#e��ej!j'�#e��ej!j(�#e��ej!j)�#e��ej!j*�#e ��dS)0�N�)�	is_module�make_module)�set_finish_value)�
send_event)�exec_and_log�
in_gdb_thread�logFc�~�dad}t|d��r|j}tdd|i��td��dS)NFr�	exit_code�exited�exitCode�
terminated)�inferior_running�hasattrrr)�event�codes  �./gdb/dap/events.py�_on_exitrs]�����D��u�k�"�"���������	
�����|������c���t�htj��}|jjdk}|td�}|jjr|jj|d<|r
|j|d<td|��dadSdS)N�native)�isLocalProcess�startMethod�name�systemProcessId�process)	�_process_event_kind�gdb�selected_inferior�
connection�type�	progspace�filename�pidr)�inf�is_local�datas   r�send_process_event_oncer)3s����&��#�%�%���>�&�(�2��&�.�
�
��
�=�!�	2��=�1�D��L��	.�&)�g�D�"�#��9�d�#�#�#�"����'�&rc�
�|adS)z�Indicate that DAP is starting or attaching to a process.

    REASON is the "startMethod" to include in the "process" event.
    N)r��reasons r�expect_processr-Fs��!���rc�\�t��td||jjd���dS)N�thread)r,�threadId)r)r�inferior_thread�
global_num)rr,s  r�thread_eventr3PsC����������-�8�	
�	
�����rc�*�dat|d��dS)NT�started)rr3�rs r�_new_threadr7\s ������	�"�"�"�"�"rc�&�t|d��dS)Nr
)r3r6s r�_thread_exitedr9cs�����!�!�!�!�!rc�|�t|j��r'tddt|j��d���dSdS)N�module�new�r,r;)r�new_objfilerrr6s r�_new_objfiler?hsY����"�#�#�
����%�e�&7�8�8�
�
�	
�	
�	
�	
�	
�
�
rc��t��t|j��r'tddt	|j��d���dSdS)Nr;�removedr=)r)r�objfilerrr6s r�_objfile_removedrCtsc�����������
���#�%�e�m�4�4�
�
�	
�	
�	
�	
�	
�
�
rc��datrtd��dadStdt	j��jdd���dS)NTz_suppress_cont caseF�	continued)r0�allThreadsContinued)r�_suppress_contr
rr�selected_threadr2r6s r�_contrI�se�����

��!�"�"�"��������/�1�1�<�'+�
�
�	
�	
�	
�	
�	
rr,c�
�|adS)z1Indicate that the next stop should be for REASON.N)�_expected_stop_reasonr+s r�expect_stoprL�s��#���rc�.�|a|at|��dS)z�A wrapper for exec_and_log that sets the continue-suppression flag.

    When EXPECTED_PAUSE is True, a stop that looks like a pause (e.g.,
    a SIGINT) will be reported as "pause" instead.
    N)�_expected_pauserGr)�cmd�expected_pauses  r�exec_and_expect_stoprQ�s'��%�O�(�'�N�������rzbreakpoint-hit�
breakpointzwatchpoint-triggerzdata breakpointzread-watchpoint-triggerzaccess-watchpoint-triggerzfunction-finished�stepzlocation-reachedzwatchpoint-scopezend-stepping-rangezexited-signalledr
zexited-normally�signal-received�signalzsolib-event�solib�fork�vforkz
syscall-entryzsyscall-return�exec�
no-history)rYrZc��datdt|��z��t|d��r$tdt|j��z��tj��jdd�}t|t
j	��rd�|j
D��|d<t|d��r#d	|jvrt|jd	��t�
t|d
<danWd
|jvrd|d
<nHtr&|jd
dkr|jd
dvrd|d
<nt|jd
|d
<da
td|��dS)NFzentering _on_stop: �detailsz   details: T)r0�allThreadsStoppedc��g|]	}|j��
S�)�number)�.0�xs  r�
<listcomp>z_on_stop.<locals>.<listcomp>�s��"G�"G�"G��1�8�"G�"G�"Gr�hitBreakpointIdszfinish-valuer,�stoppedrTzsignal-name)�SIGINT�SIGSTOP�pause)rr
�reprrr\rrHr2�
isinstance�BreakpointEvent�breakpointsrrKrN�stop_reason_mapr�r�objs  r�_on_stoprp�sx�������U���+�,�,�,��u�i� � �2��N�T�%�-�0�0�0�1�1�1��'�)�)�4�!���C��%��,�-�-�H�"G�"G�U�5F�"G�"G�"G�����u�i� � �8�^�u�}�%D�%D����~�6�7�7�7��(�-��H�
� $���	���	&�	&�"��H�
�
��A��M�(�#�'8�8�8��M�-�(�,A�A�A���H�
�
�(��
�h�(?�@��H�
��O��y�#�����rc��t|tj��r!tatstd��dSdSts9tr4datj��jddd�}datd|��dSdSdS)NFTz
function call)r0r]r,re)
rjr�InferiorCallPreEventr�_infcall_was_runningrIrHr2rNrrns  r�_on_inferior_callrt�s����%��1�2�2�'�/��#�	��$�K�K�K�K�K�	�	�$�
	'�(8�
	'�$���/�1�1�<�%)�)�	��C�$�O��y�#�&�&�&�&�&�
	'�
	'�
	'�
	'r)F)+r�modulesrr�scopesr�serverr�startuprr	r
rrrr)r-r3r7r9r?rCrGrIrK�strrLrNrQrmrprsrt�events�stop�connectr
�
new_thread�
thread_exited�contr>�free_objfile�
inferior_callr_rr�<module>r�s��� �
�
�
�+�+�+�+�+�+�+�+�$�$�$�$�$�$�������5�5�5�5�5�5�5�5�5�5���������"���#�#���#�$�!�!���!��������#�#���#��"�"���"��
�
���
��	
�	
���	
����
�
���
�"���#��#�#�#���#����
�
�
���
�(��l���+���0�� �!2�	�
�����
��)���&�����
�h���x���x���7���F���W�� �_�!�"�&�#�$
��'����.�$�$���$�X���'�'���'�0�
�����!�!�!��
����(�#�#�#��
����k�*�*�*��
�� � ��0�0�0��
���������
����|�,�,�,��
���� 0�1�1�1��
�� � �!2�3�3�3�3�3r

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