From: Tom Tromey <tromey@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] 12266 Fallout
Date: Fri, 26 Aug 2011 18:05:00 -0000 [thread overview]
Message-ID: <m38vqgt5ex.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4E56D4A3.7000306@redhat.com> (Keith Seitz's message of "Thu, 25 Aug 2011 16:02:59 -0700")
Keith> I am writing for some maintainer guidance on an issue that has arisen.
Keith> 1) Add DMGL_VERBOSE where it is needed so that NO typedefs ever appear
Keith> in a (non-TYPE_CODE_TYPEDEF) symbol's name
Keith> 2) Add a new version of check_typedef which "stops" at std::string
Keith> (and std::ostream, std::istream, std::iostream), and add logic
Keith> (somewhere) to deal with going from "std::basic_string<...>" back to
Keith> "std::string" (and likewise for the others).
Keith> Actually in this case, the "right" output would be "calltest(foo)",
Keith> but that is a different, but related, problem, for which I developed a
Keith> patch a long time ago, part of the first 12266 patch submissions
Keith> (dwarf2_print_name).
Let's call this option #3.
Keith> - Shall I continue #1 and start submitting patches?
Keith> - Shall I start teaching gdb about std::string et al and how to deal
Keith> with them in the environment we have today?
Keith> - Have I missed something that would be preferable to anything I've
Keith> mentioned?
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?
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.
If you are looking for a quick fix, but plan to do #3, then #1 is fine
by me.
Tom
next prev parent reply other threads:[~2011-08-26 18:05 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 [this message]
2011-08-26 18:17 ` Keith Seitz
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=m38vqgt5ex.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@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