From: Paul Koning <pkoning@equallogic.com>
To: hilfingr@gnat.com
Cc: gdb@sourceware.org
Subject: Re: [RFC] multiple breakpoints from FILE:LINE
Date: Fri, 13 Jan 2006 15:19:00 -0000 [thread overview]
Message-ID: <17351.50413.754543.175958@gargle.gargle.HOWL> (raw)
In-Reply-To: <20060113104212.0B28848CBD8@nile.gnat.com>
>>>>> "Paul" == Paul Hilfinger <hilfingr@gnat.com> writes:
Paul> In response to
Paul> break FUNCTION
Paul> in C++, GDB currently presents one with a list of choices when
Paul> FUNCTION is overloaded. However, this is not the only case in
Paul> which the target of a 'break' command is ambiguous. Consider
Paul> break FILENAME:LINENUM
Paul> Normally, this refers to a single location in a program, but if
Paul> this line is in the middle of a C++ template, a multiply
Paul> #included file, or an Ada generic definition, it may refer to
Paul> several locations. Currently, GDB chooses one of these
Paul> silently.
Constructors and destructors are another example of this, which is a
known probme of long standing.
Paul> In Ada mode, AdaCore's GNAT Pro version of GDB will also
Paul> present a menu in response to this latter case. In addition,
Paul> we introduced a syntax (little used, I believe) for specifying
Paul> a line in one specific generic instance:
Paul> break FILENAME:FUNCTION:LINENUM
Paul> where FUNCTION here would be fully qualified. That is, if P1
Paul> and P2 are two different instantiations of a generic class
Paul> defining F, then
Paul> break something.adb:P2.F:12
Paul> sets a breakpoint at line 12 in P2.F.
Paul> We would like to contribute some version of both of these to
Paul> the public sources. Before doing so, however, we'd like to
Paul> solicit comments.
What you describe won't help for constructors or destructors, unless
"fully qualified" means adding some ad-hoc keyword like "[in-charge]"
(as "verbose demangling" does with constructors/destructors). That's
actually useable, and I have done that in the past as a hacky
workaround for the constructor problem, but I'm not sure if it is the
way to go for a "clean" solution.
paul
next prev parent reply other threads:[~2006-01-13 15:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 10:42 Paul Hilfinger
2006-01-13 11:32 ` Eli Zaretskii
2006-01-13 11:56 ` Joel Brobecker
2006-01-13 13:05 ` Eli Zaretskii
2006-01-13 14:17 ` Andrew STUBBS
2006-01-13 15:27 ` Daniel Jacobowitz
2006-01-13 15:25 ` Daniel Jacobowitz
2006-01-13 15:19 ` Paul Koning [this message]
2006-01-13 15:23 ` Daniel Jacobowitz
2006-01-13 15:40 ` Joel Brobecker
2006-01-14 10:15 ` Paul Hilfinger
2006-01-14 16:16 ` Daniel Jacobowitz
2006-01-15 1:51 : " Cyrille Comar
2006-01-15 22:23 ` Paul Hilfinger
2006-01-15 17:38 David Anderson
2006-01-15 17:50 ` Daniel Jacobowitz
2006-01-15 17:54 ` Robert Dewar
2006-01-15 18:33 ` Andreas Schwab
2006-01-15 19:06 ` Robert Dewar
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=17351.50413.754543.175958@gargle.gargle.HOWL \
--to=pkoning@equallogic.com \
--cc=gdb@sourceware.org \
--cc=hilfingr@gnat.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