[Lldb-commits] [lldb] [lldb] Support custom LLVM formatting for variables (PR #81196)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 20 09:16:28 PDT 2024


================
@@ -0,0 +1,11 @@
+import lldb
+from lldbsuite.test.lldbtest import *
+import lldbsuite.test.lldbutil as lldbutil
+
+
+class TestCase(TestBase):
+    def test(self):
+        self.build()
+        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
+        self.runCmd("type summary add -s '${var.ubyte:x-2}${var.sbyte:x-2}!' Bytes")
+        self.expect("v bytes", substrs=[" = 1001!"])
----------------
adrian-prantl wrote:

We also need some tests for ill-formatted inputs.

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


More information about the lldb-commits mailing list