This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

---------------------------------------------------------- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]