diff mbox series

[v1,5/9] configure: move detected gdb to TCG's config-host.mak

Message ID 20220922145832.1934429-6-alex.bennee@linaro.org
State Superseded
Headers show
Series MemTxAttrs cpu_index and gdbstub/next | expand

Commit Message

Alex Bennée Sept. 22, 2022, 2:58 p.m. UTC
When tests/tcg gained it's own config-host.mak we forgot to move the
GDB detection.

Fixes: 544f4a2578 (tests/tcg: isolate from QEMU's config-host.mak)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 configure | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Richard Henderson Sept. 25, 2022, 10:11 a.m. UTC | #1
On 9/22/22 14:58, Alex Bennée wrote:
> When tests/tcg gained it's own config-host.mak we forgot to move the
> GDB detection.
> 
> Fixes: 544f4a2578 (tests/tcg: isolate from QEMU's config-host.mak)
> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
> ---
>   configure | 7 +++++++
>   1 file changed, 7 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/configure b/configure
index 0bbf9d28af..fce677bd4a 100755
--- a/configure
+++ b/configure
@@ -2481,6 +2481,8 @@  if test -n "$gdb_bin"; then
     gdb_version=$($gdb_bin --version | head -n 1)
     if version_ge ${gdb_version##* } 9.1; then
         echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak
+    else
+        gdb_bin=""
     fi
 fi
 
@@ -2565,6 +2567,11 @@  echo "# Automatically generated by configure - do not modify" > $config_host_mak
 echo "SRC_PATH=$source_path" >> $config_host_mak
 echo "HOST_CC=$host_cc" >> $config_host_mak
 
+# versioned checked in the main config_host.mak above
+if test -n "$gdb_bin"; then
+    echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak
+fi
+
 tcg_tests_targets=
 for target in $target_list; do
   arch=${target%%-*}