QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
772 B
24 lines
772 B
"""Test single-stepping SVC.
|
|
|
|
This runs as a sourced script (via -x, via run-test.py)."""
|
|
import gdb
|
|
from test_gdbstub import main, report
|
|
|
|
|
|
def run_test():
|
|
"""Run through the tests one by one"""
|
|
report("lghi\t" in gdb.execute("x/i $pc", False, True), "insn #1")
|
|
gdb.execute("si")
|
|
report("larl\t" in gdb.execute("x/i $pc", False, True), "insn #2")
|
|
gdb.execute("si")
|
|
report("lgrl\t" in gdb.execute("x/i $pc", False, True), "insn #3")
|
|
gdb.execute("si")
|
|
report("svc\t" in gdb.execute("x/i $pc", False, True), "insn #4")
|
|
gdb.execute("si")
|
|
report("xgr\t" in gdb.execute("x/i $pc", False, True), "insn #5")
|
|
gdb.execute("si")
|
|
report("svc\t" in gdb.execute("x/i $pc", False, True), "insn #6")
|
|
gdb.execute("si")
|
|
|
|
|
|
main(run_test)
|
|
|