Skip to content

[3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (GH-2803) #3090

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

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Aug 14, 2017

pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.

Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.

This patch fixes that. Tested locally on python3.6
(cherry picked from commit 2e0f4db)

https://bugs.python.org/issue30983

…ension (pythonGH-2803)

pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.

Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.

This patch fixes that. Tested locally on python3.6
(cherry picked from commit 2e0f4db)
@ambv ambv force-pushed the backport-2e0f4db-3.6 branch from ca7b03c to 287c9e3 Compare August 14, 2017 22:38
@ambv ambv merged commit 09b7716 into python:3.6 Aug 14, 2017
vstinner added a commit that referenced this pull request Aug 16, 2017
@ambv ambv deleted the backport-2e0f4db-3.6 branch July 12, 2021 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants