forked from OSchip/llvm-project
Retry remote connection one time in case of timeout and return an error that specifies why debugging failed.
llvm-svn: 217998
This commit is contained in:
parent
bef6cd8b43
commit
56bf559253
|
@ -488,10 +488,16 @@ PlatformRemoteGDBServer::DebugProcess (lldb_private::ProcessLaunchInfo &launch_i
|
|||
port + port_offset);
|
||||
assert (connect_url_len < (int)sizeof(connect_url));
|
||||
error = process_sp->ConnectRemote (NULL, connect_url);
|
||||
// Retry the connect remote one time...
|
||||
if (error.Fail())
|
||||
error = process_sp->ConnectRemote (NULL, connect_url);
|
||||
if (error.Success())
|
||||
error = process_sp->Launch(launch_info);
|
||||
else if (debugserver_pid != LLDB_INVALID_PROCESS_ID)
|
||||
{
|
||||
printf ("error: connect remote failed (%s)\n", error.AsCString());
|
||||
m_gdb_client.KillSpawnedProcess(debugserver_pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue