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