From d0a4a5b2a9e8d88af8f90e2a617eea70000f07c6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 May 2011 16:30:28 +0000 Subject: * 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) : Now const. * dwarf2read.c (compute_delayed_physnames): Constify. (dwarf2_add_member_fn): Likewise. * c-typeprint.c (c_type_print_base): Constify. Use cleanups. --- gdb/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index cb7cae57744..2a8f3fce26a 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2559,7 +2559,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f, { struct value *v; struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); - char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); + const char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); struct symbol *sym; struct minimal_symbol *msym; -- cgit v1.2.1