Sindbad~EG File Manager
�
)Μg{ � �` � d dl Z d dlZd dlmZ d dlmZ ddlmZmZm Z m
Z
d� Z G d� de� Zy) � N)�support)�python_is_optimized� )�setup_module�
DebuggerTests�CET_PROTECTION�
SAMPLE_SCRIPTc � � t � y )N)r � � �9/usr/local/lib/python3.12/test/test_gdb/test_backtrace.py�setUpModuler s � ��Nr c �b � e Zd Z ej e� d� d� � Z ej e� d� d� � Z ej e� d� ej d� d� � � Z
ej e� d� d� � Z ej e� d� d� � Zy) � PyBtTestsz&Python was compiled with optimizationsc �X � | j t dg�� }| j |d� y)z%Verify that the "py-bt" command works�py-bt��script�cmds_after_breakpointaL ^.*
Traceback \(most recent call first\):
<built-in method id of module object .*>
File ".*gdb_sample.py", line 10, in baz
id\(42\)
File ".*gdb_sample.py", line 7, in bar
baz\(a, b, c\)
File ".*gdb_sample.py", line 4, in foo
bar\(a=a, b=b, c=c\)
File ".*gdb_sample.py", line 12, in <module>
foo\(1, 2, 3\)
N��get_stack_tracer �assertMultilineMatches��self�bts r
�test_btzPyBtTests.test_bt s6 � � �
!�
!��9@� � "� C���#�#�B�%� r c �X � | j t dg�� }| j |d� y)z*Verify that the "py-bt-full" command works�
py-bt-fullr aD ^.*
#[0-9]+ Frame 0x-?[0-9a-f]+, for file .*gdb_sample.py, line 7, in bar \(a=1, b=2, c=3\)
baz\(a, b, c\)
#[0-9]+ Frame 0x-?[0-9a-f]+, for file .*gdb_sample.py, line 4, in foo \(a=1, b=2, c=3\)
bar\(a=a, b=b, c=c\)
#[0-9]+ Frame 0x-?[0-9a-f]+, for file .*gdb_sample.py, line 12, in <module> \(\)
foo\(1, 2, 3\)
Nr r s r
�test_bt_fullzPyBtTests.test_bt_full"