[Lldb-commits] [lldb] [lldb] Fix copy-paste error in SetPrivateRunLockToRunning (PR #189322)

Jim Lin via lldb-commits lldb-commits at lists.llvm.org
Sun Mar 29 23:19:50 PDT 2026


https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/189322

SetPrivateRunLockToRunning incorrectly delegated to SetPrivateRunLockToStopped instead of SetPrivateRunLockToRunning, causing the private run lock to never transition to the running state on process resume.

>From 45b445982785bcfd6ad59f24d22af322fbb0ab6e Mon Sep 17 00:00:00 2001
From: Jim Lin <jim at andestech.com>
Date: Mon, 30 Mar 2026 09:42:50 +0800
Subject: [PATCH] [lldb] Fix copy-paste error in SetPrivateRunLockToRunning

SetPrivateRunLockToRunning incorrectly delegated to
SetPrivateRunLockToStopped instead of SetPrivateRunLockToRunning,
causing the private run lock to never transition to the running
state on process resume.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
---
 lldb/include/lldb/Target/Process.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h
index 3de4e1244a09b..7fe9aa3f5ab1b 100644
--- a/lldb/include/lldb/Target/Process.h
+++ b/lldb/include/lldb/Target/Process.h
@@ -3291,7 +3291,7 @@ void PruneThreadPlans();
   bool SetPrivateRunLockToRunning() {
     assert(m_current_private_state_thread_sp);
     if (m_current_private_state_thread_sp)
-      return m_current_private_state_thread_sp->SetPrivateRunLockToStopped();
+      return m_current_private_state_thread_sp->SetPrivateRunLockToRunning();
     return false;
   }
   bool SetPublicRunLockToStopped() {



More information about the lldb-commits mailing list