aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-05-18 16:30:37 +0000
committerTom Tromey <tromey@redhat.com>2011-05-18 16:30:37 +0000
commit1d06ead6876712e45010dae36b8e4745fa3321ea (patch)
treef62b4d275fdbd3b21ba54d5e7185bcf47e644cd4 /gdb/stabsread.c
parent5652e397663c31faf0c1bbc4dc4ba6ef8760ae6d (diff)
downloadgdb-1d06ead6876712e45010dae36b8e4745fa3321ea.zip
gdb-1d06ead6876712e45010dae36b8e4745fa3321ea.tar.gz
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/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index c7d8a6c..5331bce 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2236,7 +2236,7 @@ rs6000_builtin_type (int typenum, struct objfile *objfile)
/* Replace *OLD_NAME with the method name portion of PHYSNAME. */
static void
-update_method_name_from_physname (char **old_name, char *physname)
+update_method_name_from_physname (char **old_name, const char *physname)
{
char *method_name;