diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-05-17 17:56:27 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-05-17 17:56:27 +0200 |
commit | 9d8035bbaf4c0400dfe4821a50a6398ed051e856 (patch) | |
tree | 08acf8d070fb50595749a635da590f3548588438 /scripts/build | |
parent | 435c096e00ad5fa4f0a9e7ed922fae5dba043251 (diff) | |
download | crosstool-ng-9d8035bbaf4c0400dfe4821a50a6398ed051e856.tar.gz crosstool-ng-9d8035bbaf4c0400dfe4821a50a6398ed051e856.tar.bz2 crosstool-ng-9d8035bbaf4c0400dfe4821a50a6398ed051e856.zip |
debug/gdb: add option to enable/disable the IPA lib for gdbserver
gdbserver >= 7.2 comes with an optional library to use tracepoints, the
In Process Agent (IPA) library, libinproctrace.so.
Currently, we build gdbserver staticaly, but that breaks the build of
the IPA lib.
Add an option to biuld the IPA lib, but not if statically linking.
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index de258ea3..c2f0eab7 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -369,6 +369,14 @@ do_debug_gdb_build() { gdbserver_extra_config=("${extra_config[@]}") + if [ "${CT_GDB_GDBSERVER_HAS_IPA_LIB}" = "y" ]; then + if [ "${CT_GDB_GDBSERVER_BUILD_IPA_LIB}" = "y" ]; then + gdbserver_extra_config+=( --enable-inprocess-agent ) + else + gdbserver_extra_config+=( --disable-inprocess-agent ) + fi + fi + CT_DoExecLog CFG \ LDFLAGS="${gdbserver_LDFLAGS}" \ "${gdb_src_dir}/gdb/gdbserver/configure" \ |