Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proc: skip trapthread for harcoded breakpoints after manual stop (#3582)
When using debugserver as a backend a manual stop request can end up looking like an hardcoded breakpoint if the thread that receives the stop request happens to be stopped right after a hardcoded breakpoint (and the space between functions is filled with hardcoded breakpoints). When creating hardcoded breakpoints we should ignore the trapthread if a manual stop has been requested. This problem made TestSetBreakpointWhileRunning and TestSetFunctionBreakpointWhileRunning fail on macOS between 1.7% and 6% of the time. TestIssue1376 in rr_test.go used to pass accidentally, the stop when the start of the recording was reached was mistaken for a hardcoded breakpoint.
- Loading branch information