Changeset View
Changeset View
Standalone View
Standalone View
tools/lldb-mi/MICmdCmdVar.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | CMICmdCmdVarCreate::Execute() | ||||
lldb::SBProcess sbProcess = rSessionInfo.GetProcess(); | lldb::SBProcess sbProcess = rSessionInfo.GetProcess(); | ||||
lldb::SBThread thread = (nThreadId != UINT64_MAX) ? sbProcess.GetThreadByIndexID(nThreadId) : sbProcess.GetSelectedThread(); | lldb::SBThread thread = (nThreadId != UINT64_MAX) ? sbProcess.GetThreadByIndexID(nThreadId) : sbProcess.GetSelectedThread(); | ||||
m_nThreadId = thread.GetIndexID(); | m_nThreadId = thread.GetIndexID(); | ||||
lldb::SBFrame frame = bCurrentFrame ? thread.GetSelectedFrame() : thread.GetFrameAtIndex(nFrame); | lldb::SBFrame frame = bCurrentFrame ? thread.GetSelectedFrame() : thread.GetFrameAtIndex(nFrame); | ||||
lldb::SBValue value; | lldb::SBValue value; | ||||
if (rStrExpression[0] == '$') | if (rStrExpression[0] == '$') | ||||
{ | { | ||||
const CMIUtilString rStrRegister(rStrExpression.substr(1).c_str()); | const CMIUtilString rStrRegister(rStrExpression.substr(1)); | ||||
value = frame.FindRegister(rStrRegister.c_str()); | value = frame.FindRegister(rStrRegister.c_str()); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
const bool bArgs = true; | const bool bArgs = true; | ||||
const bool bLocals = true; | const bool bLocals = true; | ||||
const bool bStatics = true; | const bool bStatics = true; | ||||
const bool bInScopeOnly = false; | const bool bInScopeOnly = false; | ||||
▲ Show 20 Lines • Show All 1,321 Lines • Show Last 20 Lines |