summaryrefslogtreecommitdiff
path: root/scripts/build/debug
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-05-17 15:56:27 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-05-17 15:56:27 (GMT)
commit9d8035bbaf4c0400dfe4821a50a6398ed051e856 (patch)
tree08acf8d070fb50595749a635da590f3548588438 /scripts/build/debug
parent435c096e00ad5fa4f0a9e7ed922fae5dba043251 (diff)
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/debug')
-rw-r--r--scripts/build/debug/300-gdb.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index de258ea..c2f0eab 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" \