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

[cherry-pick][lldb] Remove unfiltered stop reason propagation from StopInfoMachException (#122817) #9830

Conversation

felipepiovezan
Copy link

In the presence of OS plugins, StopInfoMachException currently propagates breakpoint stop reasons even if those breakpoints were not intended for a specific thread, effectively removing our ability to set thread-specific breakpoints.

This was originally added in 1, but the motivation provided in the comment does not seem strong enough to remove the ability to set thread-specific breakpoints. The only way to break thread specific breakpoints would be if a user set such a breakpoint and then loaded an OS plugin, a scenario which we would likely not want to support.

(cherry picked from commit 5dcf5cc)

…eption (llvm#122817)

In the presence of OS plugins, StopInfoMachException currently
propagates breakpoint stop reasons even if those breakpoints were not
intended for a specific thread, effectively removing our ability to set
thread-specific breakpoints.

This was originally added in [1], but the motivation provided in the
comment does not seem strong enough to remove the ability to set
thread-specific breakpoints. The only way to break thread specific
breakpoints would be if a user set such a breakpoint and _then_ loaded
an OS plugin, a scenario which we would likely not want to support.

[1]:
swiftlang@ab745c2#diff-8ec6e41b1dffa7ac4b5841aae24d66442ef7ebc62c8618f89354d84594f91050R501

(cherry picked from commit 5dcf5cc)
@felipepiovezan felipepiovezan requested a review from a team as a code owner January 14, 2025 19:33
@felipepiovezan
Copy link
Author

@swift-ci test

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this change be made upstream?

@felipepiovezan
Copy link
Author

Shouldn't this change be made upstream?

It was already done (see the cherry-pick link at the end of the PR / commit messages)

@felipepiovezan
Copy link
Author

Argh, Github tries to be helpful and transforms the commit link into a link inside the swift fork...

Anyhow, here's the original review llvm#122817

@adrian-prantl adrian-prantl merged commit 14c8403 into swiftlang:swift/release/6.1 Jan 15, 2025
3 checks passed
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

2 participants