Skip to content

[cherry-pick][lldb][swift] Swift OS Plugin #10001

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

Conversation

felipepiovezan
Copy link

Cherry-pick of #9839

This is here mostly out of an abundance of caution, the default is to
use the plugins.

(cherry picked from commit 62b2f52)
This commit introduces an OS plugin converting Process threads into
OperatingSystem threads that represent a Task. This is done by
inspecting ThreadLocalStorage for a specific location where the swift
runtime writes information about the current Task.

With this plugin, ThreadPlans now work properly in async code: a step
action on a Thread is now effectively an action on a Task, and LLDB will
correctly track that. ThreadPlans are effectively "Task Plans".

(cherry picked from commit dd46e67)
@felipepiovezan felipepiovezan merged commit ad92ad0 into swiftlang:next Feb 11, 2025
@felipepiovezan felipepiovezan deleted the felipe/cherry-pick-os-plugins-to-next branch February 11, 2025 18:50
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