From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8816 invoked by alias); 14 Feb 2006 17:23:38 -0000 Received: (qmail 8808 invoked by uid 22791); 14 Feb 2006 17:23:37 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao05.cox.net (HELO eastrmmtao05.cox.net) (68.230.240.34) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 14 Feb 2006 17:23:35 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao05.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060214172342.EPTM14098.eastrmmtao05.cox.net@localhost.localdomain>; Tue, 14 Feb 2006 12:23:42 -0500 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1F93ur-0006ST-4w; Tue, 14 Feb 2006 12:24:41 -0500 Date: Tue, 14 Feb 2006 17:23:00 -0000 From: Bob Rossi To: Mark Kettenis Cc: drow@false.org, f.hackenberger@chello.at, gdb@sourceware.org Subject: Re: breakpoints in shared libraries Message-ID: <20060214172441.GD1671@brasko.net> References: <200602141729.09355.f.hackenberger@chello.at> <20060214170031.GA26297@nevyn.them.org> <200602141721.k1EHL7R0015198@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602141721.k1EHL7R0015198@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.9i 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/msg00136.txt.bz2 On Tue, Feb 14, 2006 at 06:21:07PM +0100, Mark Kettenis wrote: > > 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. I know this is probably obvious, but if you are desperate, you could have your constructor call a new function that you write and then set a breakpoint in the new function. Bob Rossi