English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 07 June 2023, 21:05   #1
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,289
Saving state while debugging (feture request?)

When debugging/exploring it would often be useful to me if it was possible to save and restore the (halted) state of WinUAE for later. Maybe this is already possible and I just don't know about it.

Example: I'm looking at some game and have followed the bootloader to where it gets interesting. Now I'd like to save the state at that instant so I can backtrack after e.g. wrongly doing "z" instead of "t" (or the other way round if I found that I've stepped into some boring routine).

If not already implemented, I'm very open to something that only works in special cases and requires weird debug comand incarnations.
paraj is offline  
Old 07 June 2023, 21:34   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,602
It is not possible. state can be only saved when hpos==vpos==0. Most DMA channels are idle at this point which makes it much easier to handle than any random position.
Toni Wilen is offline  
Old 08 June 2023, 17:18   #3
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,289
I see, guess that makes sense (certainly makes it simpler).

Perhaps a way to enter the GUI ASAP (xg?) would still help me in a lot of cases. Would limit how far back in time interesting stuff would be, and I could patch in a busy loop for the case I mentioned or something.

Anyway, low priority stuff, and if it's not useful to anyone else then don't obviously bother
paraj is offline  
Old Yesterday, 15:44   #4
Rock'n Roll
German Translator
 
Rock'n Roll's Avatar
 
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 50
Posts: 211
Quote:
Originally Posted by paraj View Post
When debugging/exploring it would often be useful to me if it was possible to save and restore the (halted) state of WinUAE for later.
I also see this as very useful and I think of a kind of 'debug-script' in which a command sequence of
WinUAE debugger commands are executed 'automatically' depending on the program to be debugged.
That way, I wouldn't have to keep repeating inputs for larger tests.

>LS 'name' ; (load script)

Contents command sequence:
example:reset;f 30008;L patch 1 $3001a !8;L Patch 2 $3017c !44;fd;g;f 3190a;

procedure:
Shift+F12 to open the Debugger
>LS 'debug_script' ; Load debug-script

-it executes the reset command first and
-it loads the program from disk and stops at address $30008
-it loads two program patches
-and deletes the breakpoint
-then it continues the program
-and breaks at address $3190a

the analysis can now be continued 'manually'.

The same should be also possible from a savestate.
example: reset 'savestate=superdemo.uss',f 30008;L patch 1 $3001a !8;L Patch 2 $3017c !44;fd;g;f 3190a;

Interrupt the script with Shift+F12 or end with completion message:
>debug-script break
>debug-script complete
Rock'n Roll is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Longer gameplays.. saving state (or other trick) on a real Amiga? reezo support.Games 2 19 December 2021 16:17
How to enable state saving with HD image game. Pfredd support.FS-UAE 8 15 April 2018 14:56
Saving Workbench state Ocalasun project.ClassicWB 2 10 September 2014 21:16
Saving state on real A600 Supamax support.Other 1 31 January 2009 16:33
PS2UAE - question about saving state samtam90 Retrogaming General Discussion 1 23 March 2007 18:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08027 seconds with 13 queries