summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-10-31 17:19:42 +0000
committerPavel Labath <labath@google.com>2016-10-31 17:19:42 +0000
commit3aa049102fd0e80600622b29fde5c973b6138cf4 (patch)
tree79e72fbdb30dbc35a2b0539ead1d366bb923517d /lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
parentd1b54492cdef8bbaf84097d44901ba5a123e9947 (diff)
downloadbcm5719-llvm-3aa049102fd0e80600622b29fde5c973b6138cf4.tar.gz
bcm5719-llvm-3aa049102fd0e80600622b29fde5c973b6138cf4.zip
Remove usages of TimeValue from gdb-remote process plugin
Summary: Most of the changes are very straight-forward, the only tricky part was the "packet speed-test" function, which is very time-heavy. As the function was completely untested, I added a quick unit smoke test for it. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D25391 llvm-svn: 285602
Diffstat (limited to 'lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp')
-rw-r--r--lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
index 760ee77b1df..8b9972f9da2 100644
--- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
+++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
@@ -445,7 +445,7 @@ Error PlatformRemoteGDBServer::LaunchProcess(ProcessLaunchInfo &launch_info) {
{
// Scope for the scoped timeout object
process_gdb_remote::GDBRemoteCommunication::ScopedTimeout timeout(
- m_gdb_client, 5);
+ m_gdb_client, std::chrono::seconds(5));
arg_packet_err = m_gdb_client.SendArgumentsPacket(launch_info);
}
OpenPOWER on IntegriCloud