This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFC] multiple breakpoints from FILE:LINE
- From: Daniel Jacobowitz <drow at false dot org>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: Paul Hilfinger <hilfingr at gnat dot com>, gdb at sourceware dot org
- Date: Fri, 13 Jan 2006 10:25:28 -0500
- Subject: Re: [RFC] multiple breakpoints from FILE:LINE
- References: <20060113104212.0B28848CBD8@nile.gnat.com> <ubqygs6rd.fsf@gnu.org>
On Fri, Jan 13, 2006 at 01:32:22PM +0200, Eli Zaretskii wrote:
> > In Ada mode, AdaCore's GNAT Pro version of GDB will also present a menu in
> > response to this latter case. In addition, we introduced a syntax
> > (little used, I believe) for specifying a line in one specific generic
> > instance:
> >
> > break FILENAME:FUNCTION:LINENUM
> >
> > where FUNCTION here would be fully qualified. That is, if P1 and P2
> > are two different instantiations of a generic class defining F, then
> >
> > break something.adb:P2.F:12
> >
> > sets a breakpoint at line 12 in P2.F.
>
> I'm not sure I understand: why isn't something.adb:12 enough to
> specify the breakpoint location unambiguously?
Think of this as inlining or C++ template instantiation. P1.F and P2.F
both live at the same location in the source file, which will just
define F (give or take a little - I am not familiar with the details of
Ada generics, but that's the idea).
--
Daniel Jacobowitz
CodeSourcery