This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] Add dump and load command to process record and replay
> Date: Wed, 05 Aug 2009 14:22:10 -0700
> From: Michael Snyder <msnyder@vmware.com>
> CC: Eli Zaretskii <eliz@gnu.org>,
> "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
>
> Here's a suggested comment to start documenting the file format:
>
> /* Record log save-file format
> Version 1
>
> Header:
> 4 bytes: magic number RECORD_FILE_MAGIC.
> NOTE: be sure to change whenever this file format changes!
>
> Records:
> record_end:
> 1 byte: record type (record_end)
> record_reg:
> 1 byte: record type (record_reg)
> 8 bytes: register id
> 16 bytes: register value
> record_mem:
> 1 byte: record type (record_mem)
> 8 bytes: memory address
> 8 bytes: memory length
> n bytes: memory value (n == memory length)
This doesn't document the byte order.