From: Keith Seitz <keiths@redhat.com>
To: tromey@redhat.com
Cc: Project Archer <archer@sourceware.org>
Subject: Re: dwarf name canonicalization
Date: Tue, 23 Feb 2010 22:07:00 -0000 [thread overview]
Message-ID: <4B84517A.4020307@redhat.com> (raw)
In-Reply-To: <m3zl2zy8sa.fsf@fleche.redhat.com>
On 02/23/2010 12:52 PM, Tom Tromey wrote:
> Keith, do you happen to know offhand what things in gdb rely on
> canonicalizing C++ names in the dwarf reader?
I have a pretty good idea. :-)
> I was discussing this canonicalization with a user who prefers to remain
> anonymous. His experience is that this canonicalization greatly slows
> down gdb startup (he said 15%), and in his experience isn't needed for
> his use case, which is running gdb as part of an IDE.
[OT: I would love a test case. I *pleaded* for specific test cases.]
Anonymous obviously has evidence that his IDE can work around the
problems of generic input which we must deal with in the console. I see
no reason why anonymous shouldn't submit a patch to disable
canonicalization (and related). He'll probably want to also disable
dwarf2_physname and bring back DW_AT_MIPS_linkage_name (assuming that
doesn't disappear altogether).
> I'm wondering whether it would make sense to somehow disable this, maybe
> via some special mode for IDEs to use. I thought maybe you'd know what
> would break...
Unless the IDE provided a console that accepted generic input (like
"normal" gdb), I don't think that much would break, if anything. IDEs
really rather rely on linespecs for the most part, no? As long as you're
not sending input to gdb that looks like a function name, you should be
safe. But I cannot guarantee. I have no first-hand experience with IDEs
(in many years).
I would much rather address (fix?) the speed problem first. The idea of
multiple paths through the code for the "same" task would seem a high
bit rot risk.
Keith
next prev parent reply other threads:[~2010-02-23 22:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 20:52 Tom Tromey
2010-02-23 22:07 ` Keith Seitz [this message]
2010-02-25 11:16 ` André Pönitz
2010-02-25 19:38 ` Tom Tromey
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=4B84517A.4020307@redhat.com \
--to=keiths@redhat.com \
--cc=archer@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).