aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-09-27 12:40:04 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-22 11:25:31 -0500
commit7bb43059820c5febb4509b15202a93efde442bc6 (patch)
tree897162cc893ad9a29aae05506f5ef958d8682718 /gdb/ChangeLog
parent6207ed28773381859319cf314eb9c4e0683c0773 (diff)
downloadgdb-7bb43059820c5febb4509b15202a93efde442bc6.zip
gdb-7bb43059820c5febb4509b15202a93efde442bc6.tar.gz
gdb-7bb43059820c5febb4509b15202a93efde442bc6.tar.bz2
Store the mangled name as a string_view
This should be a bit faster (because we can compare the size first), but it is also a dependency for the next patch. (3.47% of gdb startup time is spent in eq_demangled_name_entry when attaching to Chrome's content_shell binary) gdb/ChangeLog: 2019-10-22 Christian Biesinger <cbiesinger@google.com> * symtab.c (struct demangled_name_entry): Change type of mangled to gdb::string_view. Also adds a constructor that takes the mangled name. (hash_demangled_name_entry): Update. (eq_demangled_name_entry): Update. (free_demangled_name_entry): New function to call the destructor now that this is not a POD anymore. (create_demangled_names_hash): Pass free_demangled_name_entry to htab_create_alloc. (symbol_set_names): Update. Change-Id: I24711ae2bcaa9e79ca89a6f8fda385d400419175
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a70f3e1..d271330 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+2019-10-22 Christian Biesinger <cbiesinger@google.com>
+
+ * symtab.c (struct demangled_name_entry): Change type of mangled
+ to gdb::string_view. Also adds a constructor that takes the
+ mangled name.
+ (hash_demangled_name_entry): Update.
+ (eq_demangled_name_entry): Update.
+ (free_demangled_name_entry): New function to call the destructor
+ now that this is not a POD anymore.
+ (create_demangled_names_hash): Pass free_demangled_name_entry to
+ htab_create_alloc.
+ (symbol_set_names): Update.
+
2019-10-21 Ali Tamur <tamu@google.com>
* dwarf2read.c (dir_index): Change type.