Skip to content

Commit 514e3de

Browse files
committed
Merge branch 'clean' into main
2 parents 07eb9b3 + ae870a8 commit 514e3de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vice/src/monitor/mon_breakpoint.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,11 @@ bool mon_breakpoint_check_checkpoint(MEMSPACE mem, unsigned int addr, unsigned i
534534

535535
ptr = search_checkpoint_list(list, addr);
536536

537-
while (ptr && mon_is_in_range(ptr->checkpt->start_addr, ptr->checkpt->end_addr, addr)) {
537+
while (ptr) {
538538
cp = ptr->checkpt;
539539
ptr = ptr->next;
540-
if (cp && (cp->enabled == e_ON)) {
540+
if (cp && (cp->enabled == e_ON) &&
541+
mon_is_in_range(cp->start_addr, cp->end_addr, addr)) {
541542

542543
/* If condition test fails, skip this checkpoint */
543544
if (cp->condition) {

0 commit comments

Comments
 (0)