[Lldb-commits] [lldb] r229868 - Fix usage of m_bThreadInvalid in -thread-info (MI)

Ilia K ki.stfu at gmail.com
Thu Feb 19 08:33:17 PST 2015


Author: ki.stfu
Date: Thu Feb 19 10:33:16 2015
New Revision: 229868

URL: http://llvm.org/viewvc/llvm-project?rev=229868&view=rev
Log:
Fix usage of m_bThreadInvalid in -thread-info (MI)


Modified:
    lldb/trunk/tools/lldb-mi/MICmdCmdThread.cpp

Modified: lldb/trunk/tools/lldb-mi/MICmdCmdThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmdCmdThread.cpp?rev=229868&r1=229867&r2=229868&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmdCmdThread.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmdCmdThread.cpp Thu Feb 19 10:33:16 2015
@@ -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);





More information about the lldb-commits mailing list