Reputation: 8602
So i'm debugging a very rare case that SEGSEV occurs, I do not know when it will happen, but i know that when it happens, one local var is -1
, so I did this in gdb
break file.c:100 if t1 == -1
the problem is i have to go back many steps to find out what happened, is it possible to record all execution information, so that I can replay the execution?
Upvotes: 2
Views: 368
Reputation: 4750
there is currently the rr project for linux which record the execution of your program and help you replay the execution in GDB.
Windows also seem to have some replay debugging capabilities with winDbg preview
Upvotes: 1