Skip to content

Commit 0aef354

Browse files
committed
Fix gdb debug script auto-load via explicit data&debug configuration
The problem was that our default gdb datadir and debugdir had non-standard paths, due to some unknown configuration detection. In order to fix it, we now pass the standard paths via the --with-gdb-datadir & --with-separate-debug-dir variables. I also set --with-jit-reader-dir, --with-system-gdbinit and --with-system-gdbinit-dir path to be the standard path as well.
1 parent a67de84 commit 0aef354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compilation/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ function build_gdb() {
442442
../configure -C --enable-static --with-static-standard-libraries --disable-inprocess-agent \
443443
--enable-tui "$python_flag" \
444444
--with-expat --with-libexpat-type="static" \
445+
--with-gdb-datadir="/usr/share/gdb" --with-separate-debug-dir="/usr/lib/debug" \
446+
--with-system-gdbinit="/etc/gdb/gdbinit" --with-system-gdbinit-dir="/etc/gdb/gdbinit.d" \
447+
--with-jit-reader-dir="/usr/lib/gdb" \
445448
"--with-libiconv-prefix=$libiconv_prefix" --with-libiconv-type=static \
446449
"--with-gmp=$libgmp_prefix" \
447450
"--with-mpfr=$libmpfr_prefix" \

0 commit comments

Comments
 (0)