summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmdCmdThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdCmdThread.cpp')
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdThread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/tools/lldb-mi/MICmdCmdThread.cpp b/lldb/tools/lldb-mi/MICmdCmdThread.cpp
index 52fd9605063..3d893b810e2 100644
--- a/lldb/tools/lldb-mi/MICmdCmdThread.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdThread.cpp
@@ -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);
OpenPOWER on IntegriCloud