aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-11-01 09:51:13 -0700
committerTom Tromey <tom@tromey.com>2020-11-01 09:51:14 -0700
commit0684bb51b5207aed1d76098ebaca6243f9c168e7 (patch)
tree84024f5fc2d6abce09f3b97de805617f342804bc /gdb/ChangeLog
parent089002bba03cf3f546dd63f98e763254ae04d7c1 (diff)
downloadgdb-0684bb51b5207aed1d76098ebaca6243f9c168e7.zip
gdb-0684bb51b5207aed1d76098ebaca6243f9c168e7.tar.gz
gdb-0684bb51b5207aed1d76098ebaca6243f9c168e7.tar.bz2
Remove partial symbol statistics
The "n_psyms" statistic in the per-objfile stats is not really needed, but its use requires passing the objfile to add_psymbol. This patch removes the field in favor of counting the psyms when needed. Note that this is not exactly equivalent -- in the old approach, a psymbol can in theory be created and then the psymtab discarded, which would increment the counter. This does not seem very important to me. I rewrote the code to count partial symbols; though TBH I think that this information is not really very useful. gdb/ChangeLog 2020-11-01 Tom Tromey <tom@tromey.com> * symmisc.c (count_psyms): New function. (print_objfile_statistics): Use it. * psymtab.c (append_psymbol_to_list): Remove. (partial_symtab::add_psymbol): Inline append_psymbol_to_list. * objfiles.h (struct objstats) <n_psyms>: Remove.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 967317a..f34932d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2020-11-01 Tom Tromey <tom@tromey.com>
+ * symmisc.c (count_psyms): New function.
+ (print_objfile_statistics): Use it.
+ * psymtab.c (append_psymbol_to_list): Remove.
+ (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
+ * objfiles.h (struct objstats) <n_psyms>: Remove.
+
+2020-11-01 Tom Tromey <tom@tromey.com>
+
* dbxread.c (dbx_end_psymtab): Update.
* dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
(build_type_psymtabs_reader): Update.