================
@@ -442,10 +468,15 @@ def process_until_match():
                 if predicate and predicate(packet):
                     self._pending_packets.pop(i)
                     return packet
+            return False
 
         with self._recv_condition:
             packet = self._recv_condition.wait_for(process_until_match, 
timeout)
-            return None if isinstance(packet, EOFError) else packet
+            if isinstance(packet, EOFError):
+                raise EOFError
+            if not packet:
+                raise TimeoutError
+            return cast(ProtocolMessage, packet)
----------------
da-viper wrote:

could we catch this is `_send_recv` and append the request to give more 
information on why we raised the exception. 

https://github.com/llvm/llvm-project/pull/178041
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to