summaryrefslogtreecommitdiff
path: root/config/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 /config/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 'config/debug')
-rw-r--r--config/debug/gdb.in.gdbserver20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/debug/gdb.in.gdbserver b/config/debug/gdb.in.gdbserver
index ecc2c4a..50c3b8b 100644
--- a/config/debug/gdb.in.gdbserver
+++ b/config/debug/gdb.in.gdbserver
@@ -9,6 +9,11 @@ config GDB_GDBSERVER
if GDB_GDBSERVER
+config GDB_GDBSERVER_HAS_IPA_LIB
+ bool
+ depends on GDB_7_2_or_later
+ default y
+
config GDB_GDBSERVER_STATIC
bool
prompt "Build a static gdbserver"
@@ -17,6 +22,21 @@ config GDB_GDBSERVER_STATIC
In case you have trouble with dynamic loading of shared libraries,
you will find that a static gdbserver comes in handy.
+config GDB_GDBSERVER_BUILD_IPA_LIB
+ bool
+ prompt "Build the IPA library"
+ depends on GDB_GDBSERVER_HAS_IPA_LIB && !GDB_GDBSERVER_STATIC
+ help
+ gdbserver >= 7.2 comes with an optional library to use tracepoints,
+ the In Process Agent (IPA) library, libinproctrace.so.
+
+ Say 'y' if you indend to use tracepoints when debugging your
+ programs with gdbserver.
+
+ Note: Currently, building this library is not possible when the
+ gdbserver is built statically. This is a limitation in
+ crosstool-NG, so do not bug upstream about it...
+
endif # GDB_GDBSERVER
if BARE_METAL