Offer an option to build the gdbserver statically. This helps in case of debugging shared library loading.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jun 17 15:46:13 2007 +0000 (2007-06-17)
changeset 175043e44606e28
parent 174 75f3f975e2ad
child 176 59676cfb4ada
Offer an option to build the gdbserver statically. This helps in case of debugging shared library loading.
config/debug/gdb.in
scripts/build/debug/gdb.sh
     1.1 --- a/config/debug/gdb.in	Sun Jun 17 14:51:37 2007 +0000
     1.2 +++ b/config/debug/gdb.in	Sun Jun 17 15:46:13 2007 +0000
     1.3 @@ -16,6 +16,15 @@
     1.4      help
     1.5        Build and install a cross-gdb for the target, and to run on host.
     1.6  
     1.7 +config GDB_CROSS_STATIC_GDBSERVER
     1.8 +    bool
     1.9 +    prompt "Build a static gdbserver"
    1.10 +    default n
    1.11 +    depends on GDB_CROSS
    1.12 +    help
    1.13 +      In case you have trouble with dynamic loading of shared libraries,
    1.14 +      you will find that a static gdbserver comes in handy.
    1.15 +
    1.16  config GDB_NATIVE
    1.17      bool
    1.18      prompt "Native gdb (EXPERIMENTAL)"
     2.1 --- a/scripts/build/debug/gdb.sh	Sun Jun 17 14:51:37 2007 +0000
     2.2 +++ b/scripts/build/debug/gdb.sh	Sun Jun 17 15:46:13 2007 +0000
     2.3 @@ -70,6 +70,12 @@
     2.4          # Bah, GNU folks strike again... :-(
     2.5          chmod +x "${gdb_src_dir}/gdb/gdbserver/configure"
     2.6  
     2.7 +        gdbserver_LDFLAGS=
     2.8 +        if [ "${CT_GDB_CROSS_STATIC_GDBSERVER}" = "y" ]; then
     2.9 +            gdbserver_LDFLAGS=-static
    2.10 +        fi
    2.11 +
    2.12 +        LDFLAGS="${gdbserver_LDFLAGS}"                  \
    2.13          "${gdb_src_dir}/gdb/gdbserver/configure"        \
    2.14              --build=${CT_BUILD}                         \
    2.15              --host=${CT_TARGET}                         \