From: Tom Tromey <tromey@redhat.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] fix disassemble foo::bar::~bar
Date: Thu, 21 Feb 2013 21:14:00 -0000 [thread overview]
Message-ID: <87sj4p9xp9.fsf@fleche.redhat.com> (raw)
In-Reply-To: <yjt2liarg3az.fsf@ruffy.mtv.corp.google.com> (Doug Evans's message of "Wed, 13 Feb 2013 16:13:56 -0800")
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> I happened to try this and noticed it failing with
Doug> "name of destructor must equal name of class".
Doug> This is because destructor_name_p doesn't handle foo::bar
Doug> for the type's name.
Thanks for finding this.
Doug> + char *cp = strchr (type_name, '<');
I wonder whether this kind of parsing is sufficient.
It seems like there could be confounding cases.
I wonder what would happen if we just removed destructor_name_p,
or alternatively made it work by examining the type's function fields,
looking for a match.
If you've considered the various error cases in your analysis, then I
have no problem with your patch.
Tom
next prev parent reply other threads:[~2013-02-21 21:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 0:14 Doug Evans
2013-02-21 21:14 ` Tom Tromey [this message]
2013-02-21 23:58 ` Keith Seitz
2013-02-22 19:15 ` Tom Tromey
2013-02-22 19:43 ` Keith Seitz
2013-02-22 20:00 ` 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=87sj4p9xp9.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
/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