]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Default dwarf_synchronous to true
authorTom Tromey <tromey@adacore.com>
Fri, 17 May 2024 14:55:46 +0000 (08:55 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 22 May 2024 16:14:06 +0000 (10:14 -0600)
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

gdb/dwarf2/read.c

index e8416905163c9cf1e4079f67e1ca03b653fc5885..4818da58acba9272e448f3426520fd7d4bb2018c 100644 (file)
@@ -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