dingusdev / dingusppc

An experimental emulator
GNU General Public License v3.0
200 stars 21 forks source link

Ensure that NVRAM is persisted when exiting the debugger after an abort #78

Closed mihaip closed 3 months ago

mihaip commented 3 months ago

The SIGABRT handler is not invoked by the abort() call in the loguru fatal handler, but either way it's not necessary (it does its own abort()).

Switch to explicitly cleaning up the machine object, which as a side effect in the destructor chain will persist the NVRAM.

mihaip commented 3 months ago

@dingusdev you said you ran into issue where the NVRAM was not being persisted, I think this should help