diff options
author | Pavel Labath <labath@google.com> | 2016-11-25 11:58:44 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-25 11:58:44 +0000 |
commit | c4063eee0d9ad122bb346a6c9a8e9546e24c1291 (patch) | |
tree | ccb88653e0257b85b225a6898314fbc3ffe1eb01 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 8424b03d002ab3069192d0ba5bac32168df228e9 (diff) | |
download | bcm5719-llvm-c4063eee0d9ad122bb346a6c9a8e9546e24c1291.tar.gz bcm5719-llvm-c4063eee0d9ad122bb346a6c9a8e9546e24c1291.zip |
Introduce chrono to the Communication class
This replaces the raw integer timeout parameters in the class with their
chrono-based equivalents. To achieve this, I have moved the Timeout class to a
more generic place and added a quick unit test for it.
llvm-svn: 287920
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index c26345452fe..bd87521fe6e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -332,9 +332,7 @@ GDBRemoteCommunication::WaitForPacketNoLock(StringExtractorGDBRemote &packet, bool disconnected = false; while (IsConnected() && !timed_out) { lldb::ConnectionStatus status = eConnectionStatusNoConnection; - size_t bytes_read = - Read(buffer, sizeof(buffer), timeout ? timeout->count() : UINT32_MAX, - status, &error); + size_t bytes_read = Read(buffer, sizeof(buffer), timeout, status, &error); if (log) log->Printf("%s: Read (buffer, (sizeof(buffer), timeout = %ld us, " |