-
-
Notifications
You must be signed in to change notification settings - Fork 32k
GH-94739: Mark stacks in exception handlers. #94958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-94739: Mark stacks in exception handlers. #94958
Conversation
edited by bedevere-bot
- Issue: cannot jump within exception handler in debugger #94739
Objects/frameobject.c
Outdated
break; | ||
case RETURN_VALUE: | ||
assert(pop_value(next_stack) == 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, you're asserting that there is just one item in the stack.
int depth_and_lasti; | ||
scan = parse_varint(scan, &depth_and_lasti); | ||
int level = depth_and_lasti >> 1; | ||
int lasti = depth_and_lasti & 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to assert here that start_offset and handler are in range.
Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, @markshannon, I could not cleanly backport this to |
…frame.f_lineno in the debugger. (pythonGH-94958)