diff options
author | Alex Bennée | 2021-01-08 23:42:39 +0100 |
---|---|---|
committer | Alex Bennée | 2021-01-18 11:04:31 +0100 |
commit | b1863ccc957e2607b2c973ad37329da0546fb001 (patch) | |
tree | f49dc1283bc661110b97eb177d7943cf4dc62924 /configure | |
parent | test/guest-debug: echo QEMU command as well (diff) | |
download | qemu-b1863ccc957e2607b2c973ad37329da0546fb001.tar.gz qemu-b1863ccc957e2607b2c973ad37329da0546fb001.tar.xz qemu-b1863ccc957e2607b2c973ad37329da0546fb001.zip |
configure: gate our use of GDB to 8.3.1 or above
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: <20210108224256.2321-4-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -6166,8 +6166,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 |