From: Michael Eager <eager@eagercon.com>
To: tromey@redhat.com
Cc: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] dwarf2_physname
Date: Tue, 01 Sep 2009 00:06:00 -0000 [thread overview]
Message-ID: <4A9C656D.4050708@eagercon.com> (raw)
In-Reply-To: <m37hwjy2tl.fsf@fleche.redhat.com>
Tom Tromey wrote:
>>>>>> "Michael" == Michael Eager <eager@eagercon.com> writes:
>
> Michael> (http://www.dwarfstd.org/ShowIssue.php?issue=090715.1&type=closed3)
>
> Michael> There was a significant amount of discussion about whether this was
> Michael> really needed. There were a couple examples where it might provide
> Michael> information which was not otherwise available or where it compensated
> Michael> for linkers which didn't support weak externs.
>
> I read that page and didn't see these examples. Do you know where we
> could find them?
They were raised as part of the DWARF Committee discussions:
1) Finding the address of the in-charge constructor when evaluating
"new foo()".
2) Look up address of Fortran common block.
3) Demangled to display name of instance of overloaded function.
4) Compensate for compilers which do not generate adequate DWARF.
5) Demangle to find fully qualified name for type.
6) Avoid unresolved external references for symbols which are removed
by the linker, if weak externs are not supported.
7) Optimize access with Apple's scheme where DWARF is left in the .o's.
Not all of these examples were compelling, nor did it appear that
DW_AT_linkage_name was the only means for obtaining the desired information.
Some were clearly Quality of Implementation issues, like 4.
> It seems to me that if we can do the job without DW_AT_*linkage_name,
> then all other things being equal that is what we ought to do,
> considering that the new attribute is optional. In practice this only
> means that we must determine whether all other things actually are
> equal.
Almost all attributes in DWARF are optional. Leaving out useful ones
only makes it difficult to debug your program. :-(
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
next prev parent reply other threads:[~2009-09-01 0:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 22:51 Keith Seitz
2009-08-31 23:10 ` Michael Eager
2009-08-31 23:23 ` Keith Seitz
2009-08-31 23:35 ` Michael Eager
2009-09-01 22:11 ` Daniel Jacobowitz
2009-09-01 22:27 ` Daniel Jacobowitz
2009-09-01 23:18 ` Michael Eager
2009-09-01 23:37 ` Daniel Jacobowitz
2009-09-02 1:12 ` Michael Eager
2009-09-01 23:26 ` Keith Seitz
2009-09-01 23:42 ` Daniel Jacobowitz
2009-09-14 18:39 ` Keith Seitz
2009-09-14 22:48 ` Daniel Jacobowitz
2009-09-14 23:56 ` Keith Seitz
2009-09-15 13:32 ` Daniel Jacobowitz
2009-09-15 15:53 ` Keith Seitz
2009-09-15 16:12 ` Daniel Jacobowitz
2009-09-16 20:27 ` Keith Seitz
2009-09-18 22:34 ` Tom Tromey
[not found] ` <m37hwjy2tl.fsf@fleche.redhat.com>
2009-09-01 0:06 ` Michael Eager [this message]
2009-09-01 21:27 ` Tom Tromey
2009-09-01 22:10 ` Keith Seitz
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=4A9C656D.4050708@eagercon.com \
--to=eager@eagercon.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.com \
--cc=tromey@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