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.
This commit is contained in:
Senthil Kumaran 2010-11-29 11:54:17 +00:00
parent ead22227cc
commit 6f1070485f
5 changed files with 31 additions and 9 deletions

View file

@ -774,7 +774,8 @@ class Pdb(bdb.Bdb, cmd.Cmd):
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'