]>
git.proxmox.com Git - mirror_qemu.git/blob - tests/tcg/multiarch/gdbstub/test-proc-mappings.py
1 """Test that gdbstub has access to proc mappings.
3 This runs as a sourced script (via -x, via run-test.py)."""
4 from __future__
import print_function
6 from test_gdbstub
import main
, report
10 """Run through the tests one by one"""
12 mappings
= gdb
.execute("info proc mappings", False, True)
13 except gdb
.error
as exc
:
15 if "Not supported on this target." in exc_str
:
16 # Detect failures due to an outstanding issue with how GDB handles
17 # the x86_64 QEMU's target.xml, which does not contain the
18 # definition of orig_rax. Skip the test in this case.
19 print("SKIP: {}".format(exc_str
))
22 report(isinstance(mappings
, str), "Fetched the mappings from the inferior")
23 # Broken with host page size > guest page size
24 # report("/sha1" in mappings, "Found the test binary name in the mappings")