[Lldb-commits] [lldb] r137256 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Greg Clayton gclayton at apple.com
Wed Aug 10 15:05:39 PDT 2011


Author: gclayton
Date: Wed Aug 10 17:05:39 2011
New Revision: 137256

URL: http://llvm.org/viewvc/llvm-project?rev=137256&view=rev
Log:
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.


Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=137256&r1=137255&r2=137256&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Wed Aug 10 17:05:39 2011
@@ -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)
             {





More information about the lldb-commits mailing list