You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to try out breakpoint scripting API introduced in development versions of mGBA but can't get it to work for the life of mine.
First of all, setBreakpoint returns -1 , apparently hitting this, unless I open a debugger window and run something in it before executing setBreakpoint. But even then I can't get breakpoints to work - they just don't trigger, and if I manually set one from debugger console (break/t), the emulation hangs upon hitting it and only resumes once I reset the script window. I've also tried changing breakpoint type in _mScriptCoreAdapterSetBreakpoint to BREAKPOINT_SOFTWARE, but that aborts with core dump.
Code I run in scripting console to try and set breakpoint:
For the record I'm testing this on commit ce374b1, GBA game Metroid Fusion (USA) with breakpoint at 0x80045a8 (THUMB code). Would greatly appreciate any help.
P.S.: what does the third segment argument do for setBreakpoint? I can't find any explanation for it and it does not appear to refer to memory domain either.
The text was updated successfully, but these errors were encountered:
Regarding debugger initialization: it looks like it's up to frontend to set up a debugger and neither Qt nor SDL do it unless either GDB or built-in debugger have been used/enabled. This poses a problem to scripts since they have no way to request a debugger to be set up for current program. It also seems that solving this would require some refactoring, as setup/teardown of debugger is currently completely within responsibility of frontends and thus can't be easily added into scripting API.
I'd like to try out breakpoint scripting API introduced in development versions of mGBA but can't get it to work for the life of mine.
First of all,
setBreakpoint
returns-1
, apparently hitting this, unless I open a debugger window and run something in it before executingsetBreakpoint
. But even then I can't get breakpoints to work - they just don't trigger, and if I manually set one from debugger console (break/t
), the emulation hangs upon hitting it and only resumes once I reset the script window. I've also tried changing breakpoint type in_mScriptCoreAdapterSetBreakpoint
toBREAKPOINT_SOFTWARE
, but that aborts with core dump.Code I run in scripting console to try and set breakpoint:
For the record I'm testing this on commit ce374b1, GBA game Metroid Fusion (USA) with breakpoint at
0x80045a8
(THUMB code). Would greatly appreciate any help.P.S.: what does the third
segment
argument do forsetBreakpoint
? I can't find any explanation for it and it does not appear to refer to memory domain either.The text was updated successfully, but these errors were encountered: