mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 01:28:53 +00:00
3950f8e87d
- 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(-)
145 lines
2.8 KiB
Plaintext
145 lines
2.8 KiB
Plaintext
# GDB menu
|
|
|
|
menuconfig GDB
|
|
bool
|
|
prompt "gdb"
|
|
default n
|
|
help
|
|
Enable gdb for the target
|
|
|
|
if GDB
|
|
|
|
config GDB_CROSS
|
|
bool
|
|
prompt "Cross-gdb"
|
|
default y
|
|
select GDB_GDBSERVER
|
|
help
|
|
Build and install a cross-gdb for the target, to run on host.
|
|
|
|
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 the toolchain.
|
|
|
|
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 "Native gdb"
|
|
default n
|
|
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 gdb comes in handy.
|
|
|
|
config GDB_GDBSERVER
|
|
bool
|
|
prompt "gdbserver"
|
|
default n
|
|
help
|
|
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
|
|
prompt "snapshot (EXPERIMENTAL)"
|
|
depends on EXPERIMENTAL
|
|
|
|
config GDB_V_6_4
|
|
bool
|
|
prompt "6.4 (OBSOLETE)"
|
|
depends on OBSOLETE
|
|
|
|
config GDB_V_6_5
|
|
bool
|
|
prompt "6.5"
|
|
|
|
config GDB_V_6_6
|
|
bool
|
|
prompt "6.6"
|
|
|
|
config GDB_V_6_7
|
|
bool
|
|
prompt "6.7 (EXPERIMENTAL)"
|
|
depends on EXPERIMENTAL
|
|
|
|
config GDB_V_6_7_1
|
|
bool
|
|
prompt "6.7.1 (EXPERIMENTAL)"
|
|
depends on EXPERIMENTAL
|
|
|
|
config GDB_V_6_8
|
|
bool
|
|
prompt "6.8 (EXPERIMENTAL)"
|
|
depends on EXPERIMENTAL
|
|
|
|
# CT_INSERT_VERSION_ABOVE
|
|
# Don't remove above line!
|
|
endchoice
|
|
|
|
config GDB_VERSION
|
|
string
|
|
default "snapshot" if GDB_V_snapshot
|
|
default "6.4" if GDB_V_6_4
|
|
default "6.5" if GDB_V_6_5
|
|
default "6.6" if GDB_V_6_6
|
|
default "6.7" if GDB_V_6_7
|
|
default "6.7.1" if GDB_V_6_7_1
|
|
default "6.8" if GDB_V_6_8
|
|
# CT_INSERT_VERSION_STRING_ABOVE
|
|
# Don't remove above line!
|
|
|
|
if GDB_NATIVE
|
|
|
|
comment "Native gdb needs the ncurses library on the target"
|
|
|
|
choice
|
|
bool
|
|
prompt "ncurses version"
|
|
|
|
config NCURSES_V_4_2
|
|
bool
|
|
prompt "4.2"
|
|
|
|
config NCURSES_V_5_6
|
|
bool
|
|
prompt "5.6"
|
|
|
|
endchoice
|
|
|
|
config NCURSES_VERSION
|
|
string
|
|
default "4.2" if NCURSES_V_4_2
|
|
default "5.6" if NCURSES_V_5_6
|
|
|
|
endif # GDB_NATIVE --> ncurses
|
|
|
|
endif
|