diff options
Diffstat (limited to 'config/debug/gdb.in')
-rw-r--r-- | config/debug/gdb.in | 335 |
1 files changed, 32 insertions, 303 deletions
diff --git a/config/debug/gdb.in b/config/debug/gdb.in index c8652ca..741eeae 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -4,308 +4,37 @@ source "config/debug/gdb.in.cross" source "config/debug/gdb.in.native" -source "config/debug/gdb.in.gdbserver" -comment "gdb version" -config GDB_CUSTOM - bool - prompt "Custom gdb" - depends on EXPERIMENTAL - select GDB_7_12_or_later - help - The choosen gdb version shall be not downloaded. Instead use - a custom location to get the source. - -if GDB_CUSTOM - -config GDB_CUSTOM_LOCATION - string - prompt "Full path to custom gdb source" - help - Enter the path to the directory or tarball of your source for gcc. - - If the path is a tarball, it should extract to: <name>-<version>/ - where the name is this component, gcc, and the version is set - below in the custom version string. - -config GDB_CUSTOM_VERSION - string - prompt "Custom GDB version" - help - Enter the version number for your custom gdb. - -config GDB_VERSION - string - default GDB_CUSTOM_VERSION - -endif # GDB_CUSTOM - -if ! GDB_CUSTOM - -config DEBUG_GDB_SHOW_LINARO - bool - prompt "Show Linaro versions" - depends on OBSOLETE - help - Linaro is maintaining some advanced/more stable/experimental versions - of gdb, especially for the ARM architecture. - - Those versions have not been blessed by the gdb community (nor have they - been cursed either!), but they look to be pretty much stable, and even - more stable than the upstream versions. YMMV... - - If you do not know what this Linaro stuff is, then simply say 'n' here, - and rest in peace. OTOH, if you know what you are doing, you will be - able to use and enjoy :-) the Linaro versions by saying 'y' here. - - Linaro: http://www.linaro.org/ - -choice - bool - prompt "gdb version" -# Don't remove next line -# CT_INSERT_VERSION_BELOW - -config GDB_V_7_12_1 - bool - prompt "7.12.1" - select GDB_7_12_or_later - -config GDB_V_7_11_1 - bool - prompt "7.11.1" - select GDB_7_2_or_later - -config GDB_V_7_10_1 - bool - prompt "7.10.1 (OBSOLETE)" - select GDB_7_2_or_later - depends on OBSOLETE - -config GDB_V_7_10 - bool - prompt "7.10 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_9_1 - bool - prompt "7.9.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_9 - bool - prompt "7.9 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_8 - bool - prompt "linaro-7.8-2014.09 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_8_2 - bool - prompt "7.8.2 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - - -config GDB_V_7_8_1 - bool - prompt "7.8.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_8 - bool - prompt "7.8 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_7_1 - bool - prompt "linaro-7.7.1-2014.06 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_7_1 - bool - prompt "7.7.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_7 - bool - prompt "linaro-7.7-2014.05 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_7 - bool - prompt "7.7 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_6 - bool - prompt "linaro-7.6.1-2013.10 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - select GDB_7_2_or_later - -config GDB_V_7_6_1 - bool - prompt "7.6.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_5 - bool - prompt "linaro-7.5-2012.12 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_5_1 - bool - prompt "7.5.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_4 - bool - prompt "linaro-7.4-2012.06 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_4_1 - bool - prompt "7.4.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_4 - bool - prompt "7.4 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_linaro_7_3 - bool - prompt "linaro-7.3-2011.12 (OBSOLETE)" - depends on DEBUG_GDB_SHOW_LINARO - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_3_1 - bool - prompt "7.3.1 (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_3a - bool - prompt "7.3a (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_2a - bool - prompt "7.2a (OBSOLETE)" - depends on OBSOLETE - select GDB_7_2_or_later - -config GDB_V_7_1a - bool - prompt "7.1a (OBSOLETE)" - depends on OBSOLETE - select GDB_7_0_or_later - -config GDB_V_7_0_1a - bool - prompt "7.0.1a (OBSOLETE)" - depends on OBSOLETE - select GDB_7_0_or_later - -config GDB_V_7_0a - bool - prompt "7.0a (OBSOLETE)" - depends on OBSOLETE - select GDB_7_0_or_later - -config GDB_V_6_8a - bool - prompt "6.8a (OBSOLETE)" - depends on OBSOLETE - -endchoice - -endif # ! GDB_CUSTOM - -config GDB_7_12_or_later - bool - select GDB_7_2_or_later - -config GDB_7_2_or_later - bool - select GDB_7_0_or_later - -config GDB_7_0_or_later - bool - select GDB_HAS_PKGVERSION_BUGURL - select GDB_HAS_PYTHON - select GDB_INSTALL_GDBINIT - -config GDB_HAS_PKGVERSION_BUGURL - bool - -config GDB_HAS_PYTHON - bool - -config GDB_INSTALL_GDBINIT - bool - -if ! GDB_CUSTOM - -config GDB_VERSION - string -# Don't remove next line -# CT_INSERT_VERSION_STRING_BELOW - default "7.12.1" if GDB_V_7_12_1 - default "7.11.1" if GDB_V_7_11_1 - default "7.10.1" if GDB_V_7_10_1 - default "7.10" if GDB_V_7_10 - default "7.9.1" if GDB_V_7_9_1 - default "7.9" if GDB_V_7_9 - default "7.8.2" if GDB_V_7_8_2 - default "linaro-7.8-2014.09" if GDB_V_linaro_7_8 - default "7.8.1" if GDB_V_7_8_1 - default "7.8" if GDB_V_7_8 - default "linaro-7.7.1-2014.06-1" if GDB_V_linaro_7_7_1 - default "7.7.1" if GDB_V_7_7_1 - default "linaro-7.7-2014.05" if GDB_V_linaro_7_7 - default "7.7" if GDB_V_7_7 - default "linaro-7.6.1-2013.10" if GDB_V_linaro_7_6 - default "7.6.1" if GDB_V_7_6_1 - default "linaro-7.5-2012.12" if GDB_V_linaro_7_5 - default "7.5.1" if GDB_V_7_5_1 - default "linaro-7.4-2012.06" if GDB_V_linaro_7_4 - default "7.4.1" if GDB_V_7_4_1 - default "7.4" if GDB_V_7_4 - default "linaro-7.3-2011.12" if GDB_V_linaro_7_3 - default "7.3.1" if GDB_V_7_3_1 - default "7.3a" if GDB_V_7_3a - default "7.2a" if GDB_V_7_2a - default "7.1a" if GDB_V_7_1a - default "7.0.1a" if GDB_V_7_0_1a - default "7.0a" if GDB_V_7_0a - default "6.8a" if GDB_V_6_8a - -endif # ! GDB_CUSTOM +# GDB 8.0 now requires C++ for build. GDB 7.12 offered a configure +# switch to fall back to C. We want to use that option because +# the conversion in 7.12 was incomplete and had some breakages. +config GDB_HAS_DISABLE_CXX_BUILD + def_bool y + depends on GDB_7_12_or_later && !GDB_8_0_or_later + +# GDB 8.0 requires not just any C++, but recent enough to support C++11. +# Yes, in 2019 there are still LTS systems still lacking such support. +# I am looking at you, CentOS 6: no cookie for you, use an older GDB. +config GDB_DEP_CXX11 + def_bool y + depends on !CONFIGURE_has_cxx11 + select GDB_REQUIRE_older_than_8_0 + +# GDB10 and newer require std::future<> which was not implemented on some +# architectures until GCC9; see GCC PR 64735. +config GDB_DEP_NO_STD_FUTURE + def_bool y + depends on !GCC_9_or_later + select GDB_REQUIRE_older_than_10 + +# Does GDB need ps_get_thread_area with const qualifier? +config GDB_CONST_GET_THREAD_AREA + bool + default y if GDB_older_than_7_12 + +# As of GDB 10.x gdbserver is now at the toplevel of the distributed +# tarball (instead of a subdirectory of gdb) +config GDB_GDBSERVER_TOPLEVEL + def_bool y + depends on GDB_10_or_later |