From 03772dd87b4826c16ee46920241fab3f747dfca7 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 25 Jul 2018 15:20:15 +0000 Subject: [PATCH] [ProcessGDBRemote] handle result from ConnectToDebugserver We ignored the result from ConnectToDebugserver, causing certain errors (like a failed handshake) not to surface. llvm-svn: 337932 --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 547dd0d..b3d33b1 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -3484,7 +3484,7 @@ Status ProcessGDBRemote::LaunchAndConnectToDebugserver( if (m_gdb_comm.IsConnected()) { // Finish the connection process by doing the handshake without // connecting (send NULL URL) - ConnectToDebugserver(""); + error = ConnectToDebugserver(""); } else { error.SetErrorString("connection failed"); } -- 2.7.4