Debugger: on DebugInitialize() reset counts for BPs, Watches & ZP pointers.

. fixes an issue when BPs set, do a VM restart (eg. change h/w config), and it was STEPPING when no BPs were set!
This commit is contained in:
tomcw 2023-03-12 16:52:05 +00:00
parent 5e06ddaa94
commit 387b66d213
1 changed files with 3 additions and 0 deletions

View File

@ -8692,8 +8692,11 @@ void DebugInitialize ()
// CLEAR THE BREAKPOINT AND WATCH TABLES
memset( g_aBreakpoints , 0, MAX_BREAKPOINTS * sizeof(Breakpoint_t));
g_nBreakpoints = 0;
memset( g_aWatches , 0, MAX_WATCHES * sizeof(Watches_t) );
g_nWatches = 0;
memset( g_aZeroPagePointers, 0, MAX_ZEROPAGE_POINTERS * sizeof(ZeroPagePointers_t));
g_nZeroPagePointers = 0;
// Load Main, Applesoft, and User Symbols
g_bSymbolsDisplayMissingFile = false;