If we fail to attach, return an error rather than returning the success or failure

of sending the error packet.

llvm-svn: 200732
This commit is contained in:
Jim Ingham 2014-02-04 01:28:36 +00:00
parent 5e390e4df7
commit 1c6da87bc9
1 changed files with 3 additions and 1 deletions

View File

@ -3011,7 +3011,9 @@ RNBRemote::HandlePacket_v (const char *p)
m_ctx.LaunchStatus().SetErrorString(err_str);
else
m_ctx.LaunchStatus().SetErrorString("attach failed");
return SendPacket ("E01"); // E01 is our magic error value for attach failed.
SendPacket ("E01"); // E01 is our magic error value for attach failed.
DNBLogError ("Attach failed: \"%s\".", err_str);
return rnb_err;
}
}