[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 07/15] tests/tcg: better detect confused gdb which can't conne
From: |
Alex Bennée |
Subject: |
[PATCH v1 07/15] tests/tcg: better detect confused gdb which can't connect |
Date: |
Wed, 20 May 2020 15:05:33 +0100 |
While we may gamely give the right information it can still confuse
the wide range of GDBs out there. For example ppc64abi32-linux-user
reports:
warning: Selected architecture powerpc:common is not compatible with reported
target architecture powerpc:common64
warning: Architecture rejected target-supplied description
but still connects. Add a test for a 0 pc and exit early if that is
the case. This may actually be a bug we need to fix?
Signed-off-by: Alex Bennée <address@hidden>
Cc: Richard Henderson <address@hidden>
---
tests/tcg/multiarch/gdbstub/sha1.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/tcg/multiarch/gdbstub/sha1.py
b/tests/tcg/multiarch/gdbstub/sha1.py
index 734553b98bb..2bfde49633c 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")
--
2.20.1
- [PATCH v1 00/15] testing and plugin updates, Alex Bennée, 2020/05/20
- [PATCH v1 02/15] tests/vm: pass --genisoimage to basevm script, Alex Bennée, 2020/05/20
- [PATCH v1 04/15] tests/tcg: fix invocation of the memory record/replay tests, Alex Bennée, 2020/05/20
- [PATCH v1 01/15] configure: add alternate binary for genisoimage, Alex Bennée, 2020/05/20
- [PATCH v1 05/15] tests/fp: enable extf80_le_quite tests, Alex Bennée, 2020/05/20
- [PATCH v1 08/15] tests/docker: bump fedora to 32, Alex Bennée, 2020/05/20
- [PATCH v1 03/15] travis.yml: Use clang++ in the Clang tests, Alex Bennée, 2020/05/20
- [PATCH v1 07/15] tests/tcg: better detect confused gdb which can't connect,
Alex Bennée <=
- [PATCH v1 06/15] tests/fp: split and audit the conversion tests, Alex Bennée, 2020/05/20
- [PATCH v1 10/15] tests/docker: use a gcc-10 based image for arm64 tests, Alex Bennée, 2020/05/20
- [PATCH v1 12/15] cpus-common: ensure auto-assigned cpu_indexes don't clash, Alex Bennée, 2020/05/20
- [PATCH v1 11/15] tests/tcg/aarch64: Add bti smoke test, Alex Bennée, 2020/05/20
- [PATCH v1 14/15] tests/tcg: add new threadcount test, Alex Bennée, 2020/05/20