[Lldb-commits] [lldb] r230626 - Increase default packet timeout for android to 20s
Tamas Berghammer
tberghammer at google.com
Thu Feb 26 03:37:21 PST 2015
Author: tberghammer
Date: Thu Feb 26 05:37:21 2015
New Revision: 230626
URL: http://llvm.org/viewvc/llvm-project?rev=230626&view=rev
Log:
Increase default packet timeout for android to 20s
Differential revision: http://reviews.llvm.org/D7853
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp?rev=230626&r1=230625&r2=230626&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp Thu Feb 26 05:37:21 2015
@@ -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::Hand
}
#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());
}
More information about the lldb-commits
mailing list