English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 08 March 2024, 17:31   #1
Michael Doma
Registered User
 
Join Date: Jan 2024
Location: Austria
Posts: 69
Lightbulb JIT and debugger watches/breakpoints

Dear Toni,

just one helpful suggestion:
Using watches ("w") and breakpoints ("f") should be prevented (or at least trigger a warning message to the user) when emulation is in JIT mode. A few months ago, it took me already quite some time to find out why my breakpoint wasn't triggering (I've assumed an anti-debugger protection... ) - and although I resolved the problem back then by disabling JIT, it happened to me again yesterday that I couldn't figure out why emulation crashed right away after adding a watch... until I saw the JIT check mark...

Regards,

Michael
Michael Doma is offline  
Old 08 March 2024, 17:42   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,540
No. If you use debugger, you need to know what are you doing and how different options affect it. (There are lots of conditions where it can cause crashes etc. It is by design)

JIT also can be switched on and off on the fly and depending on JIT mode, some types of breakpoints can work.
Toni Wilen is online now  
Old 08 March 2024, 17:46   #3
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,329
To develop whdload slaves or my games (that run with whdload), I use post/pre scripts to control JIT and turn it off when I run a game. That way I never have any problems.

BTW anti-debugger protection is just not possible with a stealth debugger like WinUAE...
jotd is offline  
Old 09 March 2024, 19:41   #4
Michael Doma
Registered User
 
Join Date: Jan 2024
Location: Austria
Posts: 69
Quote:
Originally Posted by Toni Wilen View Post
No. If you use debugger, you need to know what are you doing and how different options affect it. (There are lots of conditions where it can cause crashes etc. It is by design)

JIT also can be switched on and off on the fly and depending on JIT mode, some types of breakpoints can work.
So what's the safest JIT mode/settings that allow JIT to be turned on and off on the fly without crashing?

Oh and I'd like to oppose that the expected behaviour would be that breakpoints and watches keep on working even after JIT is enabled... !
Michael Doma is offline  
Old 20 March 2024, 18:36   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,540
Quote:
Originally Posted by Michael Doma View Post
So what's the safest JIT mode/settings that allow JIT to be turned on and off on the fly without crashing?

Oh and I'd like to oppose that the expected behaviour would be that breakpoints and watches keep on working even after JIT is enabled... !
They are never going to work fully with JIT. It just isn't possible with JIT.

Indirect JIT might work in most cases but it is also much slower. You can't have both.
Toni Wilen is online now  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE debugger workflow: reset, disable breakpoints etc hop support.WinUAE 20 18 December 2023 21:24
UAE JIT + debugger compatibility Toni Wilen Coders. General 0 28 July 2020 18:54
Vintage watches. Casio and others from then. Retrofan Retrogaming General Discussion 23 20 May 2019 19:26
WinUAE Debugger - Audio Register Breakpoints SparkyNZ Coders. Asm / Hardware 2 14 June 2015 21:40
WinUAE Debugger - Breakpoints when memory read SparkyNZ Coders. Asm / Hardware 5 07 March 2015 23:48

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 17:07.

Top

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