diff options
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 91238049058..fab0e6569d0 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -744,8 +744,14 @@ ProcessGDBRemote::ConnectToDebugserver (const char *connect_url) m_gdb_comm.SetConnection (conn_ap.release()); break; } + else if (error.WasInterrupted()) + { + // If we were interrupted, don't keep retrying. + break; + } + retry_count++; - + if (retry_count >= max_retry_count) break; |