]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix reported break point number.
authorToni Wilen <twilen@winuae.net>
Tue, 1 Feb 2022 19:12:15 +0000 (21:12 +0200)
committerToni Wilen <twilen@winuae.net>
Tue, 1 Feb 2022 19:12:15 +0000 (21:12 +0200)
debug.cpp

index bf26080a0b5e4419e15ea7f007999fa023222318..89498b13a9e8621e1030d3cf32b9db41254d7bef 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -6414,7 +6414,7 @@ void debug (void)
                                        continue;
                                if (bpn->type == BREAKPOINT_REG_PC) {
                                        if (bpn->value1 == pc) {
-                                               bp = 1;
+                                               bp = i + 1;
                                                break;
                                        }
                                } else if (bpn->type >= 0 && bpn->type < BREAKPOINT_REG_END) {
@@ -6486,7 +6486,7 @@ void debug (void)
                                                        while (seglist) {
                                                                uae_u32 size = get_long_debug (seglist - 4) - 4;
                                                                if (pc >= (seglist + 4) && pc < (seglist + size)) {
-                                                                       bp = 1;
+                                                                       bp = i + 1;
                                                                        break;
                                                                }
                                                                seglist = BPTR2APTR(get_long_debug (seglist));