summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmdCmdThread.cpp
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-02-19 16:33:16 +0000
committerIlia K <ki.stfu@gmail.com>2015-02-19 16:33:16 +0000
commitbe5680f98553854eb637d5113374cd20772ab342 (patch)
treeb23e818d7a116e4379b9bd6c2f01a5290de7d368 /lldb/tools/lldb-mi/MICmdCmdThread.cpp
parentd4f232f03c96b66e3ae8bb572e7ee0edd7332077 (diff)
downloadbcm5719-llvm-be5680f98553854eb637d5113374cd20772ab342.tar.gz
bcm5719-llvm-be5680f98553854eb637d5113374cd20772ab342.zip
Fix usage of m_bThreadInvalid in -thread-info (MI)
llvm-svn: 229868
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