summaryrefslogtreecommitdiff
path: root/config/debug
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-19 15:33:33 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-19 15:33:33 (GMT)
commit3950f8e87d5717bdb5e3bcdac69a544cef8efd28 (patch)
tree18f54c9c2cb664e249016fb172cd6373255f9250 /config/debug
parente66d06e8e3e613e16a406a051f77a4f323e70014 (diff)
A bunch of fixes/improvements to the gdb build:
- allow native builds (both shared and static) - fix enabling threads - better handle the gdbserver case - introduce the ncurses library to allow native builds - re-order config options adequately /trunk/scripts/build/debug/300-gdb.sh | 126 79 47 0 ++++++++++++++++++++++++++--------------- /trunk/config/debug/gdb.in | 45 33 12 0 +++++++++++---- 2 files changed, 112 insertions(+), 59 deletions(-)
Diffstat (limited to 'config/debug')
-rw-r--r--config/debug/gdb.in45
1 files changed, 33 insertions, 12 deletions
diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 8bebde7..4b35cc2 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -13,38 +13,59 @@ config GDB_CROSS
bool
prompt "Cross-gdb"
default y
+ select GDB_GDBSERVER
help
- Build and install a cross-gdb for the target, and to run on host.
+ Build and install a cross-gdb for the target, to run on host.
-config GDB_CROSS_STATIC_GDB
+config GDB_CROSS_STATIC
bool
prompt "Build a static cross gdb"
default n
depends on GDB_CROSS
help
A static cross gdb can be usefull if you debug on a machine that is
- not the one that is used to compile.
+ not the one that is used to compile the toolchain.
-config GDB_CROSS_STATIC_GDBSERVER
+ That way, you can share the cross-gdb without installing a toolchain
+ on every machine that will be used to debug target programs.
+
+config GDB_NATIVE
bool
- prompt "Build a static gdbserver"
+ prompt "Native gdb"
default n
- depends on GDB_CROSS
+ select GDB_GDBSERVER
+ help
+ Build and install a native gdb for the target, to run on the target.
+
+config GDB_NATIVE_STATIC
+ bool
+ prompt "Build a static native gdb"
+ default n
+ depends on GDB_NATIVE
help
In case you have trouble with dynamic loading of shared libraries,
- you will find that a static gdbserver comes in handy.
+ you will find that a static gdb comes in handy.
-config GDB_NATIVE
+config GDB_GDBSERVER
bool
- prompt "Native gdb (EXPERIMENTAL)"
+ prompt "gdbserver"
default n
- depends on EXPERIMENTAL
help
- Build and install a native gdb for the target, to run on the target.
+ Build and install a gdbserver for the target, to run on the target.
+
+config GDB_GDBSERVER_STATIC
+ bool
+ prompt "Build a static gdbserver"
+ default n
+ depends on GDB_GDBSERVER
+ help
+ In case you have trouble with dynamic loading of shared libraries,
+ you will find that a static gdbserver comes in handy.
choice
bool
prompt "gdb version"
+ depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
config GDB_V_snapshot
bool
@@ -118,6 +139,6 @@ config NCURSES_VERSION
default "4.2" if NCURSES_V_4_2
default "5.6" if NCURSES_V_5_6
-endif # ncurses
+endif # GDB_NATIVE --> ncurses
endif