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

Fixed python exception in watch window #192

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

screaminglineage
Copy link
Contributor

The watch window fails with the following Python exception:

Python Exception <class 'AttributeError'>: module 'gdb' has no attribute 'types'

Seems like it was probably caused by some update to how gdb manages its internal python libraries. Simply adding an import gdb.types at the top of the python code part like shown here fixed it for me.

Distro: Arch Linux
GDB version: 16.1
Python version: 3.13.1

@MarcosIgnacioo
Copy link

I LOVE YOU LILOVE YOU I LOVE YOU PLEAWSEE MERGE THIS

@nakst nakst merged commit 9c16864 into nakst:master Feb 4, 2025
1 check passed
@nakst
Copy link
Owner

nakst commented Feb 4, 2025

Thank you for the patch!

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.

3 participants