From: Jason Merrill <jason@redhat.com>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@redhat.com
Subject: Re: DW_AT_specification: long ago GDB change
Date: Thu, 15 Apr 2004 13:52:00 -0000 [thread overview]
Message-ID: <xypad1dqrhy.fsf@miranda.boston.redhat.com> (raw)
In-Reply-To: <vt2ad1d6crg.fsf@zenia.home> (Jim Blandy's message of "15 Apr 2004 00:17:23 -0500")
On 15 Apr 2004 00:17:23 -0500, Jim Blandy <jimb@redhat.com> wrote:
> Back in 1999, you posted this patch:
>
> http://sources.redhat.com/ml/gdb-patches/1999-q4/msg00325.html
>
> Do you know why you tested for the presence of DW_AT_specification, as
> well as DW_AT_declaration?
>
> I can't think of a case where a die would be a declaration, but also
> refer to a specification; since DW_AT_specification generally points
> from definitions to previous declarations, I'd rather expect
> specifications to point at declarations. And even if a declaration
> did have a specification, it would still be a declaration.
Yes. IIRC, the issue is that dwarf_attr looks through the
DW_AT_specification link, so it will find a DW_AT_declaration attribute in
the definition. Also looking for DW_AT_specification allows us to avoid
that false positive for the test.
Jason
next prev parent reply other threads:[~2004-04-15 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 5:20 Jim Blandy
2004-04-15 13:52 ` Jason Merrill [this message]
2004-04-15 22:22 ` Jim Blandy
2004-04-16 12:49 ` Jason Merrill
[not found] ` <20040416141520.GB9718@nevyn.them.org>
2004-04-16 21:29 ` Jim Blandy
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=xypad1dqrhy.fsf@miranda.boston.redhat.com \
--to=jason@redhat.com \
--cc=gdb-patches@redhat.com \
--cc=jimb@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