From: Denis PILAT <denis.pilat@st.com>
To: Denis PILAT <denis.pilat@st.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] DW_AT_type missing from DW_TAG_subrange_type
Date: Wed, 18 Apr 2007 14:21:00 -0000 [thread overview]
Message-ID: <46261D4D.7010505@st.com> (raw)
In-Reply-To: <20070418131700.GA23905@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Wed, Apr 18, 2007 at 03:06:38PM +0200, Denis PILAT wrote:
>
>> Ok, that means I did a mistake in my previous ChangeLog entry about
>> target_terminal_ours ?
>> Can I change it as well in the same commit, removing "()" ?
>>
>
> Yes please.
>
>
Just committed.
--
Denis
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.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -u -p -r1.217 -r1.218
--- dwarf2read.c 11 Apr 2007 16:04:22 -0000 1.217
+++ dwarf2read.c 18 Apr 2007 13:25:04 -0000 1.218
@@ -4914,16 +4914,13 @@ read_subrange_type (struct die_info *die
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. */
prev parent reply other threads:[~2007-04-18 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 13:24 Denis PILAT
2007-04-10 15:31 ` Daniel Jacobowitz
2007-04-18 12:55 ` Denis PILAT
2007-04-18 13:06 ` Daniel Jacobowitz
2007-04-18 13:17 ` Denis PILAT
2007-04-18 13:30 ` Daniel Jacobowitz
2007-04-18 14:21 ` Denis PILAT [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46261D4D.7010505@st.com \
--to=denis.pilat@st.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox