I have one executable (say a.out) and two sets of input data, say set1 and set2. I want to step through the runs simultaneously: i.e there will be two executables running, identical but different input. I want to able to debug the stage at which the result differs.
Do you know of a free tool that will let me do this?
Is there a way to step through the executables simultaneously in gdb or valgrind (without doing it manually?).
One option is to manually launch two sessions of gdb, dump a few variables (not exhaustive for a large code) and compare the datafiles. But this will be slow and hard. Looking through google, I found a way called comparative debugging although there may be other names I may not be aware of. Can I do Comparative debugging in recent versions of gdb or other tools? The only reference I found was from 1997. So help would be appreciated.