================ @@ -612,7 +612,16 @@ def request_attach( if gdbRemoteHostname is not None: args_dict["gdb-remote-hostname"] = gdbRemoteHostname command_dict = {"command": "attach", "type": "request", "arguments": args_dict} - return self.send_recv(command_dict) + response = self.send_recv(command_dict) + + if response["success"]: + # Wait for a 'process' and 'initialized' event in any order + first_event = self.wait_for_event(filter=["process", "initialized"]) + second_event = ( + "initialized" if first_event["event"] == "process" else "process" + ) + self.wait_for_event(filter=[second_event]) ---------------- kusmour wrote:
Yes! Updated https://github.com/llvm/llvm-project/pull/137278 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits