Debugger: Re-allocate callback after loading custom BIOS

This commit is contained in:
Jonathan Campbell 2018-10-19 22:37:49 -07:00
parent 38533d77c6
commit 63359bf0f4
2 changed files with 9 additions and 0 deletions

View File

@ -3048,6 +3048,12 @@ void DEBUG_ShutDown(Section * /*sec*/) {
Bitu debugCallback;
void DEBUG_ReinitCallback(void) {
/* this is REQUIRED after loading a custom BIOS */
debugCallback=CALLBACK_Allocate();
CALLBACK_Setup(debugCallback,DEBUG_EnableDebugger,CB_RETF,"debugger");
}
void DEBUG_Init() {
DOSBoxMenu::item *item;

View File

@ -7746,6 +7746,9 @@ fresh_boot:
void CALLBACK_Init();
CALLBACK_Init();
void DEBUG_ReinitCallback(void);
DEBUG_ReinitCallback();
}
DispatchVMEvent(VM_EVENT_RESET_END);