diff options
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 87ef4aa..6f447a9 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4930,7 +4930,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) { complaint (&symfile_complaints, _("DW_AT_type missing from DW_TAG_subrange_type")); - base_type = dwarf_base_type (DW_ATE_signed, TARGET_ADDR_BIT / 8, cu); + base_type + = dwarf_base_type (DW_ATE_signed, + gdbarch_addr_bit (current_gdbarch) / 8, cu); } if (cu->language == language_fortran) |