================
@@ -16,6 +16,28 @@ def setUp(self):
             self.broadcaster, lldb.SBDebugger.eBroadcastBitProgress
         )
 
+    def test_wait_attach_progress_reporting(self):
+        """Test that progress reports for wait attaching work as intended."""
+        target = self.dbg.CreateTarget(None)
+
+        # The waiting to attach progress message will get emitted upon
+        # trying to attach, but it's not going to be the event picked
+        # up by checking with fetch_next_event, so go through all emitted
+        # progres events and check that the waiting to attach one was emitted 
at all.
+        target.AttachToProcessWithName(
+            self.listener,
+            "a.out",
----------------
DavidSpickett wrote:

Does this not bring back the previous problem that sometimes there will be an 
a.out process and attaching to it may get in the way of something else trying 
to debug it?

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

Reply via email to