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__/modules.cpython-311.pyc

�

��gL����ddlZddlmZmZddlmZed���Zed���Zed���Zed��ed	��ddd
�de	de	fd
�����Z
dS)�N�)�
capability�request)�
in_gdb_threadc��|jS)z%Return the module ID for the objfile.)�username��objfiles �./gdb/dap/modules.py�	module_idrs
�����c�<�|���o|jduS)z1Return True if OBJFILE represents a valid Module.N)�is_valid�ownerr	s r�	is_modulers"�������7�'�-�4�"7�7r
c�V�t|��|jd�}|jr
|j|d<|S)z_Return a Module representing the objfile OBJF.

    The objfile must pass the 'is_module' test.)�id�name�path)rr�is_file�filename)�objf�results  r�make_moduler"s:����o�o��
���F��|�'����v���Mr
�supportsModulesRequest�modules)�startModule�moduleCountrrc��d�tj��D��}|dkrt|��}n||z}d�|||�D��t|��d�S)Nc�0�g|]}t|���|��S�)r��.0�xs  r�
<listcomp>zmodules.<locals>.<listcomp>4s#��:�:�:�a�Y�q�\�\�:��:�:�:r
rc�,�g|]}t|����Sr!)rr"s  rr%zmodules.<locals>.<listcomp>;s��G�G�G�q�K��N�N�G�G�Gr
)r�totalModules)�gdb�objfiles�len)rr�argsr)�lasts     rrr0sr��;�:�3�<�>�>�:�:�:�H��a����8�}�}����[�(��G�G�H�[��5E�,F�G�G�G��H�
�
���r
)r(�serverrr�startuprrrr�intrr!r
r�<module>r0s��� �
�
�
�'�'�'�'�'�'�'�'�"�"�"�"�"�"�������
�8�8���8�
�
�
���
���$�%�%������"#�����C��#������&�%���r

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