From 387b66d21330189b9d503af280c2443477537e21 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 12 Mar 2023 16:52:05 +0000 Subject: [PATCH] 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! --- source/Debugger/Debug.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 12b4aa4d..3bfceea3 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -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;