aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-11-26 15:14:57 -0700
committerTom Tromey <tromey@adacore.com>2019-11-26 15:14:57 -0700
commit57357d9df842f7eff4f9a4e6034396846379aa7e (patch)
tree1eec4530441dc70b385bfedb70d2b42c4eeadd3d /gdb
parent3ea16160a66e0e3bc59842e27e41890411729a86 (diff)
downloadgdb-57357d9df842f7eff4f9a4e6034396846379aa7e.zip
gdb-57357d9df842f7eff4f9a4e6034396846379aa7e.tar.gz
gdb-57357d9df842f7eff4f9a4e6034396846379aa7e.tar.bz2
Fix mingw build of gdb
Christian pointed out on irc that the threading series broke the build on mingw. This patch fixes the problem, by moving the initialization of gdb_demangle_attempt_core_dump into the appropriate #if. gdb/ChangeLog 2019-11-26 Tom Tromey <tromey@adacore.com> * cp-support.c (_initialize_cp_support): Conditionally initialize gdb_demangle_attempt_core_dump. Change-Id: I9ace0bea75a51f317ea933b607f6b5a94d651eea
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cp-support.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d2e9adf..6c6c000 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-26 Tom Tromey <tromey@adacore.com>
+
+ * cp-support.c (_initialize_cp_support): Conditionally initialize
+ gdb_demangle_attempt_core_dump.
+
2019-11-26 Tom Tromey <tom@tromey.com>
* python/py-function.c (fnpy_init): Update.
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index 4de2a98..bec8dc8 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -2199,6 +2199,8 @@ display the offending symbol."),
NULL,
&maintenance_set_cmdlist,
&maintenance_show_cmdlist);
+
+ gdb_demangle_attempt_core_dump = can_dump_core (LIMIT_CUR);
#endif
#if GDB_SELF_TEST
@@ -2207,6 +2209,4 @@ display the offending symbol."),
selftests::register_test ("cp_remove_params",
selftests::test_cp_remove_params);
#endif
-
- gdb_demangle_attempt_core_dump = can_dump_core (LIMIT_CUR);
}