summaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-11-18 20:48:36 -0600
committerChristian Biesinger <cbiesinger@google.com>2019-11-27 15:38:23 -0600
commit62e77f56f0ce8b10122881d8f0acd70e113fde93 (patch)
tree52c2785eed5d10604811d19995270b4afde2fe44 /gdb/ChangeLog
parentf29d7f6b83f60ca8dd64ec89ea803f79324ac12f (diff)
downloadbinutils-gdb-62e77f56f0ce8b10122881d8f0acd70e113fde93.tar.gz
Turn off threaded minsym demangling by default
Per discussion on gdb-patches with Joel, this patch turns off multihreaded symbol loading by default. It can be turned on using: maint set worker-threads unlimited To keep the behavior as close as possible to the old code, it still calls symbol_set_names in the old place if n_worker_threads is 0. gdb/ChangeLog: 2019-11-27 Christian Biesinger <cbiesinger@google.com> * maint.c (n_worker_threads): Default to 0. (worker_threads_disabled): New function. * maint.h (worker_threads_disabled): New function. * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names here if worker_threads_disabled () is true. (minimal_symbol_reader::install): Skip all threading if worker_threads_disabled () is true. Change-Id: I92ba4f6bbf07363189666327cad452d6b9c8e01d
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 64c8ab52cf1..3033cf6455a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2019-11-27 Christian Biesinger <cbiesinger@google.com>
+ * maint.c (n_worker_threads): Default to 0.
+ (worker_threads_disabled): New function.
+ * maint.h (worker_threads_disabled): New function.
+ * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
+ here if worker_threads_disabled () is true.
+ (minimal_symbol_reader::install): Skip all threading if
+ worker_threads_disabled () is true.
+
+2019-11-27 Christian Biesinger <cbiesinger@google.com>
+
* minsyms.c (add_minsym_to_hash_table): Use a previously computed
hash code if possible.
(add_minsym_to_demangled_hash_table): Likewise.