1.1 --- a/config/debug/gdb.in.cross Mon Mar 15 21:44:20 2010 +0100
1.2 +++ b/config/debug/gdb.in.cross Mon Mar 15 21:51:20 2010 +0100
1.3 @@ -10,10 +10,27 @@
1.4
1.5 if GDB_CROSS
1.6
1.7 +config GDB_CROSS_USE_GMP_MPFR
1.8 + bool
1.9 + prompt "Use GMP/MPFR"
1.10 + default n
1.11 + select GMP
1.12 + select MPFR
1.13 + select GDB_CROSS_NO_STATIC
1.14 + help
1.15 + gdb can use GMP+MPFR, although it does not seem compulsory.
1.16 +
1.17 + Say 'Y' here if you want to use GMP+MPFR.
1.18 +
1.19 +config GDB_CROSS_NO_STATIC
1.20 + bool
1.21 + default n
1.22 +
1.23 config GDB_CROSS_STATIC
1.24 bool
1.25 prompt "Build a static cross gdb"
1.26 default n
1.27 + depends on ! GDB_CROSS_NO_STATIC
1.28 help
1.29 A static cross gdb can be usefull if you debug on a machine that is
1.30 not the one that is used to compile the toolchain.
2.1 --- a/scripts/build/debug/300-gdb.sh Mon Mar 15 21:44:20 2010 +0100
2.2 +++ b/scripts/build/debug/300-gdb.sh Mon Mar 15 21:51:20 2010 +0100
2.3 @@ -99,8 +99,10 @@
2.4 cd "${CT_BUILD_DIR}/build-gdb-cross"
2.5
2.6 cross_extra_config=("${extra_config[@]}")
2.7 - [ -z "${CT_GMP}" ] || cross_extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
2.8 - [ -z "${CT_MPFR}" ] || cross_extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
2.9 + if [ "${CT_GDB_CROSS_USE_GMP_MPFR}" = "y" ]; then
2.10 + cross_extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
2.11 + cross_extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
2.12 + fi
2.13 case "${CT_THREADS}" in
2.14 none) cross_extra_config+=("--disable-threads");;
2.15 *) cross_extra_config+=("--enable-threads");;