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

gdb-stubs fixes #9439

Merged
merged 4 commits into from Jan 5, 2023
Merged

gdb-stubs fixes #9439

merged 4 commits into from Jan 5, 2023

Conversation

bzoracler
Copy link
Contributor

This PR provides a few minor fixes to the gdb stubs.

I've mainly referenced an unofficial mirror https://github.com/bminor/binutils-gdb/tree/gdb-12-branch in the commit notes, although when I checked these locally, I've used apt's distribution of gdb 12.1 (/usr/share/gdb/python/) for Ubuntu 22.04. The official git https://www.sourceware.org/gdb/current/ is less accessible when cross-checking.

Symbols available in the built-in module _gdb (accessible when running Python through gdb) can be double-checked by running stubgen inside gdb (although the function/method signatures suffers the same issues as python/mypy#14094).

$ gdb --eval-command=python-interactive
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
  ...
Type "apropos word" to search for commands related to "word".
>>> import sys, mypy.stubgen
>>> sys.argv = ["stubgen", "-m", "_gdb"]
>>> mypy.stubgen.main()
Processed 1 modules
Generated out/_gdb.pyi

@github-actions

This comment has been minimized.

@AlexWaygood
Copy link
Member

@pmderodat, could you possibly take a look? :)

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@pmderodat
Copy link
Contributor

Hello!

The changes look conform both to GDB’s doc and to its implementation, so this looks good to me, thanks!

@AlexWaygood AlexWaygood merged commit dfe844c into python:main Jan 5, 2023
@AlexWaygood
Copy link
Member

Hello!

The changes look conform both to GDB’s doc and to its implementation, so this looks good to me, thanks!

Thank you!

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.

None yet

3 participants