[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/12] tests/tcg: better detect confused gdb which can't connect
From: |
Alex Bennée |
Subject: |
[PULL 07/12] tests/tcg: better detect confused gdb which can't connect |
Date: |
Wed, 27 May 2020 15:54:50 +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>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
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
- [PULL 00/12] testing and plugin fixes, Alex Bennée, 2020/05/27
- [PULL 01/12] configure: add alternate binary for genisoimage, Alex Bennée, 2020/05/27
- [PULL 02/12] tests/vm: pass --genisoimage to basevm script, Alex Bennée, 2020/05/27
- [PULL 04/12] tests/tcg: fix invocation of the memory record/replay tests, Alex Bennée, 2020/05/27
- [PULL 05/12] tests/fp: enable extf80_le_quite tests, Alex Bennée, 2020/05/27
- [PULL 03/12] travis.yml: Use clang++ in the Clang tests, Alex Bennée, 2020/05/27
- [PULL 08/12] tests/docker: add debian11 base image, Alex Bennée, 2020/05/27
- [PULL 06/12] tests/fp: split and audit the conversion tests, Alex Bennée, 2020/05/27
- [PULL 07/12] tests/tcg: better detect confused gdb which can't connect,
Alex Bennée <=
- [PULL 09/12] tests/docker: use a gcc-10 based image for arm64 tests, Alex Bennée, 2020/05/27
- [PULL 12/12] tests/tcg: add new threadcount test, Alex Bennée, 2020/05/27
- [PULL 10/12] cpus-common: ensure auto-assigned cpu_indexes don't clash, Alex Bennée, 2020/05/27
- [PULL 11/12] linux-user: properly "unrealize" vCPU object, Alex Bennée, 2020/05/27
- Re: [PULL 00/12] testing and plugin fixes, Peter Maydell, 2020/05/28