[Lldb-commits] [lldb] Make SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again. (PR #162370)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 7 14:45:54 PDT 2025


================
@@ -1,10 +1,15 @@
-add_lldb_unittest(LLDBBreakpointTests
+add_lldb_unittest(LLDBBreakpointTests      
   BreakpointIDTest.cpp
+  BreakpointClearConditionTest.cpp
   WatchpointAlgorithmsTests.cpp
 
   LINK_COMPONENTS
     Support
   LINK_LIBS
+    liblldb
----------------
JDevlieghere wrote:

When you mix static and dynamic libraries that contain the same code, you end up with two copies of the same symbols which leads to various hard-to-debug issues (like having two copies of globals). When you say it "works" you mean you don't notice any of these issues for this particular test, but that doesn't make it any less wrong :-) 

I like the idea of enforcing this at the CMake layer. I've filed: https://github.com/llvm/llvm-project/issues/162378

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


More information about the lldb-commits mailing list