summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-01-25 02:47:23 +0000
committerJim Ingham <jingham@apple.com>2011-01-25 02:47:23 +0000
commit0c2706823e22af895844fca14dab528c4f95d044 (patch)
tree110d8c772f13fbf7682bbc0682fe7fafc2c7efff /lldb/source/Target/Thread.cpp
parent0098499f7d8de4d6ddc915a78b5b1a31b52feea7 (diff)
downloadbcm5719-llvm-0c2706823e22af895844fca14dab528c4f95d044.tar.gz
bcm5719-llvm-0c2706823e22af895844fca14dab528c4f95d044.zip
Check for a NULL saved stop info shared pointer.
llvm-svn: 124170
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 232bf287f63..2dca598a52a 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -133,7 +133,8 @@ bool
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;
}
OpenPOWER on IntegriCloud