Closed rjobling closed 4 years ago
Hmm.. GDB needs to set breakpoints. The emulated Amiga knows nothing about breakpoints.
What about a reliable way of crashing the emulation that the debugger would catch? I'm just trying to put together a useful assert macro.
Yeah sure, you can do that. We're just doing an infinite loop and hit the pause button. However, the debugger breaks on address error (unaligned access, needs to be generated via inline asm) and "TRAP#7" opcode. So you could use either method to trigger a crash that the debugger notices.
Thanks I used an unaligned write and that does the trick.
Hi Bartman Is there a way to code a debug break point in C or inline asm? I thought maybe calling the exec function Debug(0) would do it. That seems to be an old way to hook into debuggers. How does the framework trigger break points? Maybe I can just emit the correct magic code?