xref: /OK3568_Linux_fs/buildroot/package/gdb/Config.in.host (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_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 "Host GDB Options"
8*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
9*4882a593Smuzhiyun	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GDB
12*4882a593Smuzhiyun	bool "Build cross gdb for the host"
13*4882a593Smuzhiyun	# When the external toolchain gdbserver is used, we shouldn't
14*4882a593Smuzhiyun	# allow to build a cross-gdb, as the one of the external
15*4882a593Smuzhiyun	# toolchain should be used.
16*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
17*4882a593Smuzhiyun	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
18*4882a593Smuzhiyun	help
19*4882a593Smuzhiyun	  Build a cross gdb that runs on the host machine and debugs
20*4882a593Smuzhiyun	  programs running on the target. It requires 'gdbserver'
21*4882a593Smuzhiyun	  installed on the target, see BR2_PACKAGE_GDB_SERVER to
22*4882a593Smuzhiyun	  enable it.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunif BR2_PACKAGE_HOST_GDB
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GDB_TUI
27*4882a593Smuzhiyun	bool "TUI support"
28*4882a593Smuzhiyun	help
29*4882a593Smuzhiyun	  This option enables terminal user interface (TUI) for gdb
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GDB_PYTHON3
32*4882a593Smuzhiyun	bool "Python support"
33*4882a593Smuzhiyun	help
34*4882a593Smuzhiyun	  This option enables the Python 3 support in the cross gdb.
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GDB_SIM
37*4882a593Smuzhiyun	bool "Simulator support"
38*4882a593Smuzhiyun	depends on !BR2_arc
39*4882a593Smuzhiyun	help
40*4882a593Smuzhiyun	  This option enables the simulator support in the cross gdb.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunchoice
43*4882a593Smuzhiyun	prompt "GDB debugger Version"
44*4882a593Smuzhiyun	default BR2_GDB_VERSION_11
45*4882a593Smuzhiyun	depends on !BR2_arc
46*4882a593Smuzhiyun	help
47*4882a593Smuzhiyun	  Select the version of gdb you wish to use.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyunconfig BR2_GDB_VERSION_10
50*4882a593Smuzhiyun	bool "gdb 10.x"
51*4882a593Smuzhiyun	# gdbserver support missing
52*4882a593Smuzhiyun	depends on !BR2_or1k
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunconfig BR2_GDB_VERSION_11
55*4882a593Smuzhiyun	bool "gdb 11.x"
56*4882a593Smuzhiyun	# gdbserver support missing
57*4882a593Smuzhiyun	depends on !BR2_or1k
58*4882a593Smuzhiyun
59*4882a593Smuzhiyunconfig BR2_GDB_VERSION_12
60*4882a593Smuzhiyun	bool "gdb 12.x"
61*4882a593Smuzhiyun
62*4882a593Smuzhiyunendchoice
63*4882a593Smuzhiyun
64*4882a593Smuzhiyunendif
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun# If cross-gdb is not enabled, the latest stable version is chosen.
67*4882a593Smuzhiyunconfig BR2_GDB_VERSION
68*4882a593Smuzhiyun	string
69*4882a593Smuzhiyun	default "arc-2020.09-release-gdb" if BR2_arc
70*4882a593Smuzhiyun	default "10.2"	   if BR2_GDB_VERSION_10
71*4882a593Smuzhiyun	default "11.2"     if BR2_GDB_VERSION_11 || (!BR2_PACKAGE_HOST_GDB && !BR2_or1k)
72*4882a593Smuzhiyun	default "12.1"     if BR2_GDB_VERSION_12 || (!BR2_PACKAGE_HOST_GDB && BR2_or1k)
73*4882a593Smuzhiyun	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
74