master
py 22 lines 439 Bytes
Raw
1 #
2 # Test auxiliary vector is loaded via gdbstub
3 #
4 # This is launched via tests/guest-debug/run-test.py
5 #
6
7 import gdb
8 from test_gdbstub import main, report
9
10
11 def run_test():
12 "Run through the tests one by one"
13
14 sym, ok = gdb.lookup_symbol("thread1_func")
15 gdb.execute("b thread1_func")
16 gdb.execute("c")
17
18 frame = gdb.selected_frame()
19 report(str(frame.function()) == "thread1_func", "break @ %s"%frame)
20
21
22 main(run_test)