mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
fix #4150: pdb's up command didn't work for generators in post-mortem
This commit is contained in:
parent
cd29e9d9e1
commit
c18574c98e
3 changed files with 7 additions and 6 deletions
|
|
@ -320,6 +320,8 @@ class Bdb:
|
|||
while t is not None:
|
||||
stack.append((t.tb_frame, t.tb_lineno))
|
||||
t = t.tb_next
|
||||
if f is None:
|
||||
i = max(0, len(stack) - 1)
|
||||
return stack, i
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue