From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [patch] Fix C `extern' shadowing in a local block
Date: Thu, 02 Apr 2009 19:06:00 -0000 [thread overview]
Message-ID: <20090402190639.GA8955@caradoc.them.org> (raw)
In-Reply-To: <20090402185413.GC9017@adacore.com>
On Thu, Apr 02, 2009 at 11:54:13AM -0700, Joel Brobecker wrote:
> This part makes me uncomfortable. I am afraid that doing so would be
> misinterpreting the meaning of DW_AT_external.
I think that this is what DW_AT_external means: the declaration
represents an externally visible variable.
> Also, I would mean
> that we are treating this attribute differently depending on whether
> we have a location attribute or not.
This bothers me too, but I think it's OK. A local scope definition of
an external variable with a location is an odd concept, and until I
see an example that produces one, I have no idea what we should do
with it. The only one I can think of would be a declaration (not
definition) with location:
DW_TAG_variable
DW_AT_name: bar
DW_AT_external: 1
DW_AT_declaration: 1
DW_AT_location: &bar
But I don't think anyone produces that.
I took a look at our LOC_UNRESOLVED handling; I don't think it's quite
wise, since it ignores the full symbol table, but in practice that's
fine for unstripped binaries.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2009-04-02 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 21:38 Jan Kratochvil
2009-03-28 23:29 ` Jan Kratochvil
2009-04-02 18:54 ` Joel Brobecker
2009-04-02 19:06 ` Daniel Jacobowitz [this message]
2009-04-02 21:08 ` Jan Kratochvil
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=20090402190639.GA8955@caradoc.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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