summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-05-20 00:30:31 +0000
committerSiva Chandra <sivachandra@google.com>2015-05-20 00:30:31 +0000
commit8fd94c9e6834d030bb623c75b3ffed66dc08d4df (patch)
tree037d2ae5e27cc88cb5c763ff3d457d6746a43b90 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentccbcf7cfd3ee02d11d9c904e331d799c69be27c9 (diff)
downloadbcm5719-llvm-8fd94c9e6834d030bb623c75b3ffed66dc08d4df.tar.gz
bcm5719-llvm-8fd94c9e6834d030bb623c75b3ffed66dc08d4df.zip
[GDBRemoteCommunicationClient] Increase timeout for qfProcessInfo packet.
Summary: The test in TestPlatformCommand which runs "platform process list" has been timing out for Android when running running dosep.py with LLDB_TEST_THREADS=8. This patch increases the packet timeout to a large value of 1min to accommodate the long time required for a response for the qfProcessInfo packet on Android. Test Plan: LLDB_TEST_THREADS=8 ./dosep.py on Android. Reviewers: chaoren Reviewed By: chaoren Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D9866 llvm-svn: 237752
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index ca74e55b439..7d33658a31c 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -2694,6 +2694,9 @@ GDBRemoteCommunicationClient::FindProcesses (const ProcessInstanceInfoMatch &mat
}
}
StringExtractorGDBRemote response;
+ // Increase timeout as the first qfProcessInfo packet takes a long time
+ // on Android. The value of 1min was arrived at empirically.
+ GDBRemoteCommunication::ScopedTimeout timeout (*this, 60);
if (SendPacketAndWaitForResponse (packet.GetData(), packet.GetSize(), response, false) == PacketResult::Success)
{
do
OpenPOWER on IntegriCloud