Fix usage of m_bThreadInvalid in -thread-info (MI)

llvm-svn: 229868
This commit is contained in:
Ilia K 2015-02-19 16:33:16 +00:00
parent d4f232f03c
commit be5680f985
1 changed files with 3 additions and 3 deletions

View File

@ -105,8 +105,8 @@ CMICmdCmdThreadInfo::Execute(void)
if (m_bSingleThread)
{
thread = sbProcess.GetThreadByIndexID(nThreadId);
m_bThreadInvalid = thread.IsValid();
if (!m_bThreadInvalid)
m_bThreadInvalid = !thread.IsValid();
if (m_bThreadInvalid)
return MIstatus::success;
CMICmnMIValueTuple miTuple;
@ -151,7 +151,7 @@ CMICmdCmdThreadInfo::Acknowledge(void)
{
if (m_bSingleThread)
{
if (!m_bThreadInvalid)
if (m_bThreadInvalid)
{
const CMICmnMIValueConst miValueConst("invalid thread id");
const CMICmnMIValueResult miValueResult("msg", miValueConst);