tests/tcg: better detect confused gdb which can't connect
commit8ec6f3315118ef75d37e9433dc8faa8383130fb6
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 20 May 2020 14:05:33 +0000 (20 15:05 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 27 May 2020 13:26:49 +0000 (27 14:26 +0100)
tree33d0ac96670fe4ea5d7115929515c5e3c52b7176
parent8281a157c5d01c08e1d684bf7a28c3e2bebf1a96
tests/tcg: better detect confused gdb which can't connect

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 <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200520140541.30256-8-alex.bennee@linaro.org>
tests/tcg/multiarch/gdbstub/sha1.py