From: Bob Rossi <bob@brasko.net>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: drow@false.org, f.hackenberger@chello.at, gdb@sourceware.org
Subject: Re: breakpoints in shared libraries
Date: Tue, 14 Feb 2006 17:23:00 -0000 [thread overview]
Message-ID: <20060214172441.GD1671@brasko.net> (raw)
In-Reply-To: <200602141721.k1EHL7R0015198@elgar.sibelius.xs4all.nl>
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 <drow@false.org>
> > Cc: gdb@sourceware.org
> > Mail-Followup-To: Florian Hackenberger <f.hackenberger@chello.at>, 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
next prev parent reply other threads:[~2006-02-14 17:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-14 16:29 Florian Hackenberger
2006-02-14 17:00 ` Daniel Jacobowitz
2006-02-14 17:10 ` Florian Hackenberger
2006-02-14 17:13 ` Daniel Jacobowitz
2006-02-14 17:52 ` Paul Koning
2006-02-14 18:00 ` Florian Hackenberger
2006-02-14 17:21 ` Mark Kettenis
2006-02-14 17:23 ` Bob Rossi [this message]
2006-02-14 17:31 ` Daniel Jacobowitz
2006-02-14 17:47 ` Mark Kettenis
2006-02-14 17:08 ` Mark Kettenis
2006-02-14 17:20 ` Florian Hackenberger
-- strict thread matches above, loose matches on Subject: below --
2001-11-13 9:05 Tom Tromey
2001-11-13 9:41 ` Daniel Jacobowitz
2001-11-13 10:11 ` Tom Tromey
2001-11-13 10:20 ` Per Bothner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060214172441.GD1671@brasko.net \
--to=bob@brasko.net \
--cc=drow@false.org \
--cc=f.hackenberger@chello.at \
--cc=gdb@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox