Skip to content

gh-115999: Fix gdb support for libpython.so after thread-local bytecode change - #126440

Merged
Yhg1s merged 1 commit into
python:mainfrom
Yhg1s:fix-gdb
Nov 5, 2024
Merged

Yhg1s merged 1 commit into
python:mainfrom
Yhg1s:fix-gdb

Conversation

@Yhg1s

@Yhg1s Yhg1s commented Nov 5, 2024 •

Copy link
Copy Markdown
Member

Fix the gdb pretty printer in the face of --enable-shared by delaying the attempt to load the _PyInterpreterFrame definition (for thread-local bytecode detection) until after .so files are loaded.

… the

attempt to load the _PyInterpreterFrame definition until after .so files are
loaded.
@Yhg1s

Yhg1s commented Nov 5, 2024

Copy link
Copy Markdown
Member Author

!buildbot Shared

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @Yhg1s for commit e2202fc 🤖

The command will test the builders whose names match following regular expression: Shared

The builders matched are:

  • AMD64 Ubuntu Shared PR

@encukou encukou left a comment

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.

Oh! Thank you for looking into this, and for the fix!

I could reproduce with --enable-shared, and this fixes the test for me.
Let's merge when the buildbot passes (in a few hours, there's a queue).

@Yhg1s

Yhg1s commented Nov 5, 2024

Copy link
Copy Markdown
Member Author
@Yhg1s
Yhg1s merged commit bbfd9c9 into python:main Nov 5, 2024
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…bytecode change (python#126440)

Fix the gdb pretty printer in the face of --enable-shared by delaying the attempt to load the _PyInterpreterFrame definition until after .so files are loaded.
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…bytecode change (python#126440)

Fix the gdb pretty printer in the face of --enable-shared by delaying the attempt to load the _PyInterpreterFrame definition until after .so files are loaded.
@Yhg1s
Yhg1s deleted the fix-gdb branch August 13, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants