aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-05-17 08:55:46 -0600
committerTom Tromey <tromey@adacore.com>2024-05-22 10:14:06 -0600
commitb013bd16630fb243d6fa0ee5d4c4eae77f6e5176 (patch)
tree2d432455cf0e88a1851dc17ac5a02b9ca17322ee
parentf6f70819a6161115fa68e80cbc63cac162f27745 (diff)
downloadfsf-binutils-gdb-b013bd16630fb243d6fa0ee5d4c4eae77f6e5176.zip
fsf-binutils-gdb-b013bd16630fb243d6fa0ee5d4c4eae77f6e5176.tar.gz
fsf-binutils-gdb-b013bd16630fb243d6fa0ee5d4c4eae77f6e5176.tar.bz2
Default dwarf_synchronous to true
Unfortunately the background DWARF reading series introduced a number of races, as repored by thread sanitizer. This patch changes gdb to disable this feature for the time being -- in particular for the gdb 15 release. I've filed a bug and linked all the known races to it. Once those are fixed we can re-enable this feature by default. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31751
-rw-r--r--gdb/dwarf2/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index e841690..4818da5 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -739,7 +739,7 @@ show_dwarf_max_cache_age (struct ui_file *file, int from_tty,
}
/* When true, wait for DWARF reading to be complete. */
-static bool dwarf_synchronous = false;
+static bool dwarf_synchronous = true;
/* "Show" callback for "maint set dwarf synchronous". */
static void