Re: [Precord RFA/RFC] Check Linux sys_brk release memory in process record and replay.

Eli Zaretskii
2009-05-05T18:41:04Z

> Date: Tue, 5 May 2009 21:07:13 +0800
> From: Hui Zhu <teawater@gmail.com>
> Cc: Michael Snyder <msnyder@vmware.com>
>
> 15 sbrk (-10);
> (gdb)
> The next instruction is syscall brk. It will release the memory that
> will cause process record target get error. Do you want to stop the
> inferior?([y] or n)

Does every sbrk call with a negative argument cause an error in
process record target? What is the reason for that error?

I'm asking because the message wording sounds very threatening. It
probably needs rephrasing, but I need to understand the reasons better
to suggest how.

> * gdbarch.sh (process_record_reset): This interface point to
> the function that reset the architecture process record and
> replay.

I think "reset" is not the best name for this. How about
"initialize"?