mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bug [ 1192315 ] 'clear -1' in pdb
This commit is contained in:
parent
79c122f568
commit
6d2b346140
2 changed files with 6 additions and 1 deletions
|
@ -450,11 +450,14 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
|||
return
|
||||
numberlist = arg.split()
|
||||
for i in numberlist:
|
||||
if not (0 <= i < len(bdb.Breakpoint.bpbynumber)):
|
||||
print 'No breakpoint numbered', i
|
||||
continue
|
||||
err = self.clear_bpbynumber(i)
|
||||
if err:
|
||||
print '***', err
|
||||
else:
|
||||
print 'Deleted breakpoint %s ' % (i,)
|
||||
print 'Deleted breakpoint', i
|
||||
do_cl = do_clear # 'c' is already an abbreviation for 'continue'
|
||||
|
||||
def do_where(self, arg):
|
||||
|
|
|
@ -191,6 +191,8 @@ Extension Modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- Bug #1192315: Disallow negative arguments to clear() in pdb.
|
||||
|
||||
- Patch #827386: Support absolute source paths in msvccompiler.py.
|
||||
|
||||
- Patch #1105730: Apply the new implementation of commonprefix in posixpath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue