]> granicus.if.org Git - python/commit
[Bug #741171] pdb crashes when enabling a non-existing breakpoint
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 22 May 2003 14:46:12 +0000 (14:46 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 22 May 2003 14:46:12 +0000 (14:46 +0000)
commitb1f8bab6542635cd32dfbebde3839f86819548ab
treeed4292f4a173c00230cb0e8bdd131de356ea7eee
parent35c6cd09056cc9de9fc6b0d962c2fecb81b94b08
[Bug #741171] pdb crashes when enabling a non-existing breakpoint

Check the supplied breakpoint number more carefully.
(Incompatibility: before this patch, "enable -1" would enable
the last breakpoint on the list; now -1 is not a legal ID.  Not sure
anyone would ever use negative indices...)

2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.
Lib/pdb.py