[Lldb-commits] [lldb] r180927 - Clear the register context if our process is no longer alive.

Greg Clayton gclayton at apple.com
Thu May 2 10:16:01 PDT 2013


Author: gclayton
Date: Thu May  2 12:16:00 2013
New Revision: 180927

URL: http://llvm.org/viewvc/llvm-project?rev=180927&view=rev
Log:
Clear the register context if our process is no longer alive.


Modified:
    lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp?rev=180927&r1=180926&r2=180927&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp Thu May  2 12:16:00 2013
@@ -63,6 +63,10 @@ RegisterContextThreadMemory::UpdateRegis
                 }                
             }
         }
+        else
+        {
+            m_reg_ctx_sp.reset();
+        }
     }
     else
     {





More information about the lldb-commits mailing list