Changeset View
Changeset View
Standalone View
Standalone View
tools/lldb-mi/MICmdCmdEnviro.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | if (!m_rLLDBDebugSessionInfo.SharedDataAdd<CMIUtilString>(rStrKeyWkDir, | ||||
rStrKeyWkDir.c_str())); | rStrKeyWkDir.c_str())); | ||||
bOk = MIstatus::failure; | bOk = MIstatus::failure; | ||||
} | } | ||||
} else | } else | ||||
SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_FNFAILED), | SetError(CMIUtilString::Format(MIRSRC(IDS_CMD_ERR_FNFAILED), | ||||
m_cmdData.strMiCmd.c_str(), | m_cmdData.strMiCmd.c_str(), | ||||
"SetCurrentPlatformSDKRoot()")); | "SetCurrentPlatformSDKRoot()")); | ||||
lldb::SBTarget sbTarget = m_rLLDBDebugSessionInfo.GetTarget(); | |||||
if (sbTarget.IsValid()) { | |||||
lldb::SBLaunchInfo sbLaunchInfo = sbTarget.GetLaunchInfo(); | |||||
sbLaunchInfo.SetWorkingDirectory(strWkDir.c_str()); | |||||
sbTarget.SetLaunchInfo(sbLaunchInfo); | |||||
} | |||||
return bOk; | return bOk; | ||||
} | } | ||||
//++ | //++ | ||||
//------------------------------------------------------------------------------------ | //------------------------------------------------------------------------------------ | ||||
// Details: The invoker requires this function. The command prepares a MI Record | // Details: The invoker requires this function. The command prepares a MI Record | ||||
// Result | // Result | ||||
// for the work carried out in the Execute(). | // for the work carried out in the Execute(). | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |