[Lldb-commits] [lldb] r124170 - /lldb/trunk/source/Target/Thread.cpp

Jim Ingham jingham at apple.com
Mon Jan 24 18:47:23 PST 2011


Author: jingham
Date: Mon Jan 24 20:47:23 2011
New Revision: 124170

URL: http://llvm.org/viewvc/llvm-project?rev=124170&view=rev
Log:
Check for a NULL saved stop info shared pointer.

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

Modified: lldb/trunk/source/Target/Thread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Thread.cpp?rev=124170&r1=124169&r2=124170&view=diff
==============================================================================
--- lldb/trunk/source/Target/Thread.cpp (original)
+++ lldb/trunk/source/Target/Thread.cpp Mon Jan 24 20:47:23 2011
@@ -133,7 +133,8 @@
 Thread::RestoreThreadStateFromCheckpoint (ThreadStateCheckpoint &saved_state)
 {
     RestoreSaveFrameZero(saved_state.register_backup);
-    saved_state.stop_info_sp->MakeStopInfoValid();
+    if (saved_state.stop_info_sp)
+        saved_state.stop_info_sp->MakeStopInfoValid();
     SetStopInfo(saved_state.stop_info_sp);
     return true;
 }





More information about the lldb-commits mailing list