* dwarf2read.c (new_symbol_full): Remove cast.
* symtab.c (symbol_set_demangled_name): Make 'name' const. * symtab.h (symbol_set_demangled_name): Update.
This commit is contained in:
parent
5484b13a88
commit
cfc594ee56
4 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-01-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* dwarf2read.c (new_symbol_full): Remove cast.
|
||||
* symtab.c (symbol_set_demangled_name): Make 'name' const.
|
||||
* symtab.h (symbol_set_demangled_name): Update.
|
||||
|
||||
2013-01-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* main.c (captured_main): Call bfd_init.
|
||||
|
|
|
@ -15767,7 +15767,7 @@ new_symbol_full (struct die_info *die, struct type *type, struct dwarf2_cu *cu,
|
|||
if (cu->language == language_fortran
|
||||
&& symbol_get_demangled_name (&(sym->ginfo)) == NULL)
|
||||
symbol_set_demangled_name (&(sym->ginfo),
|
||||
(char *) dwarf2_full_name (name, die, cu),
|
||||
dwarf2_full_name (name, die, cu),
|
||||
NULL);
|
||||
|
||||
/* Default assumptions.
|
||||
|
|
|
@ -465,7 +465,7 @@ symbol_init_cplus_specific (struct general_symbol_info *gsymbol,
|
|||
|
||||
void
|
||||
symbol_set_demangled_name (struct general_symbol_info *gsymbol,
|
||||
char *name,
|
||||
const char *name,
|
||||
struct objfile *objfile)
|
||||
{
|
||||
if (gsymbol->language == language_cplus)
|
||||
|
|
|
@ -167,7 +167,8 @@ struct general_symbol_info
|
|||
struct obj_section *obj_section;
|
||||
};
|
||||
|
||||
extern void symbol_set_demangled_name (struct general_symbol_info *, char *,
|
||||
extern void symbol_set_demangled_name (struct general_symbol_info *,
|
||||
const char *,
|
||||
struct objfile *);
|
||||
|
||||
extern const char *symbol_get_demangled_name
|
||||
|
|
Loading…
Reference in a new issue