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.

<rdar://problem/13184758>

llvm-svn: 183577
This commit is contained in:
Jim Ingham
2013-06-07 22:09:53 +00:00
parent fbbb8f32b0
commit 4e5c821087
3 changed files with 30 additions and 1 deletions

View File

@@ -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;