From: "Paul N. Hilfinger" <hilfingr@otisco.mckusick.com>
To: carlton@kealia.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] Add SYMBOL_SET_LINKAGE_NAME
Date: Wed, 18 Feb 2004 08:12:00 -0000 [thread overview]
Message-ID: <200402180811.i1I8BnC11365@otisco.McKusick.COM> (raw)
In-Reply-To: <yf2y8r141pd.fsf@hawaii.kealia.com> (message from David Carlton on Tue, 17 Feb 2004 17:26:54 -0800)
> From: David Carlton <carlton@kealia.com>
> On Tue, 17 Feb 2004 16:49:04 -0800, Paul Hilfinger <hilfingr@EECS.Berkeley.EDU> said:
>
> Can you clarify this? Because:
>
> > I don't see why "linkage names don't make much sense" anyway: the name
> > of a (C/C++) type is, indeed, what the linker sees.
>
> I don't see this as being true for C/C++. The linker sees the names
> of functions and variables, but it doesn't see the names of types.
> There aren't any minimal symbols associated to types. There are
> minimal symbols associated to methods of classes, static variables of
> classes, and other stuff (virtual function tables, at least), but no
> minimal symbols associated to the the types themselves.
>
> I can see how you could take the name of a type and mangle it, and I
> can imagine that doing so might be useful for Ada (and perhaps even
> for C++?), given the picture that you've been painting. But I
> wouldn't call that a linkage name, because there's nothing in the
> object file which has that name.
>
> So is the picture different for Ada, or have I not been being clear
> with the distinction of linkage name vs. mangled name? (Or am I
> missing something even in the C/C++ case, for that matter?)
I admit that I have never been clear on the precise limits of
"linkage name". The linker DOES see these things (else how do they
find their way into the executable file?) although it's true that it does
not "link" them as it does for regular symbols.
After watching you struggle manfully through a number of terminology changes,
I was a little reluctant to suggest the introduction of still another concept,
so I stuck with "linkage name". The point is that WHATEVER you call Ada's
mangled type names, they are NOT what is written in the source code
(so can't be "natural names") and they ARE the raw names extracted from the
executable's debugging information. Hmm; they also happen to be what
I proposed calling "search names"---i.e., the names used internally to search
by. We could use the opportunity to introduce search names and make this
"SET_SEARCH_NAME". Just a thought.
Paul Hilfinger
next prev parent reply other threads:[~2004-02-18 8:12 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-16 21:24 Daniel Jacobowitz
2004-02-16 21:53 ` Elena Zannoni
2004-02-16 22:57 ` Daniel Jacobowitz
2004-02-16 23:35 ` Paul Hilfinger
2004-02-17 0:05 ` Daniel Jacobowitz
2004-02-17 9:59 ` Paul N. Hilfinger
2004-02-17 15:57 ` Andrew Cagney
2004-02-17 16:01 ` Daniel Jacobowitz
2004-02-17 19:14 ` Elena Zannoni
2004-02-17 19:29 ` Daniel Jacobowitz
2004-02-17 23:10 ` Andrew Cagney
2004-02-18 0:43 ` Elena Zannoni
2004-02-18 1:04 ` Daniel Jacobowitz
2004-02-18 0:20 ` David Carlton
2004-02-18 0:23 ` Daniel Jacobowitz
2004-02-18 0:27 ` Elena Zannoni
2004-02-18 0:32 ` Daniel Jacobowitz
2004-02-18 0:54 ` Elena Zannoni
2004-02-18 1:06 ` Daniel Jacobowitz
2004-02-18 0:49 ` Paul Hilfinger
2004-02-18 1:27 ` David Carlton
2004-02-18 8:12 ` Paul N. Hilfinger [this message]
2004-02-18 16:45 ` David Carlton
2004-02-20 9:32 ` Paul N. Hilfinger
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=200402180811.i1I8BnC11365@otisco.McKusick.COM \
--to=hilfingr@otisco.mckusick.com \
--cc=Hilfinger@otisco.mckusick.com \
--cc=carlton@kealia.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