================
@@ -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)
----------------
Michael137 wrote:

I'd suggest breaking on `int_generator my_generator_func`. Or something that's 
not a comment, since they aren't a reliable way to generate valid break 
locations

https://github.com/llvm/llvm-project/pull/71928
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to