From 9d8035bbaf4c0400dfe4821a50a6398ed051e856 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 17 May 2012 17:56:27 +0200 Subject: 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 Signed-off-by: "Yann E. MORIN" --- scripts/build/debug/300-gdb.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts') 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" \ -- cgit v1.2.3