From: Daniel Berlin <dan@cgsoftware.com>
To: Michael Elizabeth Chastain <chastain@cygnus.com>
Cc: dan@cgsoftware.com, gdb@sources.redhat.com
Subject: Re: So what is wrong with v3 C++
Date: Fri, 29 Jun 2001 11:40:00 -0000 [thread overview]
Message-ID: <87hewzi0yf.fsf@cgsoftware.com> (raw)
In-Reply-To: <200106291629.JAA01818@bosch.cygnus.com>
Michael Elizabeth Chastain <chastain@cygnus.com> writes:
> Daniel Berlin writes:
>
>> The thing is, it shouldn't match against demangled forms, it should
>> match against *fully qualified* forms.
>
> Ah, I feel some illumination coming on.
>
>> Aclass a;
>> int c;
>> c = int a::george(int, int)(5, 6);
>>
>> That's what we've got now.
>
> gdb's goal is to have an expression evaluator that is some reasonable
> subset of the language under test.
>
> In K & R C, the translation from "demangled" -> "fully qualified" is trivial.
> In ANSI C, the translation from "demangled" -> "fully qualified" takes work.
> You have to convert "foo(int, int)" -> "foo".
> This conversion is actually built into a string matcher!
> In C++, the translation from "demangled" -> "fully qualified" is hairy.
> There are a lot of cases and changing the string matchers is hopeless.
>
> It sounds like we need a much more detailed demangler interface, where
> the demangler gives us the demangled name, the fully qualified name,
> plus any other forms of the name we care about.
Yup, this is what would be necessary to
1. Make the STABS reader be able to give qualified names, except in
the case of namespaces (which it still wouldn't be able to do,
without more hacks from gcc)
2. Make the new dwarf2 reader backwards compatible without having to
use linkage names at anything more than symbol reading time (we can
currently be backwards compatible by falling back on the linkage
name, and doing what we used to, which is, use it).
>
> Michael
--
"Last time I went to the movies I was thrown out for bringing my
own food. My argument was that the concession stand prices are
outrageous. Besides, I haven't had a Bar-B-Que in a long time.
"-Steven Wright
next prev parent reply other threads:[~2001-06-29 11:40 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-29 10:28 Michael Elizabeth Chastain
2001-06-29 11:40 ` Daniel Berlin [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-07-02 14:54 Benjamin Kosnik
2001-06-29 11:57 Benjamin Kosnik
2001-07-02 20:28 ` Per Bothner
2001-06-29 0:56 Michael Elizabeth Chastain
2001-06-28 23:50 Michael Elizabeth Chastain
2001-06-29 8:59 ` Daniel Berlin
2001-06-28 23:31 Michael Elizabeth Chastain
2001-06-29 8:59 ` Daniel Berlin
2001-06-28 20:42 Michael Elizabeth Chastain
2001-06-28 20:44 ` Christopher Faylor
2001-06-28 23:10 ` Daniel Berlin
2001-06-28 23:08 ` Daniel Berlin
2001-06-29 0:29 ` Tom Tromey
2001-06-28 18:12 Michael Elizabeth Chastain
2001-06-28 19:06 ` Daniel Berlin
2001-06-28 16:28 Andrew Cagney
2001-06-28 18:59 ` Daniel Berlin
2001-06-29 13:40 ` Jim Blandy
2001-06-29 23:15 ` Daniel Berlin
2001-06-30 10:06 ` Jim Blandy
2001-06-30 12:30 ` Daniel Berlin
2001-07-02 9:01 ` Jim Blandy
2001-07-04 9:22 ` Andrew Cagney
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=87hewzi0yf.fsf@cgsoftware.com \
--to=dan@cgsoftware.com \
--cc=chastain@cygnus.com \
--cc=gdb@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