[Lldb-commits] [lldb] [LLDB] Display artificial __promise and __coro_frame variables. (PR #71928)

Haojian Wu via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 13 00:31:24 PST 2023


================
@@ -78,8 +78,19 @@ def do_test(self, stdlib_type):
                 ],
             )
 
-        # Run until after the `co_yield`
         process = self.process()
+
+        # Break at a coroutine body
+        lldbutil.continue_to_source_breakpoint(
+          self, process, "// Break at co_yield", lldb.SBFileSpec("main.cpp", False)
----------------
hokein wrote:

Do you mean we run the lldb command like `self.runCmd("break my_generator_func")` to stop at a break point?

BTW, this file is using this `continue_to_source_breakpoint ` pattern in other places, I was following this pattern.  





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


More information about the lldb-commits mailing list