]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Defer minimal symbol name-setting
authorTom Tromey <tom@tromey.com>
Sat, 2 Mar 2019 20:19:44 +0000 (13:19 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 10 Nov 2019 17:44:49 +0000 (10:44 -0700)
commitbb749d8ae30108c85d3ae5011a4261d01574b342
tree437e9135d2c1f05245d5435d2eb04d5a426bcbe5
parent0b026263ea17155b57f7763901894be2cbb6c3ff
Defer minimal symbol name-setting

Currently the demangled name of a minimal symbol is set when creating
the symbol.  However, there is no intrinsic need to do this.  This
patch instead arranges for the demangling to be done just before the
minsym hash tables are filled.  This will be useful in a later patch.

gdb/ChangeLog
2019-10-19  Tom Tromey  <tom@tromey.com>

* symtab.h (struct minimal_symbol) <name_set>: New member.
* minsyms.c (minimal_symbol_reader::record_full): Copy name.
Don't call symbol_set_names.
(minimal_symbol_reader::install): Call symbol_set_names.

Change-Id: I4fe3993b99fb3a43968067806e294d48e377fd76
gdb/ChangeLog
gdb/minsyms.c
gdb/symtab.h