Skip to content

[lldb] Upstream bindings improvements #10416

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 5 commits into from
Apr 4, 2025

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Apr 3, 2025

Cherry picks of upstream lldb additions to python bindings.

First, `SRE_Pattern` does not exist on newer Python's, use
`type(re.compile(''))` like other Python extensions do. The dynamic type
is because some earlier versions of Python 3 do not have `re.Pattern`.

Second, `SBModule` has a `file` property, not a `path` property.
(cherry-picked from commit 170e1fe)
…lvm#117266)

Add a pythonic `stop_reason_data` property to `SBThread`. The property
produces a list of ints.
(cherry-picked from commit f170f5f)
…m#118814)

Introduces a `member` property to `SBValue`. This property provides pythonic access to a
value's members, by name. The expression `value.member["name"]` will be an alternate
form form of writing `value.GetChildMemberWithName("name")`.
(cherry-picked from commit 53fd724)
Adds a `selected_frame` property to `SBThread`. The setter accepts either a frame index (like `SetSelectedFrame`), or a frame object.

Updates a few tests to make use of the new `selected_frame`. While doing so I noticed some of the usage could be cleaned up, so I did that too.

(cherry picked from commit 7293455)
@kastiglione kastiglione requested a review from a team as a code owner April 3, 2025 18:24
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test macOS

1 similar comment
@kastiglione
Copy link
Author

@swift-ci test macOS

@kastiglione kastiglione merged commit bddce88 into stable/20240723 Apr 4, 2025
3 checks passed
@kastiglione kastiglione deleted the lldb-bindings-cherry-picks branch April 4, 2025 03:45
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.

1 participant