Re: PRecord sets memory even when it says it did not

Daniel Jacobowitz
2009-09-14T15:53:35Z

On Mon, Sep 14, 2009 at 12:39:35PM +0800, Hui Zhu wrote:
> > (gdb) set var a = 8
> > Because GDB is in replay mode, writing to memory will make the execution log unusable from this point onward. Â Write memory at address 0xbffff6a0?(y or [n]) n
> > Process record canceled the operation.
> > (gdb) p a
> > $2 = 8

This should refetch the value from the target. What value is cached?

> 2009-09-14 Hui Zhu <teawater@gmail.com>
>
> * record.c (record_xfer_partial): Call free_all_values when
> cancel the operation.

I don't think this is a good idea; this is a memory management
function. It's not supposed to change the apparent values.

--
Daniel Jacobowitz
CodeSourcery