From: Joel Brobecker <brobecker@adacore.com>
To: gdb@sources.redhat.com
Subject: New command to save breakpoints?
Date: Tue, 11 Oct 2005 17:43:00 -0000 [thread overview]
Message-ID: <20051011174255.GB1015@adacore.com> (raw)
Hello,
some of our customers have asked us to enhance the debugger to be able
to save breakpoints in a file, in order to reset them later. We feel
it's a useful functionality to have and share with the rest of the
GDB community.
Within AdaCore, we have adopted the interface that Apple has implemented
in their own version of the debugger. So they added a command called
"save-breakpoint" which will generate a set of GDB commands re-creating
each breakpoint. To reset the breakpoints, one just "source"s this
file.
I personally like the simplicity of this approach. There are a few
issues we need to discuss, however:
. What happens if one of the breakpoints is inside a shared library
and that the symbols for the library haven't been loaded yet?
The current result depends on the "breakpoint pending" setting.
. What happens if one of the breakpoints locations is OBE and
leads to an error? Again, depending on the "breakpoint pending"
setting, the script will either set a pending breakpoint, ignore
silently, or abort.
What do others think of this approach? If we can agree on it, I will
work on the implementation, probably drawing most of the code from
the last Apple source drop.
Thanks,
--
Joel
next reply other threads:[~2005-10-11 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-11 17:43 Joel Brobecker [this message]
2005-10-14 15:44 ` Daniel Jacobowitz
2005-10-14 19:38 ` Joel Brobecker
2005-10-18 17:06 ` Jim Ingham
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=20051011174255.GB1015@adacore.com \
--to=brobecker@adacore.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