From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8339 invoked by alias); 25 Jun 2003 21:46:21 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14235 invoked from network); 25 Jun 2003 21:07:15 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 25 Jun 2003 21:07:15 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 391B82B63; Wed, 25 Jun 2003 17:02:28 -0400 (EDT) Message-ID: <3EFA0DE4.4070009@redhat.com> Date: Wed, 25 Jun 2003 21:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa] PROBLEMS: document 'constructor breakpoint ignored' bug References: <200306242026.h5OKQThr012996@duracef.shout.net> Content-Type: multipart/mixed; boundary="------------060508090009060302090401" X-SW-Source: 2003-06/txt/msg00776.txt.bz2 This is a multi-part message in MIME format. --------------060508090009060302090401 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 28 It's C++ so Daniel? Andrew --------------060508090009060302090401 Content-Type: message/rfc822; name="mailbox-message://ac131313@movemail/fsf/gdb/patches#18906999" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mailbox-message://ac131313@movemail/fsf/gdb/patches#18906999" Content-length: 4450 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: cagney@localhost.redhat.com Received: from localhost (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id F1F542B5F for ; Tue, 24 Jun 2003 17:07:20 -0400 (EDT) Envelope-to: cagney@gnu.org Delivery-date: Tue, 24 Jun 2003 17:08:08 -0400 Received: from fencepost.gnu.org by localhost with IMAP (fetchmail-6.2.1) for cagney@localhost (single-drop); Tue, 24 Jun 2003 17:07:20 -0400 (EDT) Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.20) id 19Uv1M-00054u-CK for cagney@gnu.org; Tue, 24 Jun 2003 17:08:08 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Uv0j-0002tq-D0 for cagney@gnu.org; Tue, 24 Jun 2003 17:07:30 -0400 Received: from sources.redhat.com ([66.187.233.205]) by monty-python.gnu.org with smtp (Exim 4.20) id 19Uv0i-0002s4-Lv for cagney@gnu.org; Tue, 24 Jun 2003 17:07:28 -0400 Received: (qmail 8158 invoked by alias); 24 Jun 2003 21:07:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Delivered-To: mailing list gdb-patches@sources.redhat.com Received: (qmail 11330 invoked from network); 24 Jun 2003 20:26:31 -0000 Received: from unknown (HELO concert.shout.net) (204.253.184.25) by sources.redhat.com with SMTP; 24 Jun 2003 20:26:31 -0000 Received: from duracef.shout.net (duracef.shout.net [204.253.184.12]) by concert.shout.net (8.12.9/8.12.9) with ESMTP id h5OKQUwU031211 for ; Tue, 24 Jun 2003 15:26:30 -0500 Received: from duracef.shout.net (localhost [127.0.0.1]) by duracef.shout.net (8.12.9/8.12.9) with ESMTP id h5OKQUns012997 for ; Tue, 24 Jun 2003 15:26:30 -0500 Received: (from mec@localhost) by duracef.shout.net (8.12.9/8.12.9/Submit) id h5OKQThr012996 for gdb-patches@sources.redhat.com; Tue, 24 Jun 2003 16:26:29 -0400 Date: Tue, 24 Jun 2003 16:26:29 -0400 From: Michael Elizabeth Chastain Message-Id: <200306242026.h5OKQThr012996@duracef.shout.net> To: gdb-patches@sources.redhat.com Subject: [rfa] PROBLEMS: document 'constructor breakpoint ignored' bug X-Spam-Status: No, hits=-1.9 required=5.0 tests=PATCH_CONTEXT_DIFF,SPAM_PHRASE_00_01 version=2.41 X-Spam-Level: Content-length: 1665 This patch documents the notorious "constructor breakpoints ignored" problem in the gdb PROBLEMS file. Okay to apply this to mainline? Okay to apply this to the 6.0 branch? Michael C 2003-06-24 Michael Chastain * PROBLEMS: Document pr gdb/1091 and pr gdb/1193, the "constructor breakpoints ignored" bug. Index: PROBLEMS =================================================================== RCS file: /cvs/src/src/gdb/PROBLEMS,v retrieving revision 1.15 diff -c -3 -r1.15 PROBLEMS *** PROBLEMS 23 Jun 2003 03:28:13 -0000 1.15 --- PROBLEMS 24 Jun 2003 20:20:53 -0000 *************** *** 3,6 **** --- 3,21 ---- See also: http://www.gnu.org/software/gdb/bugs/ + gdb/1091: Constructor breakpoints ignored + gdb/1193: g++ 3.3 creates multiple constructors: gdb 5.3 can't set breakpoints + When gcc 3.x compiles a C++ constructor or C++ destructor, it generates + 2 or 3 different versions of the object code. These versions have + unique mangled names (they have to, in order for linking to work), but + they have identical source code names, which leads to a great deal of + confusion. Specifically, if you set a breakpoint in a constructor or a + destructor, gdb will put a breakpoint in one of the versions, but your + program may execute the other version. This makes it impossible to set + breakpoints reliably in constructors or destructors. + + gcc 3.x generates these multiple object code functions in order to + implement virtual base classes. gcc 2.x generated just one object code + function with a hidden parameter, but gcc 3.x conforms to a multi-vendor + ABI for C++ which requires multiple object code functions. --------------060508090009060302090401--