[v2,1/3] Use --data-directory in gdb_buildall.sh

Message ID 20260831074155.3500918-2-tdevries@suse.de
State New
Headers
Series Three gdb_buildall.sh fixes |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply

Commit Message

Tom de Vries Aug. 31, 2026, 7:41 a.m. UTC
  I tried to run gdb/gdb_buildall.sh, but ran into errors due to
gdb being used without --data-directory option.

Add this.
---
 gdb/gdb_buildall.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/gdb_buildall.sh b/gdb/gdb_buildall.sh
index 1b82455ed0e..65935ae10b2 100644
--- a/gdb/gdb_buildall.sh
+++ b/gdb/gdb_buildall.sh
@@ -202,7 +202,7 @@  cat <<EOF > arch
 set architecture
 quit
 EOF
-./gdb/gdb --batch -nx -x arch 2>&1 | cat > gdb_archs
+./gdb/gdb --data-directory gdb/data-directory --batch -nx -x arch 2>&1 | cat > gdb_archs
 tail -n 1 gdb_archs | sed 's/auto./\n/g' | sed 's/,/\n/g' |  sed 's/Requires an argument. Valid arguments are/\n/g' | sed '/^[ ]*$/d' > arch
 mv arch gdb_archs
 
@@ -226,7 +226,7 @@  EOF
   log_file=$target.log
   log_file=${log_file//:/_}
   echo -n "... ${target}"
-  ./gdb/gdb -batch -nx -x x 2>&1 | cat > $log_file
+  ./gdb/gdb --data-directory gdb/data-directory -batch -nx -x x 2>&1 | cat > $log_file
   # Check GDBs results
   if test ! -s $log_file
   then