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