This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]