[ProcessGDBRemote] handle result from ConnectToDebugserver
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 25 Jul 2018 15:20:15 +0000 (15:20 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 25 Jul 2018 15:20:15 +0000 (15:20 +0000)
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

index 547dd0d..b3d33b1 100644 (file)
@@ -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");
     }