From: Andrew Cagney <ac131313@redhat.com>
To: Jason Molenda <jmolenda@apple.com>
Cc: Kris Warkentin <kewarken@qnx.com>,
"Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: [rfc] Print solib events in mi-mode
Date: Thu, 10 Jul 2003 16:33:00 -0000 [thread overview]
Message-ID: <3F0D956F.9040300@redhat.com> (raw)
In-Reply-To: <55757AD0-B24D-11D7-9281-000393D457E2@apple.com>
> We handled this problem by creating a new breakpoint command, "future-break" (short: "fb", done in MI as "-break-insert -f ..."). This pushes the logic down in to gdb. On the one hand, it's expensive to have gdb trying to set this breakpoint for every shared library that comes in (when you have a lot of big shared libraries like we do on MacOS X), but at the same time if the IDE is responsible for setting breakpoints in shared libraries then you'll have to stop on each solib add event to set those breakpoints before anything runs...
>
> You can see all of this in the above sample; breakpoint #1 was a file:line breakpoint, which was in SKTGraphic.ob. When SKTGraphic.ob was paged in (this is a project using ZeroLink, so each source file is a separate objfile, pulled in at run-time as needed), the breakpoint was set by gdb.
>
>
>
> The future-break patches were posted at least once in the past along with the save-breakpoints command; I can find a URL ref if anyone cares.
Yes, Tom Tromey observed:
http://sources.redhat.com/ml/gdb-patches/2001-12/msg00152.html
> Klee> The 'future-break' command allows one to specify a breakpoint
> Klee> that starts off as 'shlib_disabled' instead of generating an
> Klee> error if it can't be set immediately.
>
> Klee> I'm not entirely happy with the future-break command, and
> Klee> particularly with its interaction with the save-breakpoints
> Klee> mechanism (if you set a breakpoint that is in a shared library
> Klee> after shared libraries have been loaded, you have to remember to
> Klee> use the future-break command, not the break command).
>
> Doesn't this mean that programs like Insight would be best advised to
> *only* set future breakpoints? In that case let's just add the
> functionality directly to the existing breakpoint commands.
enjoy,
Andrew
prev parent reply other threads:[~2003-07-10 16:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-08 20:35 Kris Warkentin
2003-07-08 21:02 ` Andrew Cagney
2003-07-09 12:24 ` Kris Warkentin
2003-07-09 15:09 ` Daniel Jacobowitz
2003-07-09 15:38 ` Kris Warkentin
2003-07-09 16:24 ` Daniel Jacobowitz
2003-07-09 17:29 ` Kris Warkentin
2003-07-09 17:41 ` Kevin Buettner
2003-07-09 17:49 ` Kris Warkentin
2003-07-09 18:01 ` Kris Warkentin
2003-07-09 18:05 ` Daniel Jacobowitz
2003-07-09 18:21 ` Kris Warkentin
2003-07-09 18:30 ` Daniel Jacobowitz
2003-07-09 19:12 ` Kris Warkentin
2003-07-09 19:46 ` Daniel Jacobowitz
2003-07-09 20:00 ` Kris Warkentin
2003-07-09 20:03 ` Daniel Jacobowitz
2003-07-18 16:12 ` Andrew Cagney
2003-07-09 20:38 ` Jason Molenda
2003-07-10 12:23 ` Kris Warkentin
2003-07-10 16:33 ` Andrew Cagney [this message]
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=3F0D956F.9040300@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=jmolenda@apple.com \
--cc=kewarken@qnx.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