aboutsummaryrefslogtreecommitdiff
path: root/config/gdb.conf
blob: 0062f79644abf639dd747e53bc47b00e67e68529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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=""