summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-11-13 17:06:26 +0000
committeremaste <emaste@FreeBSD.org>2013-11-13 17:06:26 +0000
commit7463e74d772423488d7c9389a93e8b8b7d1bbea3 (patch)
treef3e284205725f7fc1f6cef7a9413a09937b6f6d7 /contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp
parent8d8d56863a12e92b35a91a79b7ec491e677b257e (diff)
downloadFreeBSD-src-7463e74d772423488d7c9389a93e8b8b7d1bbea3.zip
FreeBSD-src-7463e74d772423488d7c9389a93e8b8b7d1bbea3.tar.gz
Merge upstream LLDB r194487:
Log failure to restore thread state in ThreadPlanCallFunction::DoTakedown In order to help track down llvm.org/pr17226. Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp b/contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp
index c9baaaf..45ff3b4 100644
--- a/contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp
+++ b/contrib/llvm/tools/lldb/source/Target/ThreadPlanCallFunction.cpp
@@ -299,7 +299,11 @@ ThreadPlanCallFunction::DoTakedown (bool success)
m_takedown_done = true;
m_stop_address = m_thread.GetStackFrameAtIndex(0)->GetRegisterContext()->GetPC();
m_real_stop_info_sp = GetPrivateStopInfo ();
- m_thread.RestoreRegisterStateFromCheckpoint(m_stored_thread_state);
+ if (!m_thread.RestoreRegisterStateFromCheckpoint(m_stored_thread_state))
+ {
+ if (log)
+ log->Printf("ThreadPlanCallFunction(%p): DoTakedown failed to restore register state", this);
+ }
SetPlanComplete(success);
ClearBreakpoints();
if (log && log->GetVerbose())
OpenPOWER on IntegriCloud