From 1c6da87bc91bbdbab94f8ce6209a87658adcd10c Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 4 Feb 2014 01:28:36 +0000 Subject: If we fail to attach, return an error rather than returning the success or failure of sending the error packet. llvm-svn: 200732 --- lldb/tools/debugserver/source/RNBRemote.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/tools/debugserver/source/RNBRemote.cpp') diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index 6f60839386b..5b32ee18076 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -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; } } -- cgit v1.2.3