This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Edit-and-Continue and running-backward
- From: "Jakob Engblom" <jakob at virtutech dot com>
- To: "'lehe'" <timlee126 at yahoo dot com>, <gdb at sourceware dot org>
- Date: Sat, 28 Feb 2009 09:15:09 +0100
- Subject: RE: Edit-and-Continue and running-backward
- References: <22258432.post@talk.nabble.com>
> 2. How to get the ability to run programs backward? What is "target
> environment" in this description "If the target environment supports it, gdb
> can allow you to ârewindâ the program by running it backward" and how to
> make my target environment support it? I am programming sometimes in Linux
> with emacs or with IDE Code::Blocks.
There is some kind of work on "record and replay" for user-land Linux processes that Teawater is working on.
You can also use hte commercial VmWare and Simics tools to get full-system reverse execution, which are available today. Both work with any gdb-remote-based system.
Note that edit-and-continue cannot reasonably be combined with reverse execution: what would it mean to back through an execution trace where you change the code underlying it? You could reasonably back up to some previous point in time, do the patch, and then execute into it. However, you probably will have to consider the point in time of the patch the staring point of your reversible session -- unless the execution substrate can remember and redo and undo the patch as you execute over the patch point in time.
Best regards,
/jakob
_______________________________________________________
Jakob Engblom, PhD, Technical Marketing Manager
Virtutech Direct: +46 8 690 07 47
DrottningholmsvÃgen 22 Mobile: +46 709 242 646
11243 Stockholm Web: www.virtutech.com
Sweden
________________________________________________________