[Lldb-commits] [lldb] [lldb] Add missing calls to SetThreadHitBreakpointSite/DetectThreadStoppedAtUnexecutedBP (PR #128726)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 26 07:04:39 PST 2025


================
@@ -462,6 +462,10 @@ void Thread::ResetStopInfo() {
 }
 
 void Thread::SetStopInfo(const lldb::StopInfoSP &stop_info_sp) {
+  if (stop_info_sp &&
+      stop_info_sp->GetStopReason() == lldb::eStopReasonBreakpoint)
+    SetThreadHitBreakpointSite();
----------------
JDevlieghere wrote:

Seems like you could move this after the `m_stop_info_sp` check a few lines below. 

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


More information about the lldb-commits mailing list