Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@cygnus.com>
To: gdb@sources.redhat.com
Subject: Re: Breakpoints in dynamically loaded objects
Date: Wed, 05 Sep 2001 00:12:00 -0000	[thread overview]
Message-ID: <874s89ov9s.fsf@cygnus.com> (raw)
In-Reply-To: <npzoq1cd1w.fsf@zwingli.cygnus.com>

>>>>> "Jim" == Jim Blandy <jimb@zwingli.cygnus.com> writes:

Jim> However, that would mean that, if you're doing shared library
Jim> work and you really do rename a function that had a breakpoint
Jim> set on it, that old breakpoint will just sit around forever.  I'm
Jim> not sure what to do with that.

Nothing.  It doesn't matter.  Although I do sometimes leave gdb
running a long time (days), the overhead (actual and conceptual)
associated with a useless breakpoint is less than the agony of
constantly rediscovering that gdb has silently disabled breakpoints.

Try debugging a Java program that uses JNI some time.  It should be
easy, but it isn't.  You have to set a bp on main and then run before
you can set a breakpoint on any function the Java class library.  Then
you have to set a breakpoint on an internal function in libgcj,
continue, and then finish, before you can set a breakpoint on the JNI
function loaded from the shared library.

Then if you need to re-run, you get to go through this process again.
And, because of the need to "finish" on that second breakpoint before
enabling the JNI breakpoint, you can't automate it.

Tom


       reply	other threads:[~2001-09-05  0:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200005081343.e48DhHu06845@delius.kettenis.local>
     [not found] ` <npzoq1cd1w.fsf@zwingli.cygnus.com>
2001-09-05  0:12   ` Tom Tromey [this message]
2001-09-05  3:20     ` Eli Zaretskii
2001-09-05  3:33       ` Eli Zaretskii

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=874s89ov9s.fsf@cygnus.com \
    --to=tromey@cygnus.com \
    --cc=gdb@sources.redhat.com \
    /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