From 3950f8e87d5717bdb5e3bcdac69a544cef8efd28 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 19 Jun 2008 15:33:33 +0000 Subject: 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(-) --- config/debug/gdb.in | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) (limited to 'config/debug') diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 8bebde74..4b35cc2a 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 -- cgit v1.2.3