From: Tom Tromey <tromey@redhat.com>
To: karen.osmond@gmail.com
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] not able to set pending breakpoint at qualified C++ function names
Date: Wed, 29 Apr 2009 01:03:00 -0000 [thread overview]
Message-ID: <m3ws94fezf.fsf@fleche.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0902111855170.2518@localhost.localdomain> (Karen Osmond's message of "Wed\, 11 Feb 2009 19\:07\:35 +0000 \(GMT\)")
>>>>> "Karen" == Karen Osmond <karen.osmond@gmail.com> writes:
Hi. I'm sorry nobody from GDB got back to you sooner.
Karen> I noticed that it's not possible to set a pending breakpoint of
Karen> the (C++) form "break X::Y::Z" (with breakpoint pending auto,
Karen> gdb doesn't ask, and with it on, no breakpoint is added).
Karen> Patch follows; I've only just met the gdb source so make of it
Karen> what you will :)
Karen> * Removed cplusplus_error helper function, as these were the only uses.
Karen> (Though, it was adding an extra hint to the error, which perhaps should
Karen> still happen. Erm, I must admit to not understanding the hint).
I'd prefer not to remove this hint since it does help people, in my
experience. What it means is that you can sometimes find valid
completions by quoting the symbol.
I think this could be done by just changing cplusplus_error to end
with something like:
message = ui_file_xstrdup (stream, &len);
make_cleanup (xfree, message);
throw_error (NOT_FOUND_ERROR, "%s", message);
The rest of it seems ok to me.
I assume you don't have a copyright assignment in place. I think you
probably should; send me email off-list and I will get you started on
that.
A patch for gdb requires a ChangeLog entry. The GNU Coding Standards
explain how to write one.
Finally, I found a couple of formatting nits. GDB as a project is
particular about this. The GNU standards also cover this pretty well.
Karen> static struct symtabs_and_lines
Karen> decode_compound (char **argptr, int funfirstline, char ***canonical,
Karen> ! char *saved_arg, char *p, int* not_found_ptr)
Use "int *", not "int* ".
Karen> + if (not_found_ptr)
Karen> + *not_found_ptr = 1;
The indentation looks funny here; the second line should be 2 spaces
in from the 'if'.
Tom
next prev parent reply other threads:[~2009-04-29 1:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-11 19:07 Karen Osmond
2009-04-29 1:03 ` Tom Tromey [this message]
2009-06-03 13:56 ` Karen Osmond
2009-06-04 21:50 ` Tom Tromey
2009-06-22 21:29 ` Karen Osmond
2009-06-25 18:09 ` Karen Osmond
2009-06-25 23:21 ` [patch] Test result regression for gdb.base/psymtab.exp [Re: [patch] not able to set pending breakpoint at qualified C++ function names] Jan Kratochvil
2009-06-26 14:50 ` Pedro Alves
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=m3ws94fezf.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=karen.osmond@gmail.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