mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 15:38:45 +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:
@ -2388,7 +2388,7 @@ value_static_field (struct type *type, int fieldno)
|
||||
break;
|
||||
case FIELD_LOC_KIND_PHYSNAME:
|
||||
{
|
||||
char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
|
||||
const char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
|
||||
/* TYPE_FIELD_NAME (type, fieldno); */
|
||||
struct symbol *sym = lookup_symbol (phys_name, 0, VAR_DOMAIN, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user