xref: /OK3568_Linux_fs/buildroot/package/gdb/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_ARCH_SUPPORTS
2*4882a593Smuzhiyun	bool
3*4882a593Smuzhiyun	default y
4*4882a593Smuzhiyun	depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
5*4882a593Smuzhiyun	depends on !BR2_microblaze
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuncomment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
8*4882a593Smuzhiyun	depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
9*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuncomment "gdb/gdbserver >= 8.x needs a toolchain w/ C++, gcc >= 4.8"
12*4882a593Smuzhiyun	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB
15*4882a593Smuzhiyun	bool "gdb"
16*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
17*4882a593Smuzhiyun	depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
18*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
19*4882a593Smuzhiyun	depends on BR2_INSTALL_LIBSTDCPP
20*4882a593Smuzhiyun	select BR2_PACKAGE_ZLIB
21*4882a593Smuzhiyun	# When the external toolchain gdbserver is copied to the
22*4882a593Smuzhiyun	# target, we don't allow building a separate gdbserver. The
23*4882a593Smuzhiyun	# one from the external toolchain should be used.
24*4882a593Smuzhiyun	select BR2_PACKAGE_GDB_SERVER if \
25*4882a593Smuzhiyun		(!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
26*4882a593Smuzhiyun	help
27*4882a593Smuzhiyun	  GDB, the GNU Project debugger, allows you to see what is
28*4882a593Smuzhiyun	  going on `inside' another program while it executes -- or
29*4882a593Smuzhiyun	  what another program was doing at the moment it crashed.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	  This option allows to build gdbserver and/or the gdb
32*4882a593Smuzhiyun	  debugger for the target.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	  For embedded development, the most common solution is to
35*4882a593Smuzhiyun	  build only 'gdbserver' for the target, and use a cross-gdb
36*4882a593Smuzhiyun	  on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
37*4882a593Smuzhiyun	  to enable one. Notice that external toolchains often provide
38*4882a593Smuzhiyun	  their own pre-built cross-gdb and gdbserver binaries.
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	  http://www.gnu.org/software/gdb/
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunif BR2_PACKAGE_GDB
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_STATIC
45*4882a593Smuzhiyun	bool "Enable static"
46*4882a593Smuzhiyun	default y if BR2_STATIC_LIBS
47*4882a593Smuzhiyun	select BR2_PACKAGE_GMP_STATIC if BR2_PACKAGE_GMP
48*4882a593Smuzhiyun	select BR2_PACKAGE_XZ_STATIC if BR2_PACKAGE_XZ
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_SERVER
51*4882a593Smuzhiyun	bool "gdbserver"
52*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
53*4882a593Smuzhiyun	help
54*4882a593Smuzhiyun	  Build the gdbserver stub to run on the target.
55*4882a593Smuzhiyun	  A full gdb is needed to debug the progam.
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_DEBUGGER
58*4882a593Smuzhiyun	bool "full debugger"
59*4882a593Smuzhiyun	depends on BR2_USE_WCHAR
60*4882a593Smuzhiyun	depends on !BR2_sh
61*4882a593Smuzhiyun	select BR2_PACKAGE_GMP if !BR2_GDB_VERSION_10 && !BR2_arc
62*4882a593Smuzhiyun	select BR2_PACKAGE_NCURSES
63*4882a593Smuzhiyun
64*4882a593Smuzhiyuncomment "full gdb on target needs a toolchain w/ wchar"
65*4882a593Smuzhiyun	depends on !BR2_sh
66*4882a593Smuzhiyun	depends on !BR2_USE_WCHAR
67*4882a593Smuzhiyun
68*4882a593Smuzhiyunif BR2_PACKAGE_GDB_DEBUGGER
69*4882a593Smuzhiyun
70*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_TUI
71*4882a593Smuzhiyun	bool "TUI support"
72*4882a593Smuzhiyun	help
73*4882a593Smuzhiyun	  This option enables terminal user interface (TUI) for gdb
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun	  "The GDB Text User Interface (TUI) is a terminal interface
76*4882a593Smuzhiyun	  which uses the curses library to show the source file, the
77*4882a593Smuzhiyun	  assembly output, the program registers and GDB commands in
78*4882a593Smuzhiyun	  separate text windows."
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	  https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
81*4882a593Smuzhiyun
82*4882a593Smuzhiyunconfig BR2_PACKAGE_GDB_PYTHON
83*4882a593Smuzhiyun	bool "Python support"
84*4882a593Smuzhiyun	depends on BR2_PACKAGE_PYTHON3
85*4882a593Smuzhiyun	help
86*4882a593Smuzhiyun	  This option enables Python support in the target gdb.
87*4882a593Smuzhiyun
88*4882a593Smuzhiyunendif
89*4882a593Smuzhiyun
90*4882a593Smuzhiyunendif
91