Visitar URL original
bpo-45637: Fix cframe-based fallback in the gdb helpers by pablogsal · Pull Request #29515 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223134418/https://github.com/python/cpython/pull/29515
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-45637: Fix cframe-based fallback in the gdb helpers #29515

Merged
merged 1 commit into from Nov 10, 2021

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Nov 10, 2021 •

cframe = self._gdbframe.read_var('cframe')
if cframe is None:
return None
frame = PyFramePtr(cframe["current_frame"].dereference())
frame = PyFramePtr(cframe["current_frame"])
Copy link
Member

@markshannon markshannon Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems more correct. What does it fix?

Copy link
Member Author

@pablogsal pablogsal Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pointer that we are getting was wrong. Seems that new versions of gdb still correct this fall and doesn't do anything if is a value and not a pointer, but old versions like the one FreeBSD get garbage

@pablogsal pablogsal added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Nov 10, 2021
@bedevere-bot
Copy link

bedevere-bot commented Nov 10, 2021

🤖 New build scheduled with the buildbot fleet by @pablogsal for commit 3be986e 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 10, 2021
@pablogsal
Copy link
Member Author

pablogsal commented Nov 10, 2021

I am landing this as this fixes the FreeBSD buildbot

@pablogsal pablogsal merged commit 20205ad into python:main Nov 10, 2021
28 of 47 checks passed
@pablogsal pablogsal deleted the bpo-45637 branch Nov 10, 2021
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
remykarem pushed a commit to remykarem/cpython that referenced this pull request Jan 30, 2022
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.

None yet

4 participants