diff options
author | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2023-06-29 23:58:06 +0200 |
---|---|---|
committer | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2023-07-04 18:17:13 +0200 |
commit | d4eb30f20f48072517e76a2b3d3e9e1dd92d314f (patch) | |
tree | ee7ac0f67d4bfee93e663b2be43fe0b947bc9d1c | |
parent | b3e58745503a3fbebec2aa31d4f151587a4386fd (diff) |
config/gdb.conf: Add --with-additional-debug-dirs option
Add configure option "--with-additional-debug-dirs=/usr/lib/debug" so that
GDB can find the distro's debug info in /usr/lib/debug. This fixes Ada
tests for tcwg_gnu_native_check_gdb on arm, which use the distro's compiler
and thus need to find the distro's ld.so debug symbols.
At the moment this option is implemented by a patch applied locally, but
it has been submitted upstream.
Change-Id: I08470dd5253083642b64d4355d1d49b94af8d49c
-rw-r--r-- | config/gdb.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/gdb.conf b/config/gdb.conf index c8c425a3..0062f796 100644 --- a/config/gdb.conf +++ b/config/gdb.conf @@ -14,6 +14,11 @@ default_configure_flags="$default_configure_flags --disable-werror" # $debugdir and $datadir with '@@' to preserve them from shell parameter # expansion. They will be converted back before being passed to configure. default_configure_flags="$default_configure_flags --with-auto-load-safe-path=@@debugdir:@@datadir/auto-load:$sysroots" +# Point GDB to the distro's debug info in /usr/lib/debug. This fixes Ada tests +# for tcwg_gnu_native_check_gdb on arm, which use the distro's compiler and thus +# need to find the distro's ld.so debug symbols. +default_configure_flags="$default_configure_flags --with-additional-debug-dirs=/usr/lib/debug" + default_makeflags="all-gdb" # For MinGW hosts, disable some features to reduce dependencies and add |