From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4396 invoked by alias); 27 Feb 2008 22:58:01 -0000 Received: (qmail 4378 invoked by uid 71); 27 Feb 2008 22:58:01 -0000 Resent-Date: 27 Feb 2008 22:58:01 -0000 Resent-Message-ID: <20080227225801.4377.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com Resent-Reply-To: gdb-gnats@sources.redhat.com, gordon.prieur@sun.com Received: (qmail 3450 invoked by uid 48); 27 Feb 2008 22:55:53 -0000 Message-Id: <20080227225553.3449.qmail@sourceware.org> Date: Wed, 27 Feb 2008 22:58:00 -0000 From: gordon.prieur@sun.com Reply-To: gordon.prieur@sun.com To: gdb-gnats@sources.redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/2417: Breakpoints ignored in constructors outside class {} definition Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00047.txt.bz2 >Number: 2417 >Category: c++ >Synopsis: Breakpoints ignored in constructors outside class {} definition >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Wed Feb 27 22:58:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gordon Prieur >Release: gdb 6.5.50 (Cygwin), gdb 6.6 (Ubuntu 7.10, Fedora Core 8, Solaris 10) >Organization: >Environment: Windows/Cygin, Fedora Core 8, Ubuntu 7.10, and Solaris 10 >Description: If I create a C++ class and define the constructor outside the class definition, breakpoints in the constructor are ignored. Adding complexity to the constructor (I/O or function/method calls) resolves the problem. Doing object file dumps of the debugging/line information shows the object file has line information for the line in question. The break commands also succeed. Its just at run time the breakpoints are ignored. >How-To-Repeat: Set breakpoints at lines 7, 14, and 20. Run the program. Gdb stops at the breakpoints at lines 7 and 20, but does not stop at the one at line 14. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="iz128099.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="iz128099.cpp" Y2xhc3MgQXsNCiAgICBpbnQgbnVtMTsNCnB1YmxpYzoNCiAgICBBKCl7DQogICAgICAgIG51bTEg PSAxOw0KICAgIH0NCiAgICANCiAgICBBKGludCBpKTsNCn07DQoNCkE6OkEoaW50IGkpIHsNCiAg ICBudW0xID0gaTsNCn0NCg0KaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqKiBhcmd2KSB7DQogICAg QSBhOw0KICAgIEEgYig1KTsNCiAgICByZXR1cm4gMDsNCn0NCg==