public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* New command to save breakpoints?
@ 2005-10-11 17:43 Joel Brobecker
  2005-10-14 15:44 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2005-10-11 17:43 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-18 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 17:43 New command to save breakpoints? Joel Brobecker
2005-10-14 15:44 ` Daniel Jacobowitz
2005-10-14 19:38   ` Joel Brobecker
2005-10-18 17:06     ` Jim Ingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).