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: "Atul Talesara" <atul dot talesara at nevisnetworks dot com>
- To: "Hareesh Nagarajan" <hnagaraj at cs dot uic dot edu>,"GDB" <gdb at sources dot redhat dot com>
- Date: Thu, 10 Mar 2005 16:22:34 +0530
- Subject: RE: Is it possible to save breakpoints to a file?
> 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 ... this might
solve your problem. You can have a plain text
file that can list all the breakpoints you want
to put. Ex:
$ cat breakpoints
break code_file_01.c : 515
break code_file_02.c : 5
break code_file_03.c : 201
And then you can source this file to gdb as:
(gdb) source breakpoints
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!
Hope this addresses your need.
Regards,
Atul
http://the-shaolin.blogspot.com/
----------------------------------------------------------
You can tell more about a person by what he says about
others than you can by what others say about him.
----------------------------------------------------------