diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:01:34 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:01:34 +0000 |
commit | cfc594ee569f473094855682e5b2ec2738b0cf67 (patch) | |
tree | 8243bf4d5a680fcb8d067eeee97f3930ed64c6fb | |
parent | 5484b13a88161ed38ee9101eb474e024f5406b95 (diff) | |
download | gdb-cfc594ee569f473094855682e5b2ec2738b0cf67.zip gdb-cfc594ee569f473094855682e5b2ec2738b0cf67.tar.gz gdb-cfc594ee569f473094855682e5b2ec2738b0cf67.tar.bz2 |
* dwarf2read.c (new_symbol_full): Remove cast.
* symtab.c (symbol_set_demangled_name): Make 'name' const.
* symtab.h (symbol_set_demangled_name): Update.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 | ||||
-rw-r--r-- | gdb/symtab.c | 2 | ||||
-rw-r--r-- | gdb/symtab.h | 3 |
4 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b037b9..e63d10e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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. 2013-01-21 Tom Tromey <tromey@redhat.com> diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 364e6af..c78a466 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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. diff --git a/gdb/symtab.c b/gdb/symtab.c index 770f9e0..68d654d 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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) diff --git a/gdb/symtab.h b/gdb/symtab.h index b992266..3861051 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -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 |