Skip to content

bpo-45637: Fix cframe-based fallback in the gdb helpers#29515

Merged
pablogsal merged 1 commit into
python:mainfrom
pablogsal:bpo-45637
Nov 10, 2021
Merged

bpo-45637: Fix cframe-based fallback in the gdb helpers#29515
pablogsal merged 1 commit into
python:mainfrom
pablogsal:bpo-45637

Conversation

@pablogsal

@pablogsal pablogsal commented Nov 10, 2021

Copy link
Copy Markdown
Member

Comment thread Tools/gdb/libpython.py
if cframe is None:
return None
frame = PyFramePtr(cframe["current_frame"].dereference())
frame = PyFramePtr(cframe["current_frame"])

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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
Copy Markdown

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

If you want to schedule another build, you need to add the ":hammer: 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
Copy Markdown
Member Author

I am landing this as this fixes the FreeBSD buildbot

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