aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-04-24 15:35:01 -0600
committerTom Tromey <tromey@adacore.com>2020-04-24 15:35:02 -0600
commitff985671077a60f82e3cd8bcceda3efa0f3fabe6 (patch)
tree3d1a6d44867f0af36908fe0f4551b87f5f14eb67 /gdb/symtab.h
parent7cf288744fdd238bbab079a53584f76181d44218 (diff)
downloadgdb-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/symtab.h')
-rw-r--r--gdb/symtab.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 77f60e6..ee570f9 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -454,6 +454,11 @@ struct general_symbol_info
void set_linkage_name (const char *linkage_name)
{ m_name = linkage_name; }
+ /* Set the demangled name of this symbol to NAME. NAME must be
+ already correctly allocated. If the symbol's language is Ada,
+ then the name is ignored and the obstack is set. */
+ void set_demangled_name (const char *name, struct obstack *obstack);
+
enum language language () const
{ return m_language; }
@@ -537,10 +542,6 @@ struct general_symbol_info
short section;
};
-extern void symbol_set_demangled_name (struct general_symbol_info *,
- const char *,
- struct obstack *);
-
extern const char *symbol_get_demangled_name
(const struct general_symbol_info *);