2007-05-17 16:22:51 +00:00
|
|
|
# GDB menu
|
|
|
|
|
2008-10-10 14:30:44 +00:00
|
|
|
config DEBUG_gdb
|
2007-05-17 16:22:51 +00:00
|
|
|
help
|
|
|
|
Enable gdb for the target
|
|
|
|
|
|
|
|
config GDB_CROSS
|
|
|
|
bool
|
|
|
|
prompt "Cross-gdb"
|
|
|
|
default y
|
2008-09-14 16:21:07 +00:00
|
|
|
select GDB_GDBSERVER if ! BARE_METAL
|
2007-05-17 16:22:51 +00:00
|
|
|
help
|
2008-06-19 15:33:33 +00:00
|
|
|
Build and install a cross-gdb for the target, to run on host.
|
2007-05-17 16:22:51 +00:00
|
|
|
|
2008-06-19 15:33:33 +00:00
|
|
|
config GDB_CROSS_STATIC
|
2008-04-27 10:25:02 +00:00
|
|
|
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
|
2008-06-19 15:33:33 +00:00
|
|
|
not the one that is used to compile the toolchain.
|
2009-05-25 20:27:14 +00:00
|
|
|
|
2008-06-19 15:33:33 +00:00
|
|
|
That way, you can share the cross-gdb without installing a toolchain
|
|
|
|
on every machine that will be used to debug target programs.
|
|
|
|
|
2008-09-02 10:47:44 +00:00
|
|
|
config GDB_CROSS_INSIGHT
|
|
|
|
bool
|
|
|
|
prompt "Use Insight instead (EXPERIMENTAL)"
|
|
|
|
default n
|
|
|
|
depends on GDB_CROSS
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
help
|
|
|
|
If you say 'Y' here, then Insight will be used to build the cross
|
|
|
|
debugger, instead of the plain gdb.
|
|
|
|
|
|
|
|
Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
|
|
|
|
|
2008-06-19 15:33:33 +00:00
|
|
|
config GDB_NATIVE
|
2007-06-17 15:46:13 +00:00
|
|
|
bool
|
2008-06-19 15:33:33 +00:00
|
|
|
prompt "Native gdb"
|
2007-06-17 15:46:13 +00:00
|
|
|
default n
|
2008-09-14 16:21:07 +00:00
|
|
|
depends on ! BARE_METAL
|
2008-06-19 15:33:33 +00:00
|
|
|
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
|
2007-06-17 15:46:13 +00:00
|
|
|
help
|
|
|
|
In case you have trouble with dynamic loading of shared libraries,
|
2008-06-19 15:33:33 +00:00
|
|
|
you will find that a static gdb comes in handy.
|
2007-06-17 15:46:13 +00:00
|
|
|
|
2008-06-25 21:56:36 +00:00
|
|
|
config GDB_NATIVE_USE_GMP_MPFR
|
|
|
|
bool
|
2008-09-02 19:50:45 +00:00
|
|
|
prompt "Use GMP and MPFR"
|
2008-06-25 21:56:36 +00:00
|
|
|
default n
|
|
|
|
depends on GDB_NATIVE
|
|
|
|
select GMP_MPFR
|
2009-05-25 20:27:14 +00:00
|
|
|
select COMP_LIBS_TARGET
|
2008-06-25 21:56:36 +00:00
|
|
|
help
|
|
|
|
gdb can make use of the GMP and MPFR libraries.
|
2009-05-25 20:27:14 +00:00
|
|
|
|
2008-06-25 21:56:36 +00:00
|
|
|
While the cross-gdb (above) can use the libraries compiled for the
|
|
|
|
host, the native gdb needs the libraries for the target (where it will
|
|
|
|
eventually run).
|
2009-05-25 20:27:14 +00:00
|
|
|
|
2008-06-25 21:56:36 +00:00
|
|
|
Setting this option will force building the GMP and MPFR libraries for
|
|
|
|
the target, and configure the native gdb to use them.
|
|
|
|
|
2008-06-19 15:33:33 +00:00
|
|
|
config GDB_GDBSERVER
|
2007-05-17 16:22:51 +00:00
|
|
|
bool
|
2008-06-19 15:33:33 +00:00
|
|
|
prompt "gdbserver"
|
2007-05-17 16:22:51 +00:00
|
|
|
default n
|
2008-09-14 16:21:07 +00:00
|
|
|
depends on ! BARE_METAL
|
2007-05-17 16:22:51 +00:00
|
|
|
help
|
2008-06-19 15:33:33 +00:00
|
|
|
Build and install a gdbserver for the target, to run on the target.
|
|
|
|
|
|
|
|
config GDB_GDBSERVER_STATIC
|
|
|
|
bool
|
|
|
|
prompt "Build a static gdbserver"
|
2008-06-25 21:56:36 +00:00
|
|
|
default y
|
2008-06-19 15:33:33 +00:00
|
|
|
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.
|
2007-05-17 16:22:51 +00:00
|
|
|
|
2009-03-26 18:58:13 +00:00
|
|
|
if BARE_METAL
|
|
|
|
comment "In bare-metal, you'll need to "
|
|
|
|
comment "provide your own gdbserver stub."
|
|
|
|
endif # BARE_METAL
|
|
|
|
|
2007-05-17 16:22:51 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "gdb version"
|
2008-06-19 15:33:33 +00:00
|
|
|
depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_BELOW
|
2007-05-17 16:22:51 +00:00
|
|
|
|
2009-10-28 17:34:49 +00:00
|
|
|
config GDB_V_7_0
|
|
|
|
bool
|
|
|
|
prompt "7.0 (EXPERIMENTAL)"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
|
2009-09-13 15:51:33 +00:00
|
|
|
config GDB_V_6_8
|
2007-05-17 16:22:51 +00:00
|
|
|
bool
|
2009-09-13 15:51:33 +00:00
|
|
|
prompt "6.8"
|
2007-05-17 16:22:51 +00:00
|
|
|
|
2009-09-13 16:38:06 +00:00
|
|
|
config GDB_V_snapshot
|
|
|
|
bool
|
|
|
|
prompt "snapshot (EXPERIMENTAL)"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
depends on ! GDB_CROSS_INSIGHT
|
2008-09-18 09:22:25 +00:00
|
|
|
|
2007-05-17 16:22:51 +00:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config GDB_VERSION
|
|
|
|
string
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_STRING_BELOW
|
2009-10-28 17:34:49 +00:00
|
|
|
default "7.0" if GDB_V_7_0
|
2008-05-02 21:54:46 +00:00
|
|
|
default "6.8" if GDB_V_6_8
|
2009-09-13 16:38:06 +00:00
|
|
|
default "snapshot" if GDB_V_snapshot
|
2007-05-17 16:22:51 +00:00
|
|
|
|
2008-06-18 12:33:32 +00:00
|
|
|
if GDB_NATIVE
|
|
|
|
|
2009-03-23 20:47:30 +00:00
|
|
|
comment "Native gdb needs a native ncurses library"
|
2008-06-18 12:33:32 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "ncurses version"
|
|
|
|
|
2009-02-02 21:09:07 +00:00
|
|
|
config NCURSES_V_5_7
|
|
|
|
bool
|
|
|
|
prompt "5.7"
|
|
|
|
|
2009-09-13 15:51:33 +00:00
|
|
|
config NCURSES_V_5_6
|
|
|
|
bool
|
|
|
|
prompt "5.6"
|
|
|
|
|
2008-06-18 12:33:32 +00:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config NCURSES_VERSION
|
|
|
|
string
|
2009-02-02 21:09:07 +00:00
|
|
|
default "5.7" if NCURSES_V_5_7
|
2009-09-13 15:51:33 +00:00
|
|
|
default "5.6" if NCURSES_V_5_6
|
2008-06-18 12:33:32 +00:00
|
|
|
|
2008-06-19 15:33:33 +00:00
|
|
|
endif # GDB_NATIVE --> ncurses
|