Changeset View
Changeset View
Standalone View
Standalone View
source/Interpreter/CommandObject.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | if (flags & (eFlagRequiresTarget | | ||||
if ((flags & eFlagRequiresThread) && !m_exe_ctx.HasThreadScope()) | if ((flags & eFlagRequiresThread) && !m_exe_ctx.HasThreadScope()) | ||||
{ | { | ||||
result.AppendError (GetInvalidThreadDescription()); | result.AppendError (GetInvalidThreadDescription()); | ||||
return false; | return false; | ||||
} | } | ||||
if ((flags & eFlagRequiresFrame) && !m_exe_ctx.HasFrameScope()) | if ((flags & eFlagRequiresFrame) && !m_exe_ctx.HasFrameScope()) | ||||
{ | { | ||||
if (!m_exe_ctx.HasTargetScope()) result.AppendError (GetInvalidTargetDescription()); | |||||
if (!m_exe_ctx.HasProcessScope()) result.AppendError (GetInvalidProcessDescription()); | |||||
if (!m_exe_ctx.HasThreadScope()) result.AppendError (GetInvalidThreadDescription()); | |||||
result.AppendError (GetInvalidFrameDescription()); | result.AppendError (GetInvalidFrameDescription()); | ||||
return false; | return false; | ||||
} | } | ||||
if ((flags & eFlagRequiresRegContext) && (m_exe_ctx.GetRegisterContext() == nullptr)) | if ((flags & eFlagRequiresRegContext) && (m_exe_ctx.GetRegisterContext() == nullptr)) | ||||
{ | { | ||||
result.AppendError (GetInvalidRegContextDescription()); | result.AppendError (GetInvalidRegContextDescription()); | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 913 Lines • Show Last 20 Lines |