# Keep up-to-date with latest upstream release branch and in sync with # config/gdbserver.conf latest="binutils-gdb.git~gdb-13-branch" # If yes, only static linking will be used static_link=yes # Keep this in sync with gdbserver.conf default_configure_flags="--with-gnu-ld --enable-plugins --enable-tui --with-pkgversion=Linaro_GDB-${release:-${date}} --disable-gas --disable-binutils --disable-elfcpp --disable-ld --disable-gold --disable-gprof --with-python=python3" # Workaround "array subscript 0 is outside array bounds" warning from GCC 12 # on bfd/section.c default_configure_flags="$default_configure_flags --disable-werror" # Allow GDB to load the libthread_db.so.1 we built. Substitute the '$' in # $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 # CFLAGS/LDFLAGS for additional libraries. mingw_extraconf="--disable-tui --with-python=no --with-gmp=$prefix --with-mpfr=$prefix CFLAGS=-I$prefix/usr/include LDFLAGS=-L$prefix/usr/lib" # Currently the GDB server can only be built native. if test x"${build}" != x"${target}"; then case ${target} in arm*-*elf) default_configure_flags="${default_configure_flags} --enable-sim" ;; aarch64*-*elf) default_configure_flags="${default_configure_flags} --enable-sim" ;; *) ;; esac fi # This is a list of default flags always supplied to "make check". runtest_flags=""