feab01da9e92742a422aab4af6d827c1f271d877
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gdb / Config.in
1 comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
2         depends on !BR2_nios2 && !BR2_bfin
3         depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
4
5 config BR2_PACKAGE_GDB
6         bool "gdb"
7         # When the external toolchain gdbserver is copied to the
8         # target, we don't allow building a separate gdbserver. The
9         # one from the external toolchain should be used.
10         select BR2_PACKAGE_GDB_SERVER if \
11                 (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
12         depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
13         depends on !BR2_nios2 && !BR2_bfin
14         help
15           GDB, the GNU Project debugger, allows you to see what is
16           going on `inside' another program while it executes -- or
17           what another program was doing at the moment it crashed.
18
19           This option allows to build gdbserver and/or the gdb
20           debugger for the target.
21
22           For embedded development, the most common solution is to
23           build only 'gdbserver' for the target, and use a cross-gdb
24           on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
25           to enable one. Notice that external toolchains often provide
26           their own pre-built cross-gdb and gdbserver binaries.
27
28           http://www.gnu.org/software/gdb/
29
30 if BR2_PACKAGE_GDB
31
32 config BR2_PACKAGE_GDB_SERVER
33         bool "gdbserver"
34         depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
35         help
36           Build the gdbserver stub to run on the target.
37           A full gdb is needed to debug the progam.
38
39 config BR2_PACKAGE_GDB_DEBUGGER
40         bool "full debugger"
41         select BR2_PACKAGE_NCURSES
42         depends on BR2_USE_WCHAR
43         depends on !BR2_sh && !BR2_sh64 && !BR2_microblaze
44
45 comment "full gdb on target needs a toolchain w/ wchar"
46         depends on !BR2_sh && !BR2_sh64 && !BR2_microblaze
47         depends on !BR2_USE_WCHAR
48
49 if BR2_PACKAGE_GDB_DEBUGGER
50
51 config BR2_PACKAGE_GDB_TUI
52         bool "TUI support"
53         help
54           This option enables terminal user interface (TUI) for gdb
55
56           "The GDB Text User Interface (TUI) is a terminal interface
57           which uses the curses library to show the source file, the
58           assembly output, the program registers and GDB commands in
59           separate text windows."
60
61           https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
62
63 config BR2_PACKAGE_GDB_PYTHON
64         bool "Python support"
65         # Only Python 2.x is supported by gdb for now
66         depends on BR2_PACKAGE_PYTHON
67         help
68           This option enables Python support in the target gdb.
69
70 endif
71
72 endif