From 271cbedd2140c3922499bc3d624b0c64339b8287 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 1 Feb 2022 21:12:15 +0200 Subject: [PATCH] Fix reported break point number. --- debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.cpp b/debug.cpp index bf26080a..89498b13 100644 --- 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)); -- 2.47.3