From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA/dwarf2] Fix PR/2018 - set array type names
Date: Fri, 06 Oct 2006 20:39:00 -0000 [thread overview]
Message-ID: <20061006203904.GA1059@adacore.com> (raw)
In-Reply-To: <20061006192758.GA15058@nevyn.them.org>
> I don't think I looked at this the first time you sent it. The hack is
> disgusting, but that's a problem for another day. I think the comment
> in GCC is simply incorrect for DWARF-2, and the array should have the
> correct range type.
I am not sure which hack you refer to; if you're talking about
the encoding we're using, I also agree that it's not very elegant.
It's a artifact that comes from old times when dwarf2 wasn't available
(and still isn't always available on certain targets). However, we
*are* at AdaCore working on producing more standard dwarf, so eventually
the array index should have the correct type. We've made some progress
in that direction already, but it will take a LOT of work to complete.
> > 2006-10-06 Joel Brobecker <brobecker@adacore.com>
> >
> > * dwarf2read.c (read_array_type): Set the type name if the name
> > attribute is present.
> >
> > Tested on x86-linux, fixes the 4 KFAILs of gdb.ada/arrayidx.exp, no
> > regression. OK to commit?
>
> OK.
Thanks! Will commit shortly, and then remove the KFAILs.
--
Joel
next prev parent reply other threads:[~2006-10-06 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-06 19:23 Joel Brobecker
2006-10-06 19:28 ` Daniel Jacobowitz
2006-10-06 20:39 ` Joel Brobecker [this message]
2006-10-06 20:49 ` Daniel Jacobowitz
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=20061006203904.GA1059@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.com \
/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