[Lldb-commits] [lldb] [lldb] Support specifying a language for breakpoint conditions (PR #147603)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 9 09:42:30 PDT 2025


================
@@ -42,17 +52,21 @@ def setUp(self):
             "main.c", "// Find the line number of c's parent call here."
         )
 
-    def breakpoint_conditions(self, inline=False):
+    def breakpoint_conditions(self, inline=False, language=None):
         """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'."""
         exe = self.getBuildArtifact("a.out")
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
 
+        cmd_args = "-c 'val == 3'"
----------------
JDevlieghere wrote:

You're right, I changed the condition to use `nullptr` so that it fails to parse if the language is wrong.

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


More information about the lldb-commits mailing list