Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
diff --git a/Lib/pdb.py b/Lib/pdb.py
index a159d4c..f5d8c2a 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -774,7 +774,8 @@
except ValueError as err:
self.error(err)
else:
- self.clear_break(bp.file, bp.line)
+ self.clear_bpbynumber(i)
+ #self.clear_break(bp.file, bp.line)
self.message('Deleted %s' % bp)
do_cl = do_clear # 'c' is already an abbreviation for 'continue'