MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

rtw
lurker
Reged: 09/27/05
Posts: 65
Send PM


Breaking into the debugger
#266607 - 10/17/11 08:39 AM


I'm trying to use the built in debugger in MAME to understand a data format.

What I would like to do is something like this:

if (mem_region == magic_value)
{
stop_execution and enter the built in debugger
}

Any suggestions on how this may be achieved ?



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Breaking into the debugger new [Re: rtw]
#266730 - 10/18/11 05:54 PM


> Any suggestions on how this may be achieved ?

From driver/device code, you mean? There's a function you can call that will drop immediately into the debugger, I've used it a few times. Don't remember what it's called, but an expedition through src/emu/debug/*.h should find it.



rtw
lurker
Reged: 09/27/05
Posts: 65
Send PM


Re: Breaking into the debugger new [Re: R. Belmont]
#266737 - 10/18/11 06:50 PM


Thanks for the tip!

debugger_break, in debugger.h


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 87 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2558