Clear the register context if our process is no longer alive.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@180927 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp b/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp
index 98bbc8b..d35a5d0 100644
--- a/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp
+++ b/source/Plugins/Process/Utility/RegisterContextThreadMemory.cpp
@@ -63,6 +63,10 @@
                 }                
             }
         }
+        else
+        {
+            m_reg_ctx_sp.reset();
+        }
     }
     else
     {