summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-02-26 11:37:21 +0000
committerTamas Berghammer <tberghammer@google.com>2015-02-26 11:37:21 +0000
commit2d52afd71c1cf28fbf6fc314d6962ed7b9a4cdac (patch)
tree0658fe5d7cf49966370a894f42152a05bb96d40f /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
parentbeaa322c36e3cc00652bac081f91feaad29b80f3 (diff)
downloadbcm5719-llvm-2d52afd71c1cf28fbf6fc314d6962ed7b9a4cdac.tar.gz
bcm5719-llvm-2d52afd71c1cf28fbf6fc314d6962ed7b9a4cdac.zip
Increase default packet timeout for android to 20s
Differential revision: http://reviews.llvm.org/D7853 llvm-svn: 230626
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
index 887d3de424e..e2b459196a7 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
@@ -43,6 +43,12 @@
using namespace lldb;
using namespace lldb_private;
+#ifdef __ANDROID__
+ const static uint32_t g_default_packet_timeout_sec = 20; // seconds
+#else
+ const static uint32_t g_default_packet_timeout_sec = 0; // not specified
+#endif
+
//----------------------------------------------------------------------
// GDBRemoteCommunicationServerCommon constructor
//----------------------------------------------------------------------
@@ -241,6 +247,9 @@ GDBRemoteCommunicationServerCommon::Handle_qHostInfo (StringExtractorGDBRemote &
}
#endif // #if defined(__APPLE__)
+ if (g_default_packet_timeout_sec > 0)
+ response.Printf ("default_packet_timeout:%u;", g_default_packet_timeout_sec);
+
return SendPacketNoLock (response.GetData(), response.GetSize());
}
OpenPOWER on IntegriCloud