From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7397 invoked by alias); 14 Feb 2006 17:21:45 -0000 Received: (qmail 7387 invoked by uid 22791); 14 Feb 2006 17:21:44 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 14 Feb 2006 17:21:43 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k1EHL8Xa026280; Tue, 14 Feb 2006 18:21:08 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id k1EHL8iv022092; Tue, 14 Feb 2006 18:21:08 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id k1EHL7R0015198; Tue, 14 Feb 2006 18:21:07 +0100 (CET) Date: Tue, 14 Feb 2006 17:21:00 -0000 Message-Id: <200602141721.k1EHL7R0015198@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: f.hackenberger@chello.at, gdb@sourceware.org In-reply-to: <20060214170031.GA26297@nevyn.them.org> (message from Daniel Jacobowitz on Tue, 14 Feb 2006 12:00:31 -0500) Subject: Re: breakpoints in shared libraries References: <200602141729.09355.f.hackenberger@chello.at> <20060214170031.GA26297@nevyn.them.org> 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-02/txt/msg00135.txt.bz2 > X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on > elgar.sibelius.xs4all.nl > X-Spam-Level: > X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=no > version=3.1.0 > X-From_: gdb-return-24270-m.m.kettenis=alumnus.utwente.nl@sourceware.org Tue Feb 14 18:00:38 2006 > Date: Tue, 14 Feb 2006 12:00:31 -0500 > From: Daniel Jacobowitz > Cc: gdb@sourceware.org > Mail-Followup-To: Florian Hackenberger , gdb@sourceware.org > Content-Disposition: inline > X-IsSubscribed: yes > Mailing-List: contact gdb-help@sourceware.org; run by ezmlm > Sender: gdb-owner@sourceware.org > X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. > X-UTwente-MailScanner: Found to be clean > X-MailScanner-From: gdb-return-24270-m.m.kettenis=alumnus.utwente.nl@sourceware.org > > On Tue, Feb 14, 2006 at 05:29:09PM +0100, Florian Hackenberger wrote: > > Pending breakpoint "quaternion.cpp:100" resolved > > Quaternion::Quaternion(angle, axis), axis is not unit. > > Make the axis unit. > > > > That tells me: > > 1. The breakpoint was set. > > 2. The breakpoint did not work, as I can see the output "Make the axis unit." > > and that's the line where my breakpoint was supposed to interrupt the > > execution. > > > > So that's the problem. Can anyone help me? > > This has nothing to do with shared libraries; if you search the > archives for breakpoints in constructors, you'll learn lots more about > the (still unsolved) problem. But Florian is setting a breakpoint using FILENAME:LINE syntax and not using FUNCTIONNAME syntax. That should work isn't it? At least as long as GCC is not inlining the constructor such that there are actually multiple copies in the code and GDB sets the breakpoint in a different copy than the one being executed. Mark