[Lldb-commits] [lldb] r213007 - If Process::Finalize() has been called, don't track process state changes.

Greg Clayton gclayton at apple.com
Mon Jul 14 16:09:29 PDT 2014


Author: gclayton
Date: Mon Jul 14 18:09:29 2014
New Revision: 213007

URL: http://llvm.org/viewvc/llvm-project?rev=213007&view=rev
Log:
If Process::Finalize() has been called, don't track process state changes.

<rdar://problem/17540766>


Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=213007&r1=213006&r2=213007&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Mon Jul 14 18:09:29 2014
@@ -1413,6 +1413,9 @@ Process::GetPrivateState ()
 void
 Process::SetPrivateState (StateType new_state)
 {
+    if (m_finalize_called)
+        return;
+
     Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STATE | LIBLLDB_LOG_PROCESS));
     bool state_changed = false;
 





More information about the lldb-commits mailing list