[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 03/20] configure: gate our use of GDB to 8.3.1 or above
From: |
Alex Bennée |
Subject: |
[PATCH v1 03/20] configure: gate our use of GDB to 8.3.1 or above |
Date: |
Fri, 8 Jan 2021 22:42:39 +0000 |
The support of socket based debugging which we need for linux-user
testing is only really stable as of 8.3.1 so lets gate our use of GDB
on having a relatively modern version.
For direct testing you can just point to a locally compiled version of
gdb via configure, e.g.:
../../configure --gdb=$HOME/src/binutils-gdb.git/builds/all/install/bin/gdb
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201214153012.12723-3-alex.bennee@linaro.org>
Message-Id: <20201218112707.28348-3-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
configure | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 5860bdb77b..96cc7d9b9f 100755
--- a/configure
+++ b/configure
@@ -6239,8 +6239,11 @@ if test "$plugins" = "yes" ; then
fi
fi
-if test -n "$gdb_bin" ; then
- echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak
+if test -n "$gdb_bin"; then
+ gdb_version=$($gdb_bin --version | head -n 1)
+ if version_ge ${gdb_version##* } 8.3.1; then
+ echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak
+ fi
fi
if test "$secret_keyring" = "yes" ; then
--
2.20.1
- [PATCH v1 00/20] gdbstub, semihosting and test/tool updates (pre PR), Alex Bennée, 2021/01/08
- [PATCH v1 01/20] tests/docker: Remove Debian 9 remnant lines, Alex Bennée, 2021/01/08
- [PATCH v1 02/20] test/guest-debug: echo QEMU command as well, Alex Bennée, 2021/01/08
- [PATCH v1 03/20] configure: gate our use of GDB to 8.3.1 or above,
Alex Bennée <=
- [PATCH v1 04/20] Revert "tests/tcg/multiarch/Makefile.target: Disable run-gdbstub-sha1 test", Alex Bennée, 2021/01/08
- [PATCH v1 06/20] gdbstub: add support to Xfer:auxv:read: packet, Alex Bennée, 2021/01/08
- [PATCH v1 07/20] gdbstub: drop CPUEnv from gdb_exit(), Alex Bennée, 2021/01/08
- [PATCH v1 05/20] gdbstub: implement a softmmu based test, Alex Bennée, 2021/01/08
- [PATCH v1 09/20] gdbstub: ensure we clean-up when terminated, Alex Bennée, 2021/01/08
- [PATCH v1 08/20] gdbstub: drop gdbserver_cleanup in favour of gdb_exit, Alex Bennée, 2021/01/08
- [PATCH v1 11/20] Makefile: add GNU global tags support, Alex Bennée, 2021/01/08
- [PATCH v1 10/20] target/arm: use official org.gnu.gdb.aarch64.sve layout for registers, Alex Bennée, 2021/01/08