Don't force building target GMP and MPFR when a native gdb is built. Rather,
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Jun 25 21:56:36 2008 +0000 (2008-06-25)
changeset 622259d3b95bfad
parent 621 e2c8f427c140
child 623 4b78afc74962
Don't force building target GMP and MPFR when a native gdb is built. Rather,
add a config knob to configure the native gdb to use or not to use GMP and
MPFR; _this_config_knob_ will force building the target GMP and MPFR only if
turned on.

/trunk/scripts/build/debug/300-gdb.sh | 2 1 1 0 +-
/trunk/config/debug/gdb.in | 21 19 2 0 +++++++++++++++++++--
2 files changed, 20 insertions(+), 3 deletions(-)
config/debug/gdb.in
scripts/build/debug/300-gdb.sh
     1.1 --- a/config/debug/gdb.in	Wed Jun 25 20:56:50 2008 +0000
     1.2 +++ b/config/debug/gdb.in	Wed Jun 25 21:56:36 2008 +0000
     1.3 @@ -33,7 +33,6 @@
     1.4      bool
     1.5      prompt "Native gdb"
     1.6      default n
     1.7 -    select GMP_MPFR_TARGET if GMP_MPFR
     1.8      help
     1.9        Build and install a native gdb for the target, to run on the target.
    1.10  
    1.11 @@ -46,6 +45,24 @@
    1.12        In case you have trouble with dynamic loading of shared libraries,
    1.13        you will find that a static gdb comes in handy.
    1.14  
    1.15 +config GDB_NATIVE_USE_GMP_MPFR
    1.16 +    bool
    1.17 +    prompt "Use GMP and MPFR (EXPERIMENTAL)"
    1.18 +    default n
    1.19 +    depends on EXPERIMENTAL
    1.20 +    depends on GDB_NATIVE
    1.21 +    select GMP_MPFR
    1.22 +    select GMP_MPFR_TARGET
    1.23 +    help
    1.24 +      gdb can make use of the GMP and MPFR libraries.
    1.25 +
    1.26 +      While the cross-gdb (above) can use the libraries compiled for the
    1.27 +      host, the native gdb needs the libraries for the target (where it will
    1.28 +      eventually run).
    1.29 +
    1.30 +      Setting this option will force building the GMP and MPFR libraries for
    1.31 +      the target, and configure the native gdb to use them.
    1.32 +
    1.33  config GDB_GDBSERVER
    1.34      bool
    1.35      prompt "gdbserver"
    1.36 @@ -56,7 +73,7 @@
    1.37  config GDB_GDBSERVER_STATIC
    1.38      bool
    1.39      prompt "Build a static gdbserver"
    1.40 -    default n
    1.41 +    default y
    1.42      depends on GDB_GDBSERVER
    1.43      help
    1.44        In case you have trouble with dynamic loading of shared libraries,
     2.1 --- a/scripts/build/debug/300-gdb.sh	Wed Jun 25 20:56:50 2008 +0000
     2.2 +++ b/scripts/build/debug/300-gdb.sh	Wed Jun 25 21:56:36 2008 +0000
     2.3 @@ -132,7 +132,7 @@
     2.4              none)   native_extra_config="${native_extra_config} --disable-threads";;
     2.5              *)      native_extra_config="${native_extra_config} --enable-threads";;
     2.6          esac
     2.7 -        if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
     2.8 +        if [ "${CT_GDB_NATIVE_USE_GMP_MPFR}" = "y" ]; then
     2.9              native_extra_config="${native_extra_config} --with-gmp=${CT_SYSROOT_DIR}/usr --with-mpfr=${CT_SYSROOT_DIR}/usr"
    2.10          fi
    2.11