[RFA/RFC] Add dump and load command to process record and replay

Eli Zaretskii eliz@gnu.org
Tue Aug 4 18:26:00 GMT 2009


> From: Hui Zhu <teawater@gmail.com>
> Date: Tue, 4 Aug 2009 10:07:11 +0800
> Cc: msnyder@vmware.com, gdb-patches@sourceware.org
> 
> > By the way, does it make sense to make the dump file portable, so that
> > another host that supports debugging the same target could then use
> > it?
> >
> 
> Yes, the dump file is portable like core file.

Well, maybe I'm missing something important, but isn't the dump file a
series of struct's defined as this:

    struct record_entry
    {
      struct record_entry *prev;
      struct record_entry *next;
      enum record_type type;
      union
      {
	/* reg */
	struct record_reg_entry reg;
	/* mem */
	struct record_mem_entry mem;
      } u;
    };

?  If so, then the dump file uses host's native pointers, so it is not
portable to a different host.  Right?



More information about the Gdb-patches mailing list