summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2017-04-14 17:10:04 +0000
committerGreg Clayton <gclayton@apple.com>2017-04-14 17:10:04 +0000
commit70a9f511c2b5ce28c1d859ea4ff5bfa8241a0ee0 (patch)
tree8748d63cf316561f080514d69f3c185f66afa213 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentdb1550ab66c4eea29763d85f1262faaca5066353 (diff)
downloadbcm5719-llvm-70a9f511c2b5ce28c1d859ea4ff5bfa8241a0ee0.tar.gz
bcm5719-llvm-70a9f511c2b5ce28c1d859ea4ff5bfa8241a0ee0.zip
Increase the packet timeout for the jModulesInfo since it can take longer than the default 1 second timeout on some linux versions when many shared libraries are involved.
llvm-svn: 300342
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 8aa78a4d5ed..2e94fa94331 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -3270,6 +3270,9 @@ GDBRemoteCommunicationClient::GetModulesInfo(
payload.PutEscapedBytes(unescaped_payload.GetString().data(),
unescaped_payload.GetSize());
+ // Increase the timeout for jModulesInfo since this packet can take longer.
+ ScopedTimeout timeout(*this, std::chrono::seconds(10));
+
StringExtractorGDBRemote response;
if (SendPacketAndWaitForResponse(payload.GetString(), response, false) !=
PacketResult::Success ||
OpenPOWER on IntegriCloud