From 32cb91005576fa42b4e48de6afec644eff1610e3 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 8 Jun 2020 20:55:35 +0300 Subject: [PATCH] Fix debugger memory scanner. --- debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug.cpp b/debug.cpp index e3d7a6de..581357de 100644 --- a/debug.cpp +++ b/debug.cpp @@ -1065,9 +1065,10 @@ static uaecptr nextaddr (uaecptr addr, uaecptr last, uaecptr *endp, bool verbose int lastbank = currprefs.address_space_24 ? 255 : 65535; if (addr != 0xffffffff) { + addrbank *ab2 = get_mem_bank_real(addr); addr++; ab = get_mem_bank_real(addr); - if (ab->baseaddr && (ab->flags & ABFLAG_RAM)) + if (ab->baseaddr && (ab->flags & ABFLAG_RAM) && ab == ab2) return addr; } else { addr = 0; -- 2.47.3