[RFC] multiple breakpoints from FILE:LINE

Daniel Jacobowitz drow@false.org
Fri Jan 13 15:25:00 GMT 2006


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



More information about the Gdb mailing list