From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23488 invoked by alias); 13 Jan 2006 15:25:33 -0000 Received: (qmail 23468 invoked by uid 22791); 13 Jan 2006 15:25:32 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 13 Jan 2006 15:25:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1ExQnw-0002aW-42; Fri, 13 Jan 2006 10:25:28 -0500 Date: Fri, 13 Jan 2006 15:25:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Paul Hilfinger , gdb@sourceware.org Subject: Re: [RFC] multiple breakpoints from FILE:LINE Message-ID: <20060113152528.GB9758@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Paul Hilfinger , gdb@sourceware.org References: <20060113104212.0B28848CBD8@nile.gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00109.txt.bz2 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