[hatari-devel] saving/restoring memory state from debugger
npomarede at corp.free.fr
npomarede at corp.free.fr
Sat Feb 13 14:38:02 CET 2010
On Mon, 8 Feb 2010, Eero Tamminen wrote:
>> Eero, could you add a "savestate/loadstate" (or whatever you prefer) to
>> be able to take a memory snapshot of Hatari
>
> Sure, I commited support for that.
>
>
>> (I'm not sure loading the memory state from the debugger is that useful,
>> so maybe "loadstate" can be forgotten) ?
>
> That was only few trivial lines more, so I added it for symmetry's sake. :-)
Hello,
I just tried savestate ; this correctly saves the memory snapshot but it
doesn't seem to return to the debugui, as the '>' doesn't come back and no
other commands are recognized.
I had to press ctrl+c to get back to the debug mode with '>'.
Does it work for you ?
BTW : I noticed that loading such a memory snapshot doesn't always work,
because Hatari expects some variables to be saved during the VBL interrupt
(when nHBL=0) ; I need to improve saving/loading so that it works at any
moment in the emulation.
At the moment, you're likely to get :
hatari: cycInt.c:377: CycInt_AddRelativeInterruptWithOffset: Assertion `CycleTime >= 0' failed.
Nicolas
More information about the hatari-devel
mailing list