diff options
Diffstat (limited to 'gdb/compile/compile-object-load.c')
-rw-r--r-- | gdb/compile/compile-object-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index a25eb61..f28bf26 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -552,7 +552,7 @@ store_regs (struct type *regs_type, CORE_ADDR regs_base) for (fieldno = 0; fieldno < regs_type->num_fields (); fieldno++) { - const char *reg_name = TYPE_FIELD_NAME (regs_type, fieldno); + const char *reg_name = regs_type->field (fieldno).name (); ULONGEST reg_bitpos = TYPE_FIELD_BITPOS (regs_type, fieldno); ULONGEST reg_bitsize = TYPE_FIELD_BITSIZE (regs_type, fieldno); ULONGEST reg_offset; |