summary refs log tree commit diff stats
path: root/tests/tcg/multiarch/gdbstub/test-thread-breakpoint.py
blob: 49cbc3548f6076a6a6fc7e84385774b5f7e41559 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Test auxiliary vector is loaded via gdbstub
#
# This is launched via tests/guest-debug/run-test.py
#

import gdb
from test_gdbstub import main, report


def run_test():
    "Run through the tests one by one"

    sym, ok = gdb.lookup_symbol("thread1_func")
    gdb.execute("b thread1_func")
    gdb.execute("c")

    frame = gdb.selected_frame()
    report(str(frame.function()) == "thread1_func", "break @ %s"%frame)


main(run_test)