Re:Reverse Execution in GDB 7 is imminent
by muon on Wednesday September 23, 2009 @01:46PM
(#839733)
Till now, I believed this was impossible to do.
[ Parent
| on HN ]
Re:Reverse Execution in GDB 7 is imminent
by adamt on Wednesday September 23, 2009 @02:27PM
(#839832)
It's been possible for quite some time. Someone I vaguely know set up a startup back in 2006 looking to do just this:
http://undo-software.com/
Re:Reverse Execution in GDB 7 is imminent
by zandorg on Wednesday September 23, 2009 @03:06PM
(#839907)
In 2006, I wanted to see if it was possible, so I wrote (in C++) a virtual CPU with 2 registers (A and Program Counter) and input (In/Out ports) and the basic idea was it'd log everything (per cycle) in a reversable form.
Unfortunately I was too lazy to finish it, but I think it would have worked. It was just a proof of concept.
Re:Reverse Execution in GDB 7 is imminent
by mahmud on Wednesday September 23, 2009 @09:25PM
(#840450)
As long as you run it forward once, you should be able to do reverse execution. What you consider "impossible" is taking a binary and executing it from its last instruction up to the first: that would be impossible, or at least ill specified, because a program could have many exit points, but only one entry point.
Re:Reverse Execution in GDB 7 is imminent
by huhtenberg on Wednesday September 23, 2009 @05:18PM
(#840146)
You believe incorrectly. Borland C++ IDE supported reverse execution back in early 90s.
Yes, but AFAIK that was only for a very limited duration trace buffer. You're right, it is basically the same thing, but gdb can now do it for millions of instructions.
Re:Reverse Execution in GDB 7 is imminent
by kijiki on Wednesday September 23, 2009 @09:26PM
(#840452)
VMware Workstation can do this for entire VMs. They call it "replay" IIRC.
Re:Reverse Execution in GDB 7 is imminent
by woadwarrior01 on Wednesday September 23, 2009 @03:16PM
(#839932)
Ocaml's debugger has a similar time travelling feature.