diff options
author | Denis Pilat <denis.pilat@st.com> | 2007-04-18 13:25:04 +0000 |
---|---|---|
committer | Denis Pilat <denis.pilat@st.com> | 2007-04-18 13:25:04 +0000 |
commit | 3d1f72c2311203ec590529ccfcc8efb17fb85856 (patch) | |
tree | 0f13970389a0c52aebc82ed697eec5939ffd7568 | |
parent | ee5c21a00edd649f4305fbfc3722746f83055ce2 (diff) | |
download | gdb-3d1f72c2311203ec590529ccfcc8efb17fb85856.zip gdb-3d1f72c2311203ec590529ccfcc8efb17fb85856.tar.gz gdb-3d1f72c2311203ec590529ccfcc8efb17fb85856.tar.bz2 |
2007-04-18 Denis Pilat <denis.pilat@st.com>
* dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
when missing from DW_TAG_subrange_type. Remove the handling of null
return from die_type.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f823111..8334b12 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-04-18 Denis Pilat <denis.pilat@st.com> + + * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type + when missing from DW_TAG_subrange_type. Remove the handling of null + return from die_type. + 2007-04-18 Maciej W. Rozycki <macro@mips.com> * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last @@ -9,7 +15,7 @@ 2007-04-18 Denis Pilat <denis.pilat@st.com> * infcmd.c (post_create_inferior): Start with a call to - target_terminal_ours(). + target_terminal_ours. 2007-04-17 Maciej W. Rozycki <macro@mips.com> diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d0a1bb1..550c62a 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4914,16 +4914,13 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) return; base_type = die_type (die, cu); - if (base_type == NULL) + if (TYPE_CODE (base_type) == TYPE_CODE_VOID) { complaint (&symfile_complaints, _("DW_AT_type missing from DW_TAG_subrange_type")); - return; + base_type = dwarf_base_type (DW_ATE_signed, TARGET_ADDR_BIT / 8, cu); } - if (TYPE_CODE (base_type) == TYPE_CODE_VOID) - base_type = alloc_type (NULL); - if (cu->language == language_fortran) { /* FORTRAN implies a lower bound of 1, if not given. */ |