Index: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp =================================================================== --- source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -40,6 +40,12 @@ using namespace lldb; using namespace lldb_private; +#ifdef __ANDROID__ + static uint32_t g_default_packet_timeout = 20; // seconds +#else + static uint32_t g_default_packet_timeout = 0; // not specified +#endif + //---------------------------------------------------------------------- // GDBRemoteCommunicationServerCommon constructor //---------------------------------------------------------------------- @@ -236,6 +242,9 @@ } #endif // #if defined(__APPLE__) + if (g_default_packet_timeout > 0) + response.Printf ("default_packet_timeout:%u;", g_default_packet_timeout); + return SendPacketNoLock (response.GetData(), response.GetSize()); }