[Lldb-commits] [lldb] [lldb] Keep the unexpected b/p state for suspended threads (PR #174264)

Igor Kudrin via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 6 16:54:09 PST 2026


================
@@ -739,12 +739,12 @@ bool Thread::ShouldResume(StateType resume_state) {
 
     if (need_to_resume && resume_state != eStateSuspended) {
----------------
igorkudrin wrote:

> Presumably, you could also fix this by going through ALL the threads every time we stop and resetting the m_stopped_at_unexecuted_bp?

This would not work in the scenario in question because, when we stop after stepping over a breakpoint for thread `B`, the breakpoint is disabled by `ThreadPlanStepOverBreakpoint`, meaning that the suspended thread `A` would have no reason to set `m_stopped_at_unexecuted_bp`.

https://github.com/llvm/llvm-project/pull/174264


More information about the lldb-commits mailing list