Commit 6d2b3461 authored by Georg Brandl's avatar Georg Brandl

bug [ 1192315 ] 'clear -1' in pdb

parent 79c122f5
...@@ -450,11 +450,14 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -450,11 +450,14 @@ class Pdb(bdb.Bdb, cmd.Cmd):
return return
numberlist = arg.split() numberlist = arg.split()
for i in numberlist: for i in numberlist:
if not (0 <= i < len(bdb.Breakpoint.bpbynumber)):
print 'No breakpoint numbered', i
continue
err = self.clear_bpbynumber(i) err = self.clear_bpbynumber(i)
if err: if err:
print '***', err print '***', err
else: else:
print 'Deleted breakpoint %s ' % (i,) print 'Deleted breakpoint', i
do_cl = do_clear # 'c' is already an abbreviation for 'continue' do_cl = do_clear # 'c' is already an abbreviation for 'continue'
def do_where(self, arg): def do_where(self, arg):
......
...@@ -191,6 +191,8 @@ Extension Modules ...@@ -191,6 +191,8 @@ Extension Modules
Library Library
------- -------
- Bug #1192315: Disallow negative arguments to clear() in pdb.
- Patch #827386: Support absolute source paths in msvccompiler.py. - Patch #827386: Support absolute source paths in msvccompiler.py.
- Patch #1105730: Apply the new implementation of commonprefix in posixpath - Patch #1105730: Apply the new implementation of commonprefix in posixpath
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment