mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* dwarf2read.c (dwarf2_add_field): Constify.
* value.c (value_static_field): Constify. * gdbtypes.h (struct main_type) <field.field_location.physname>: Now const. * ax-gdb.c (gen_static_field): Constify
This commit is contained in:
@ -6542,7 +6542,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die,
|
||||
(so through at least 3.2.1) incorrectly generate
|
||||
DW_TAG_variable tags. */
|
||||
|
||||
char *physname;
|
||||
const char *physname;
|
||||
|
||||
/* Get name of field. */
|
||||
fieldname = dwarf2_name (die, cu);
|
||||
@ -6563,7 +6563,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die,
|
||||
}
|
||||
|
||||
/* Get physical name. */
|
||||
physname = (char *) dwarf2_physname (fieldname, die, cu);
|
||||
physname = dwarf2_physname (fieldname, die, cu);
|
||||
|
||||
/* The name is already allocated along with this objfile, so we don't
|
||||
need to duplicate it for the type. */
|
||||
|
Reference in New Issue
Block a user