From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22503 invoked by alias); 16 Jan 2006 13:47:38 -0000 Received: (qmail 22492 invoked by uid 22791); 16 Jan 2006 13:47:38 -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; Mon, 16 Jan 2006 13:47:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EyUhn-0008E7-Sf; Mon, 16 Jan 2006 08:47:31 -0500 Date: Mon, 16 Jan 2006 13:47:00 -0000 From: Daniel Jacobowitz To: Cyrille Comar Cc: Paul Koning , hilfingr@gnat.com, gdb@sourceware.org Subject: Re: : Re: [RFC] multiple breakpoints from FILE:LINE Message-ID: <20060116134731.GB31547@nevyn.them.org> Mail-Followup-To: Cyrille Comar , Paul Koning , hilfingr@gnat.com, gdb@sourceware.org References: <43C9AAA8.2030605@adacore.com> <17354.31047.417000.385481@gargle.gargle.HOWL> <20060115164459.GA5390@nevyn.them.org> <43CBA0D7.3000903@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43CBA0D7.3000903@adacore.com> 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/msg00142.txt.bz2 On Mon, Jan 16, 2006 at 02:34:15PM +0100, Cyrille Comar wrote: > Daniel Jacobowitz wrote: > >I've yet to see a compelling reason to break on one constructor and not > >the other. Most users don't even know the difference between when each > >is called. > > I am not familiar at all with C++ debugging, so the situation is not > clear to me: To break on constructors, do you use the FILE:LINE of the > class? Wouldn't that break on destructors as well? (or any other type > specific implicit operation, if such thing exists in C++) No, you either use Class::Class or Class::~Class, or the FILE:LINE of a user-provided definition. They all have names whether or not they have explicit definitions. -- Daniel Jacobowitz CodeSourcery