]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport fix by tismer for #210682
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 29 May 2002 01:17:47 +0000 (01:17 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 29 May 2002 01:17:47 +0000 (01:17 +0000)
commitdcbf1b94c6b3b24f3d9690820ba596317bbcd61c
treeda98dc4c1b326459773074bb8297fe189d5a59bc
parent6d36fd8401bcdc46a082c4920782942e2374ee0b
Backport fix by tismer for #210682

fixed an old buglet that caused bdb to be unable to
continue in the botframe, after a breakpoint was set.
the key idea is not to set botframe to the bottom level frame,
but its f_back, which actually might be None.
Additional changes: migrated old exception trick to use
sys._getframe(), which exists both in 2.1 and 2.2 .

Note: I believe Mark Hammond needs to look over his code now.
F5 correctly starts up in the debugger, but later on doesn't stop at a given
breakpoint any longer.

kind regards - chris
Lib/bdb.py