Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] 12266 Fallout
Date: Fri, 26 Aug 2011 18:17:00 -0000	[thread overview]
Message-ID: <4E57E314.7000803@redhat.com> (raw)
In-Reply-To: <m38vqgt5ex.fsf@fleche.redhat.com>

On 08/26/2011 11:05 AM, Tom Tromey wrote:

> I don't understand why check_typedef would necessarily be involved.
> If we changed the canonicalizer to respect this ABI rule about std::
> names, then wouldn't std::string be the type's actual name?
> And so we wouldn't have to change check_typedef?

Yes, we could make that modification to cp-name-parser.y (and also add 
something to turn std::basic_{string, ostream, istream, iostream} back 
into std::{string, ostream, istream, iostream}.

> In any case, isn't #3 the best approach?  That is, separating the search
> key from the print name, and making the print name closer to what users
> expect.  I think we should always be considering what end state we want
> to be in, and this seems to be it.

I'm all about the "end result" (which is why I mentioned that gdb should
be printing "calltest(foo)"). But the crux of the matter is still 
whether we should store "calltest(std::string)" or 
"calltest(std::basic_string<...>)" in the symbol table. That's all. The 
later is a "quick fix," but I am attempting (poorly) to also argue that 
it is the correct way to do it.

> If you are looking for a quick fix, but plan to do #3, then #1 is fine
> by me.

The two go hand-in-hand IMO. Let me work up a patch and publish it on an 
archer branch. This will contain both the print name and DMGL_VERBOSE 
patches in one. Alas, the print name stuff is rather in limbo right now, 
so it may take me much of the day to fix it up and get this all 
published. But I will try to get something pushed before you leave EOD.

Keith


  reply	other threads:[~2011-08-26 18:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 23:03 Keith Seitz
2011-08-26 18:05 ` Tom Tromey
2011-08-26 18:17   ` Keith Seitz [this message]
2011-08-26 18:31 ` 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=4E57E314.7000803@redhat.com \
    --to=keiths@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --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