* 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.
This commit is contained in:
parent
5652e39766
commit
1d06ead687
11 changed files with 58 additions and 29 deletions
|
@ -773,7 +773,7 @@ struct cplus_struct_type
|
|||
arguments. See gdb_mangle_name for the conversion from this
|
||||
format to the one used if is_stub is clear. */
|
||||
|
||||
char *physname;
|
||||
const char *physname;
|
||||
|
||||
/* The function type for the method.
|
||||
(This comment used to say "The return value of the method",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue