diff options
author | Tom Tromey <tom@tromey.com> | 2020-04-24 15:35:01 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-24 15:35:02 -0600 |
commit | ff985671077a60f82e3cd8bcceda3efa0f3fabe6 (patch) | |
tree | 3d1a6d44867f0af36908fe0f4551b87f5f14eb67 /gdb/minsyms.c | |
parent | 7cf288744fdd238bbab079a53584f76181d44218 (diff) | |
download | gdb-ff985671077a60f82e3cd8bcceda3efa0f3fabe6.zip gdb-ff985671077a60f82e3cd8bcceda3efa0f3fabe6.tar.gz gdb-ff985671077a60f82e3cd8bcceda3efa0f3fabe6.tar.bz2 |
Convert symbol_set_demangled_name to a method
This changes symbol_set_demangled_name to be a method on
general_symbol_info, and updates the users.
gdb/ChangeLog
2020-04-24 Tom Tromey <tom@tromey.com>
* symtab.h (struct general_symbol_info) <set_demangled_name>: New
method.
(symbol_set_demangled_name): Don't declare.
* symtab.c (general_symbol_info::set_demangled_name): Rename from
symbol_set_demangled_name.
(general_symbol_info::set_language)
(general_symbol_info::compute_and_set_names): Update.
* minsyms.c (minimal_symbol_reader::install): Update.
* dwarf2/read.c (new_symbol): Update.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 2c1262b..47c6f0b 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1418,9 +1418,8 @@ minimal_symbol_reader::install () /* This will be freed later, by compute_and_set_names. */ char *demangled_name = symbol_find_demangled_name (msym, msym->linkage_name ()); - symbol_set_demangled_name - (msym, demangled_name, - &m_objfile->per_bfd->storage_obstack); + msym->set_demangled_name + (demangled_name, &m_objfile->per_bfd->storage_obstack); msym->name_set = 1; } /* This mangled_name_hash computation has to be outside of |