Changeset View
Changeset View
Standalone View
Standalone View
tools/lldb-mi/MICmdCmdTarget.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | bool CMICmdCmdTargetSelect::Execute() { | ||||
// Ask LLDB to collect to the target port | // Ask LLDB to collect to the target port | ||||
const char *pPlugin("gdb-remote"); | const char *pPlugin("gdb-remote"); | ||||
lldb::SBError error; | lldb::SBError error; | ||||
lldb::SBProcess process = rSessionInfo.GetTarget().ConnectRemote( | lldb::SBProcess process = rSessionInfo.GetTarget().ConnectRemote( | ||||
rSessionInfo.GetListener(), strUrl.c_str(), pPlugin, error); | rSessionInfo.GetListener(), strUrl.c_str(), pPlugin, error); | ||||
// Verify that we have managed to connect successfully | // Verify that we have managed to connect successfully | ||||
lldb::SBStream errMsg; | lldb::SBStream errMsg; | ||||
error.GetDescription(errMsg); | |||||
abidh: This does not seem related to any bug fix. | |||||
Not Done ReplyInline ActionsI didn't create a bug report for this since it's not a big deal. But it's rather annoying when debugging because the actual error description never gets to the output. aetf: I didn't create a bug report for this since it's not a big deal. But it's rather annoying when… | |||||
if (!process.IsValid()) { | if (!process.IsValid()) { | ||||
SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_INVALID_TARGET_PLUGIN), | SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_INVALID_TARGET_PLUGIN), | ||||
m_cmdData.strMiCmd.c_str(), | m_cmdData.strMiCmd.c_str(), | ||||
errMsg.GetData())); | errMsg.GetData())); | ||||
return MIstatus::failure; | return MIstatus::failure; | ||||
} | } | ||||
if (error.Fail()) { | if (error.Fail()) { | ||||
SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_CONNECT_TO_TARGET), | SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_CONNECT_TO_TARGET), | ||||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |
This does not seem related to any bug fix.