PDA

View Full Version : GDB Script?



DBQ
October 18th, 2009, 06:04 AM
Hi everybody. I am trying to debug a dubious problem in my program. The input is non-deterministically generated. I want gdb to keep running my program (multiple times) until it crashes (e.g. with a stack smash or segmentation fault, or what not). Is there a way to automate that?

napsy
October 18th, 2009, 09:30 AM
If you're searching for python scripting in gdb 7, here's a small introduction that I've written: http://napsy.wordpress.com/2009/10/11/gdb-7-scripting/