summary refs log tree commit diff stats
path: root/tests/tcg/multiarch/gdbstub/sha1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/multiarch/gdbstub/sha1.py')
-rw-r--r--tests/tcg/multiarch/gdbstub/sha1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py
index 734553b98b..2bfde49633 100644
--- a/tests/tcg/multiarch/gdbstub/sha1.py
+++ b/tests/tcg/multiarch/gdbstub/sha1.py
@@ -65,6 +65,10 @@ except (gdb.error, AttributeError):
     print("SKIPPING (not connected)", file=sys.stderr)
     exit(0)
 
+if gdb.parse_and_eval('$pc') == 0:
+    print("SKIP: PC not set")
+    exit(0)
+
 try:
     # These are not very useful in scripts
     gdb.execute("set pagination off")