summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-07-25 15:20:15 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-07-25 15:20:15 +0000
commit03772dd87b4826c16ee46920241fab3f747dfca7 (patch)
tree2da5c876273287284547cad02634a4a9adc5360e /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent2f842d68df805e26b81373647b4471dd49cef8f4 (diff)
downloadbcm5719-llvm-03772dd87b4826c16ee46920241fab3f747dfca7.tar.gz
bcm5719-llvm-03772dd87b4826c16ee46920241fab3f747dfca7.zip
[ProcessGDBRemote] handle result from ConnectToDebugserver
We ignored the result from ConnectToDebugserver, causing certain errors (like a failed handshake) not to surface. llvm-svn: 337932
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 547dd0d4108..b3d33b19bd6 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");
}
OpenPOWER on IntegriCloud