Current File : //usr/share/gdb/python/gdb/dap/__pycache__/disassemble.cpython-39.opt-1.pyc
a

ɱZh��@s`ddlZddlmZmZddlmZedd��Zed�ed�ddd	�eeeed
�dd���Z	dS)�N�)�request�
capability)�
in_gdb_threadc	Cs�t��}zt����}Wntjy4|��}Yn0g}||}|j||d�|d�D]:}|�|d|d�}|�t|d�|d|��d��qXd|iS)N)�count�addr�lengthZasm)�addressZinstructionZinstructionBytesZinstructions)	�gdbZselected_inferiorZselected_frameZarchitecture�error�disassembleZread_memory�append�hex)	�pcZ
skip_insnsr�infZarch�resultZtotal_count�eltZmem�r�,/usr/share/gdb/python/gdb/dap/disassemble.py�_disassembles"
���rrZsupportsDisassembleRequest)�offset�instructionOffset)�memoryReferencerr�instructionCountcKst|d�|}t|||�S)Nr)�intr)rrrrZextrarrrrr.s
)
r
ZserverrrZstartuprr�strrrrrrr�<module>s
��