Sindbad~EG File Manager
�
)ΜgX � �� � d dl Z d dlZd dlmZ ddlmZmZmZmZ d� Z d� Z
e
� Z ej e� d� G d� d e� � Z
d
Z G d� de� Z G d
� de� Z G d� de� Zy)� N)�python_is_optimized� )�run_gdb�setup_module�
DebuggerTests�
SAMPLE_SCRIPTc � � t � y �N)r � � �4/usr/local/lib/python3.12/test/test_gdb/test_misc.py�setUpModuler s � ��Nr c �� � t d� \ } }t j d| � }|st j d| �d|�d�� �|j d� j
d� }d|v S ) Nz+--eval-command=python print(dir(gdb.Frame))z.*\[(.*)\].*z9Unable to parse output from gdb.Frame.select test
stdout=z
stderr=�
r z, z'select')r �re�match�unittest�SkipTest�group�split)�stdout�stderr�m�
gdb_frame_dirs r
�gdb_has_frame_selectr sw � ��J�K�N�F�F�
����&�)�A�������Z� ��Z�r�
#�$� $� �G�G�A�J�$�$�T�*�M���&�&r �&Python was compiled with optimizationsc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�PyListTestsc �( � | j ||� y r
)�assertEndsWith)�self�expected�actuals r
�
assertListingzPyListTests.assertListing s � ����F�H�-r c �X � | j t dg�� }| j d|� y)z'Verify that the "py-list" command workszpy-list��script�cmds_after_breakpointz� 5
6 def bar(a, b, c):
7 baz(a, b, c)
8
9 def baz(*args):
>10 id(42)
11
12 foo(1, 2, 3)
N��get_stack_tracer r$ �r! �bts r
�test_basic_commandzPyListTests.test_basic_command! s9 � �
�
!�
!��9B�� "� E��
��� 4� � r c �X � | j t dg�� }| j d|� y)z7Verify the "py-list" command with one absolute argumentz py-list 9r&