GMP and MPFR are no longer a sub-component of gcc (config-wise).
Build and install GMP and MPFR for the target.
Use the target GMP and MPFR to build the native gdb.
Have separate extra_config for cross gdb, native gdb and gdbserver.
Check native GMP and MPFR in //.
/trunk/scripts/build/debug/300-gdb.sh | 27 19 8 0 ++++++++++++++++-------
/trunk/scripts/build/gmp.sh | 47 39 8 0 ++++++++++++++++++++++++++++++++-------
/trunk/scripts/build/mpfr.sh | 49 40 9 0 +++++++++++++++++++++++++++++++++--------
/trunk/steps.mk | 2 2 0 0 ++
/trunk/config/cc/gcc.in | 18 1 17 0 +--------------
/trunk/config/debug/gdb.in | 6 1 5 0 +----
/trunk/config/config.in | 1 1 0 0 +
/trunk/config/gmp_mpfr.in | 34 34 0 0 ++++++++++++++++++++++++++++
8 files changed, 137 insertions(+), 47 deletions(-)
1 # Build script for strace
3 is_enabled="${CT_STRACE}"
6 [ "${CT_STRACE}" = "y" ] || return 0
7 echo "strace-${CT_STRACE_VERSION}"
10 do_debug_strace_get() {
11 CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
14 do_debug_strace_extract() {
15 CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
18 do_debug_strace_build() {
19 CT_DoStep INFO "Installing strace"
20 mkdir -p "${CT_BUILD_DIR}/build-strace"
21 CT_Pushd "${CT_BUILD_DIR}/build-strace"
23 CT_DoLog EXTRA "Configuring strace"
24 "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure" \
27 --prefix=/usr 2>&1 |CT_DoLog ALL
29 CT_DoLog EXTRA "Building strace"
30 make 2>&1 |CT_DoLog ALL
32 CT_DoLog EXTRA "Installing strace"
33 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL