Skip to content
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

bpo-36974: Fix GDB integration #13665

Merged
merged 1 commit into from
May 29, 2019
Merged

bpo-36974: Fix GDB integration #13665

merged 1 commit into from
May 29, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented May 29, 2019

buildbot fix for #13185

As it changes the way functions are called, the PEP 590 implementation
skipped the functions that the GDB integration is looking for
(by name) to find function calls.

Looking for the new helper cfunction_call_varargs should fix buildbots.

The changed frame nuber in test_gdb is due to there being fewer
C calls when calling a built-in funciton/method.

https://bugs.python.org/issue36974

As it changes the way functions are called, the PEP 590 implementation
skipped the functions that the GDB integration is looking for
(by name) to find function calls.

Looking for the new helper `cfunction_call_varargs` hopefully fixes the
tests, and thus buildbots.

The changed frame nuber in test_gdb is due to there being fewer
C calls when calling a built-in method.
@jdemeyer
Copy link
Contributor

Could you change this comment:

        # Tested function must not be defined with METH_NOARGS or METH_O,
        # otherwise call_function() doesn't call PyCFunction_Call()

@encukou
Copy link
Member Author

encukou commented May 29, 2019

I'm planning a follow-up with a better fix; I'll change the comment there. This is a quick patch to fix the buildbots.

@encukou encukou merged commit fecb75c into python:master May 29, 2019
@encukou encukou deleted the pep590 branch May 29, 2019 20:45
@jdemeyer
Copy link
Contributor

Thanks a lot (assuming that this actually fixes the buildbots)!

@encukou
Copy link
Member Author

encukou commented May 29, 2019

It dit! 🎉

And #13668 is that follow-up.

DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
As it changes the way functions are called, the PEP 590 implementation
skipped the functions that the GDB integration is looking for
(by name) to find function calls.

Looking for the new helper `cfunction_call_varargs` hopefully fixes the
tests, and thus buildbots.

The changed frame nuber in test_gdb is due to there being fewer
C calls when calling a built-in method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants