Commit adb5c95
committed
gh-149015: Fix iterate-and-delete issue in Bdb.clear_all_file_breaks
When multiple breakpoints share the same line, iterating over blist while
calling bp.deleteMe() (which mutates blist) causes alternate elements to
be skipped, leaving orphan breakpoints.
This is a one-character fix: add [:] to create a copy before iterating,
matching the existing defensive pattern in clear_break() at line 722.1 parent c62c371 commit adb5c95
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| |||
0 commit comments