[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 2/6] configure: gate our use of GDB to 8.3.1 or above
From: |
Alex Bennée |
Subject: |
[PATCH v1 2/6] configure: gate our use of GDB to 8.3.1 or above |
Date: |
Mon, 14 Dec 2020 15:30:08 +0000 |
Certain earlier versions of GDB have (possibly distro) derived issues
when running against multiarch guests. Also given the problem of
clashing ports it is preferable to use socket comms rather than TCP
ports for testing.
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 11f5878a59..f6347382e9 100755
--- a/configure
+++ b/configure
@@ -6721,8 +6721,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 0/6] gdbstub (auxv, tests, cleanup), Alex Bennée, 2020/12/14
- [PATCH v1 2/6] configure: gate our use of GDB to 8.3.1 or above,
Alex Bennée <=
- [PATCH v1 3/6] gdbstub: add support to Xfer:auxv:read: packet, Alex Bennée, 2020/12/14
- [PATCH v1 4/6] gdbstub: drop CPUEnv from gdb_exit(), Alex Bennée, 2020/12/14
- [PATCH v1 6/6] gdbstub: ensure we clean-up when terminated, Alex Bennée, 2020/12/14
- [PATCH v1 5/6] gdbstub: drop gdbserver_cleanup in favour of gdb_exit, Alex Bennée, 2020/12/14