1 config BR2_PACKAGE_GDB_ARCH_SUPPORTS
4 depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
5 depends on !BR2_microblaze
9 comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
10 depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
11 depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
13 config BR2_PACKAGE_GDB
15 depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
16 depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
17 # When the external toolchain gdbserver is copied to the
18 # target, we don't allow building a separate gdbserver. The
19 # one from the external toolchain should be used.
20 select BR2_PACKAGE_GDB_SERVER if \
21 (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
23 GDB, the GNU Project debugger, allows you to see what is
24 going on `inside' another program while it executes -- or
25 what another program was doing at the moment it crashed.
27 This option allows to build gdbserver and/or the gdb
28 debugger for the target.
30 For embedded development, the most common solution is to
31 build only 'gdbserver' for the target, and use a cross-gdb
32 on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
33 to enable one. Notice that external toolchains often provide
34 their own pre-built cross-gdb and gdbserver binaries.
36 http://www.gnu.org/software/gdb/
40 config BR2_PACKAGE_GDB_SERVER
42 depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
44 Build the gdbserver stub to run on the target.
45 A full gdb is needed to debug the progam.
47 config BR2_PACKAGE_GDB_DEBUGGER
49 depends on BR2_USE_WCHAR
51 select BR2_PACKAGE_NCURSES
53 comment "full gdb on target needs a toolchain w/ wchar"
55 depends on !BR2_USE_WCHAR
57 if BR2_PACKAGE_GDB_DEBUGGER
59 config BR2_PACKAGE_GDB_TUI
62 This option enables terminal user interface (TUI) for gdb
64 "The GDB Text User Interface (TUI) is a terminal interface
65 which uses the curses library to show the source file, the
66 assembly output, the program registers and GDB commands in
67 separate text windows."
69 https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
71 config BR2_PACKAGE_GDB_PYTHON
73 # Only Python 2.x is supported by gdb for now
74 depends on BR2_PACKAGE_PYTHON
76 This option enables Python support in the target gdb.