https://github.com/rHermes created 
https://github.com/llvm/llvm-project/pull/176651

This commit adds a missing "UpdateName()" call to the 
`BreakpointName::SetEnabled` method, to make sure changes are synced.

I don't know if this was left out on purpose, if so, feel free to close this, 
though I think it should be documented in that case, that the this behavior 
does not act like the others.

From a7105be5dbf7e31119d43a954581790d610f26c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Teodor=20Sp=C3=A6ren?= <[email protected]>
Date: Sun, 18 Jan 2026 14:57:25 +0000
Subject: [PATCH] Make BreakpointName::SetEnable() changes propagate to
 breakpoints

This commit adds a missing "UpdateName()" call to the 
`BreakpointName::SetEnabled` method, to make sure changes are synced.
---
 lldb/source/API/SBBreakpointName.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/source/API/SBBreakpointName.cpp 
b/lldb/source/API/SBBreakpointName.cpp
index 0b588c38d5114..cf045e87b338a 100644
--- a/lldb/source/API/SBBreakpointName.cpp
+++ b/lldb/source/API/SBBreakpointName.cpp
@@ -213,6 +213,7 @@ void SBBreakpointName::SetEnabled(bool enable) {
         m_impl_up->GetTarget()->GetAPIMutex());
 
   bp_name->GetOptions().SetEnabled(enable);
+  UpdateName(*bp_name);
 }
 
 void SBBreakpointName::UpdateName(BreakpointName &bp_name) {

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to