summaryrefslogtreecommitdiff
path: root/config/debug/gdb.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-03-17 18:37:43 (GMT)
committerGitHub <noreply@github.com>2019-03-17 18:37:43 (GMT)
commit89ba62fb1daad737cdb33c3b1ef69092beeaab0b (patch)
tree34ea6400ccf438cd9de5d42afe636fde0a011f50 /config/debug/gdb.in
parentc4126d9397353a74ca5aff602dd2c0c527e1dd07 (diff)
parente4475c33df8702ec780f24ac482d5d9c2fc72d6d (diff)
Merge pull request #1163 from stilor/docker-fixescrosstool-ng-1.24.0-rc3
Fix build on CentOS6/7
Diffstat (limited to 'config/debug/gdb.in')
-rw-r--r--config/debug/gdb.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index a9fab10..7fc539e 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -4,7 +4,6 @@
source "config/debug/gdb.in.cross"
source "config/debug/gdb.in.native"
-source "config/debug/gdb.in.gdbserver"
config GDB_HAS_PKGVERSION_BUGURL
bool
@@ -24,3 +23,20 @@ config GDB_INSTALL_GDBINIT
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
+
+config GDB_HAS_IPA_LIB
+ def_bool y
+ depends on GDB_7_2_or_later
+
+# 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