mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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:
@@ -278,7 +278,7 @@ gdb_mangle_name (struct type *type, int method_id, int signature_id)
|
||||
struct fn_field *f = TYPE_FN_FIELDLIST1 (type, method_id);
|
||||
struct fn_field *method = &f[signature_id];
|
||||
char *field_name = TYPE_FN_FIELDLIST_NAME (type, method_id);
|
||||
char *physname = TYPE_FN_FIELD_PHYSNAME (f, signature_id);
|
||||
const char *physname = TYPE_FN_FIELD_PHYSNAME (f, signature_id);
|
||||
char *newname = type_name_no_tag (type);
|
||||
|
||||
/* Does the form of physname indicate that it is the full mangled name
|
||||
|
||||
Reference in New Issue
Block a user