|
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
[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.
|
|
|
|
Re: Breaking into the debugger
[Re: R. Belmont]
#266737 - 10/18/11 06:50 PM
|
|
|
Thanks for the tip!
debugger_break, in debugger.h
|
|
|