From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11792 invoked by alias); 4 Aug 2004 13:50:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11783 invoked from network); 4 Aug 2004 13:50:33 -0000 Received: from unknown (HELO smtp10.atl.mindspring.net) (207.69.200.246) by sourceware.org with SMTP; 4 Aug 2004 13:50:33 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by smtp10.atl.mindspring.net with esmtp (Exim 3.33 #1) id 1BsM9g-0006k8-00; Wed, 04 Aug 2004 09:50:08 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id 7EC5F4B102; Wed, 4 Aug 2004 09:50:32 -0400 (EDT) Date: Wed, 04 Aug 2004 13:50:00 -0000 From: Michael Chastain To: jack.bloch@siemens.com, gdb@sources.redhat.com Subject: Re: Breakpoint in object destructor Cc: rafael.benitez@siemens.com Message-ID: <4110E9A7.nailCLA11Q0R1@mindspring.com> References: <7A25937D23A1E64C8E93CB4A50509C2A0310F2F0@stca204a.bus.sc.rolm.com> In-Reply-To: <7A25937D23A1E64C8E93CB4A50509C2A0310F2F0@stca204a.bus.sc.rolm.com> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00023.txt.bz2 "Bloch, Jack" wrote: > We are trying to set a breakpoint in a destructor. this does not seem to > work. Running GDB 5.1.1 on a SuSE 2.4 Kernel. The breakpoint gets set, but > it never fires. > What compiler are you using to build the program that you are compiling? If you are using gcc 3.X, this is a known, unfixed problem. See the PROBLEMS file in a recent release of gdb (like gdb 6.2) for an explanation. Briefly: gcc 3.X emits two or three object code functions for each destructor; gdb doesn't understand this; so gdb puts a breakpoint in just one copy. Michael C