This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: Is it possible to save breakpoints to a file?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Atul Talesara'" <atul dot talesara at nevisnetworks dot com>,"'Hareesh Nagarajan'" <hnagaraj at cs dot uic dot edu>,"'GDB'" <gdb at sources dot redhat dot com>
- Date: Thu, 10 Mar 2005 15:12:56 -0000
- Subject: RE: Is it possible to save breakpoints to a file?
----Original Message----
>From: Atul Talesara
>Sent: 10 March 2005 10:53
>> Is it possible to save all breakpoints that one
>> sets to a file, so that
>> we can reload the breakpoints set during the next
>> debug run?
> Well, though not exactly the same
[... snip ...]
> In fact you can have *any* command you wish in the
> sourced file. If you put all these in '.gdbinit'
> file then gdb will automatically source this on start up!
If you are using the insight GUI for gdb, that will save your breakpoints
for you as part of the project preferences. It writes them into .gdbinit
automatically and reloads them next time you're debugging the same
executable.
cheers,
DaveK
--
Can't think of a witty .sigline today....