Skip to content

Conversation

@jimingham
Copy link

…expression"

We were checking "WasTheLastResumeForUserExpression" but that returns true even if that expression was completed, provided we haven't run again. This uses a better check.

This is actually fairly hard to trigger. It happens the first time you hit an objc_exception_throw breakpoint and invoke that frame recognizer for that. But I couldn't trigger it using a Python based frame recognizer. So I wrote a test for the objc_exception_throw_breakpoint recognizer which should have been there anyway... It fails (the target auto-continues) w/o this patch and succeeds with it.

Differential Revision: https://reviews.llvm.org/D147587

(cherry picked from commit f79c037)

…expression"

We were checking "WasTheLastResumeForUserExpression" but that returns true even
if that expression was completed, provided we haven't run again.  This uses a
better check.

This is actually fairly hard to trigger.  It happens the first time you hit an
objc_exception_throw breakpoint and invoke that frame recognizer for that.  But
I couldn't trigger it using a Python based frame recognizer.  So I wrote a test
for the objc_exception_throw_breakpoint recognizer which should have been there
anyway...  It fails (the target auto-continues) w/o this patch and succeeds with
it.

Differential Revision: https://reviews.llvm.org/D147587

(cherry picked from commit f79c037)
@jimingham
Copy link
Author

@swift-ci please test

@jimingham
Copy link
Author

The test was failing because it relies on a lldbtest feature that isn't on the branch. I disabled that portion of the test.

@jimingham
Copy link
Author

@swift-ci please test

@shahmishal
Copy link
Member

@swift-ci please test Windows

@JDevlieghere JDevlieghere merged commit 65f2547 into swiftlang:swift/release/5.9 Apr 12, 2023
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