summaryrefslogtreecommitdiff
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-11-29 11:54:17 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-11-29 11:54:17 +0000
commit6f1070485f54469d7bf48df8306e398609340a07 (patch)
tree08eda3c912bb78c17b0655e140161da0213126d7 /Lib/pdb.py
parentead22227cce112457b6beba8b008699ea4a3a084 (diff)
downloadcpython-git-6f1070485f54469d7bf48df8306e398609340a07.tar.gz
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.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index a159d4ccd7..f5d8c2a08a 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -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'