This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Who uses gdbreplay?
On Thu, Jun 12, 2008 at 02:54:58PM -0400, Marc Khouzam wrote:
> Hi,
>
> I've tried to find information in the doc about gdbreplay without luck.
> Really quickly, does gdbreplay, as its name suggest, allow to record an
> re-run an application session? Does it allow reverse debugging in some form?
> And since this is part of gdbserver, I assume its functions are for a target system?
>
> This very morning, I was asked if GDB had any kind of foundation for reverse
> debugging on a target. Is gdbreplay what I am looking for?
No. gdbreplay allows you to rerun a remote protocol conversation from
a log. This only works if you issue exactly the same commands to GDB;
it is a very simple program, and only knows "what packet do I expect
next" and "what reply should I send to the expected packet". It's
basically a debugging aid for the remote protocol.
--
Daniel Jacobowitz
CodeSourcery