How can I rerun a program with gdb until a segmentation fault occurs? -


my program has segmentation fault problem, faults rarely(once in 20 times or more), , debug in gdb, need manually rerun program until segmentation fault occurs (during half day of reruns once fails :( ).

so questions is, there way tell gdb rerun program until segfault?

put breakpoint @ exit of program triggers run command, , don't forget set pagination off. information on settings commands available in breakpoint command lists section of gdb documentation. in short:

set pagination off break exit commands run end 

after commands line you'll see next 2 lines being entered command execute when breakpoint reached.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -