From 4e5c821087d02c7e32e4ba5949d9217b690cbbad Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 7 Jun 2013 22:09:53 +0000 Subject: Don't retry the Connect when starting up debugserver if the reason for the previous failure was EINTR. That means the user was trying to interrupt us, and we should just stop instead. llvm-svn: 183577 --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp') 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; -- cgit v1.2.3