Include the qLaunchSuccess and qC packets in the 
10 second timeout zone. When launching we increase the
timeout to 10 seconds to ensure we have time to launch a
process, and then set it back.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137256 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index b1a48b2..6396714 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -531,7 +531,6 @@
 
             const uint32_t old_packet_timeout = m_gdb_comm.SetPacketTimeout (10);
             int arg_packet_err = m_gdb_comm.SendArgumentsPacket (argv);
-            m_gdb_comm.SetPacketTimeout (old_packet_timeout);
             if (arg_packet_err == 0)
             {
                 std::string error_str;
@@ -548,6 +547,8 @@
             {
                 error.SetErrorStringWithFormat("'A' packet returned an error: %i.\n", arg_packet_err);
             }
+            
+            m_gdb_comm.SetPacketTimeout (old_packet_timeout);
                 
             if (GetID() == LLDB_INVALID_PROCESS_ID)
             {