From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2903 invoked by alias); 18 Nov 2007 02:26:39 -0000 Received: (qmail 2893 invoked by uid 22791); 18 Nov 2007 02:26:39 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 18 Nov 2007 02:26:37 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 401F8981F2; Sun, 18 Nov 2007 02:26:35 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id B93FC98153; Sun, 18 Nov 2007 02:26:34 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1ItZrl-0004By-CK; Sat, 17 Nov 2007 21:26:33 -0500 Date: Sun, 18 Nov 2007 02:26:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Eli Zaretskii , Vladimir Prus , gdb@sources.redhat.com Subject: Re: Multiple breakpoint locations Message-ID: <20071118022633.GA16097@caradoc.them.org> Mail-Followup-To: Nick Roberts , Eli Zaretskii , Vladimir Prus , gdb@sources.redhat.com References: <18233.63439.953202.586908@kahikatea.snap.net.nz> <18239.38458.695867.472660@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18239.38458.695867.472660@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-11/txt/msg00172.txt.bz2 On Sun, Nov 18, 2007 at 02:32:42PM +1300, Nick Roberts wrote: > * For a C++ constructor, the GCC compiler generates several > instances of the function body, used in different cases. > > I don't understand what the second breakpoint refers to, or why there may > be more than one instance. GCC generates two copies of the constructor. One is used to construct whole objects; the other is used to construct not-in-charge virtual base classes. You can find out more about this at http://www.codesourcery.com/cxx-abi/ and in the C++ language standard, if you're interested. > So I think, at some point, a separate node, or one grouped with breakpoint > menus to highlight the differences, would be a good idea. Other things, like > needing to include the return type in the template name when specifying a > breakpoint location could also be included. If I can find the time, I hope to get this fixed before the end of the year. -- Daniel Jacobowitz CodeSourcery