From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1569 invoked by alias); 13 Jan 2006 11:56:58 -0000 Received: (qmail 1552 invoked by uid 22791); 13 Jan 2006 11:56:56 -0000 X-Spam-Check-By: sourceware.org Received: from smtp13.wanadoo.fr (HELO smtp13.wanadoo.fr) (193.252.22.54) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jan 2006 11:56:55 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1303.wanadoo.fr (SMTP Server) with ESMTP id EF45570000AA for ; Fri, 13 Jan 2006 12:56:51 +0100 (CET) Received: from takamaka.act-europe.fr (AStDenis-105-1-23-52.w81-248.abo.wanadoo.fr [81.248.235.52]) by mwinf1303.wanadoo.fr (SMTP Server) with ESMTP id 8F720700008E; Fri, 13 Jan 2006 12:56:51 +0100 (CET) X-ME-UUID: 20060113115651587.8F720700008E@mwinf1303.wanadoo.fr Received: by takamaka.act-europe.fr (Postfix, from userid 507) id F1CA447E7B; Fri, 13 Jan 2006 15:56:47 +0400 (RET) Date: Fri, 13 Jan 2006 11:56:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: Paul Hilfinger , gdb@sourceware.org Subject: Re: [RFC] multiple breakpoints from FILE:LINE Message-ID: <20060113115647.GG10275@adacore.com> 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.4i 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/msg00104.txt.bz2 > > 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? I think so. Either this, or ask the user to choose. I think the current situation is partly historical: In C, the situations where this happens are rare... > I'm not sure I understand: why isn't something.adb:12 enough to > specify the breakpoint location unambiguously? This is because you may have several instances of the same line. Imagine that you have an inlined function defined at foobar.c:12. The function body is duplicated at each call of the function. If the user asks to insert a breakpoint at this line, which instance/address should the debugger use? -- Joel