forked from OSchip/llvm-project
Fix usage of m_bThreadInvalid in -thread-info (MI)
llvm-svn: 229868
This commit is contained in:
parent
d4f232f03c
commit
be5680f985
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue