| Index: chrome/test/data/nacl/gdb_rsp.py
|
| diff --git a/chrome/test/data/nacl/gdb_rsp.py b/chrome/test/data/nacl/gdb_rsp.py
|
| index 28680df0dfc9a6077feffe6a46aa70f4cfa31bbc..7882517a337909b7b59bb8cdf8205fcd1337a33f 100644
|
| --- a/chrome/test/data/nacl/gdb_rsp.py
|
| +++ b/chrome/test/data/nacl/gdb_rsp.py
|
| @@ -16,6 +16,11 @@ def RspChecksum(data):
|
| return checksum
|
|
|
|
|
| +class EofOnReplyException(Exception):
|
| +
|
| + pass
|
| +
|
| +
|
| class GdbRspConnection(object):
|
|
|
| def __init__(self, addr):
|
| @@ -47,6 +52,8 @@ class GdbRspConnection(object):
|
| while True:
|
| data = self._socket.recv(1024)
|
| if len(data) == 0:
|
| + if reply == '+':
|
| + raise EofOnReplyException()
|
| raise AssertionError('EOF on socket reached with '
|
| 'incomplete reply message: %r' % reply)
|
| reply += data
|
|
|