]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix debugger memory scanner.
authorToni Wilen <twilen@winuae.net>
Mon, 8 Jun 2020 17:55:35 +0000 (20:55 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 8 Jun 2020 17:55:35 +0000 (20:55 +0300)
debug.cpp

index e3d7a6defcd298039dfcebfb56f04ec6247d1e4d..581357de296202c996bd02840be9bf33ce162ce5 100644 (file)
--- 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;