mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-23 21:29:28 +00:00
177098c957
Typing Control-C in Terminal app causes an interrupt signal that should enter the DPPC debugger but this only worked once since the signal handler never returned. Even if the signal handler reenabled the signal somehow, it calls enter_debugger recursively which is strange since the earlier calls to enter_debugger would never return. Now the signal handler just sets a flag (power_on) which can be used to exit any loop (emulator loops, stepping loops, disassembly loops, dumping loops). Main always calls enter_debugger now which calls the ppc_exec loop. The power_on flag will exit the ppc_exec loop to return to the debugger. Recursion of enter_debugger is eliminated except for calls to loguru's ABORT_F. An enum power_off_reason is used to indicate why the power_on flag is set to false and to determine what happens next. |
||
---|---|---|
.. | ||
bitops.h | ||
CMakeLists.txt | ||
coresignal.h | ||
hostevents_sdl.cpp | ||
hostevents.h | ||
mathutils.h | ||
timermanager.cpp | ||
timermanager.h |