From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32275 invoked by alias); 14 Feb 2009 16:43:44 -0000 Received: (qmail 32265 invoked by uid 22791); 14 Feb 2009 16:43:44 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Feb 2009 16:43:35 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LYNc0-00075k-KV for gdb@sources.redhat.com; Sat, 14 Feb 2009 16:43:28 +0000 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2009 16:43:28 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Feb 2009 16:43:28 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: GDB breakpoints, source lines Date: Sat, 14 Feb 2009 16:43:00 -0000 Message-ID: References: <1234603753.10693.8.camel@ceiriog.eclipse.co.uk> <20090214160804.GA32155@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00121.txt.bz2 Daniel Jacobowitz wrote: > On Sat, Feb 14, 2009 at 01:22:38PM +0300, Vladimir Prus wrote: >> > My question is: are there any circumstances in which you can get a >> > different source file or line for each location? >> >> There should be none, except that we had a bug report whereby GDB would >> create multiple location breakpoint where each location has the same >> line number and file basename, but different directories. > > Do you think we'll ever use these for e.g. breakpoints on overloaded > functions? I don't know. I never had a particular design to set breakpoint on every overloaded function. In case of constructors/templates/inlined function you are very likely to have no idea of the address of the instance you care about. Overloaded functions are basically separate functions that happen to share a part of the name, so user is much more likely to know which function he wants to debug. - Volodya