[Lldb-commits] [lldb] Reland "[lldb][target] Add progress report for wait-attaching to proc… (PR #145111)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 25 01:25:10 PDT 2025
================
@@ -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
More information about the lldb-commits
mailing list