Current File : //proc/self/root/kunden/usr/share/gdb/python/gdb/dap/__pycache__/events.cpython-39.opt-1.pyc
a

ɱZh��@sNddlZddlZddlmZddlmZmZmZddlm	Z	m
Z
daedd��Zed	d
��Z
edd��Zed
d��Zedd��Zedd��Zdaedd��ZGdd�dej�Zdaedd��Zedd��Zdaedd��Zejj�e�ejj�e�ejj�e�ejj �e�ejj!�e�ejj"�e�ejj#�e�ejj$�e�dS)�N�)�
send_event)�exec_and_log�
in_gdb_thread�log)�	is_module�make_moduleFcCs2dad}t|d�r|j}tdd|i�td�dS)NFr�	exit_code�exitedZexitCodeZ
terminated)�inferior_running�hasattrr	r)�event�code�r�'/usr/share/gdb/python/gdb/dap/events.py�_on_exits
��rcCstd||jjd��dS)N�thread)�reason�threadId)rZinferior_thread�
global_num)r
rrrr�thread_event/s��rcCsdat|d�dS)NT�started)rr�r
rrr�_new_thread:srcCst|d�dS)Nr
)rrrrr�_thread_exitedAsrcCs$t|j�r tddt|j�d��dS)N�module�new�rr)r�new_objfilerrrrrr�_new_objfileFs
��rcCs$t|j�r tddt|j�d��dS)NrZremovedr)rZobjfilerrrrrr�_objfile_removedRs
��r cCs0datrtd�dantdt��jdd��dS)NTz_suppress_cont caseF�	continued)rZallThreadsContinued)r�_suppress_contrr�gdb�selected_threadrrrrr�_contas��r%c@seZdZdZdZdZdZdS)�	StopKinds�step�
breakpoint�pause�	exceptionN)�__name__�
__module__�__qualname__ZSTEP�
BREAKPOINT�PAUSE�	EXCEPTIONrrrrr&ssr&cCs|a|tjkrdat|�dS)z2Indicate that a stop is expected, then execute CMDTN)�_expected_stopr&r/r"r)�cmdrrrr�exec_and_expect_stop~s
r3cCsvdatdt|��t��jdd�}t|tj�rLtj	a
dd�|jD�|d<nt
durZtja
t
j
|d<da
td	|�dS)
NFzentering _on_stop: T)rZallThreadsStoppedcSsg|]
}|j�qSr)�number)�.0�xrrr�
<listcomp>��z_on_stop.<locals>.<listcomp>ZhitBreakpointIdsr�stopped)rr�reprr#r$r�
isinstanceZBreakpointEventr&r.r1Zbreakpointsr0�valuer)r
�objrrr�_on_stop�s�
r>cCs.t|tj�rtats*td�nts*td�dS)N)r;r#ZInferiorCallPreEventr�_infcall_was_runningr%r>rrrr�_on_inferior_call�s
r@)%�enumr#ZserverrZstartuprrr�modulesrrrrrrrrr r"r%�Enumr&r1r3r>r?r@Zevents�stopZconnectr
Z
new_threadZ
thread_exitedZcontrZfree_objfileZ
inferior_callrrrr�<module>sJ