From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28240 invoked by alias); 13 Jan 2006 11:32:28 -0000 Received: (qmail 28228 invoked by uid 22791); 13 Jan 2006 11:32:27 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jan 2006 11:32:25 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-246-138.inter.net.il [84.228.246.138]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id CLM16966 (AUTH halo1); Fri, 13 Jan 2006 13:32:18 +0200 (IST) Date: Fri, 13 Jan 2006 11:32:00 -0000 Message-Id: From: Eli Zaretskii To: Paul Hilfinger CC: gdb@sourceware.org In-reply-to: <20060113104212.0B28848CBD8@nile.gnat.com> (message from Paul Hilfinger on Fri, 13 Jan 2006 05:42:12 -0500 (EST)) Subject: Re: [RFC] multiple breakpoints from FILE:LINE Reply-to: Eli Zaretskii References: <20060113104212.0B28848CBD8@nile.gnat.com> 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/msg00103.txt.bz2 > From: Paul Hilfinger > Date: Fri, 13 Jan 2006 05:42:12 -0500 (EST) > > break FILENAME:LINENUM > > Normally, this refers to a single location in a program, but if this line > is in the middle of a C++ template, a multiply #included file, or an > Ada generic definition, it may refer to several locations. Currently, > GDB chooses one of these silently. Shouldn't it set breakpoints on ALL of those places instead? > 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?