diff options
author | Tom Tromey <tromey@redhat.com> | 2011-05-18 16:30:37 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-05-18 16:30:37 +0000 |
commit | 1d06ead6876712e45010dae36b8e4745fa3321ea (patch) | |
tree | f62b4d275fdbd3b21ba54d5e7185bcf47e644cd4 /gdb/dwarf2read.c | |
parent | 5652e397663c31faf0c1bbc4dc4ba6ef8760ae6d (diff) | |
download | fsf-binutils-gdb-1d06ead6876712e45010dae36b8e4745fa3321ea.zip fsf-binutils-gdb-1d06ead6876712e45010dae36b8e4745fa3321ea.tar.gz fsf-binutils-gdb-1d06ead6876712e45010dae36b8e4745fa3321ea.tar.bz2 |
* value.c (value_fn_field): Constify.
* symtab.c (gdb_mangle_name): Constify.
* stabsread.c (update_method_name_from_physname): Make 'physname'
argument const.
* p-typeprint.c (pascal_type_print_method_args): Make arguments
const. Use explicit fputc_filtered loop.
(pascal_type_print_base): Constify.
* p-lang.h (pascal_type_print_method_args): Update.
* linespec.c (add_matching_methods): Constify.
(add_constructors): Likewise.
* jv-typeprint.c (java_type_print_base): Constify.
* gdbtypes.h (struct cplus_struct_type)
<fn_fieldlist.fn_field.physname>: Now const.
* dwarf2read.c (compute_delayed_physnames): Constify.
(dwarf2_add_member_fn): Likewise.
* c-typeprint.c (c_type_print_base): Constify. Use cleanups.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6558bfe..562361e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4609,10 +4609,10 @@ compute_delayed_physnames (struct dwarf2_cu *cu) struct delayed_method_info *mi; for (i = 0; VEC_iterate (delayed_method_info, cu->method_list, i, mi) ; ++i) { - char *physname; + const char *physname; struct fn_fieldlist *fn_flp = &TYPE_FN_FIELDLIST (mi->type, mi->fnfield_index); - physname = (char *) dwarf2_physname ((char *) mi->name, mi->die, cu); + physname = dwarf2_physname ((char *) mi->name, mi->die, cu); fn_flp->fn_fields[mi->index].physname = physname ? physname : ""; } } @@ -6792,7 +6792,7 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die, } else { - char *physname = (char *) dwarf2_physname (fieldname, die, cu); + const char *physname = dwarf2_physname (fieldname, die, cu); fnp->physname = physname ? physname : ""; } |