Skip to content

Add global_context keyword to gdb.parse_and_eval in GDB stub. #12269

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

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

mbrla0
Copy link
Contributor

@mbrla0 mbrla0 commented Jul 3, 2024

This PR is a change to the GDB stub which adds the global_context keyword argument to the gdb.parse_and_eval function, as described in the documentation. This keyword argument got added in GDB 14.

The fact this keyword argument is missing makes the lint run in a currently open Pwndbg PR fail.

Copy link
Contributor

github-actions bot commented Jul 3, 2024

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

@JelleZijlstra JelleZijlstra merged commit e67340b into python:main Jul 3, 2024
48 checks passed
@peace-maker
Copy link
Contributor

The type stubs are for gdb 12.1 which is the version shipped with Ubuntu 22.04. CI tests against ubuntu-latest, which is 22.04 at the moment. Now I'm wondering why this change didn't trip stubtest.

There are more changes in later gdb versions than this.

max-muoto pushed a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
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