Patch from Matt Kopec <matt.kopec@intel.com> to handle stepping into multiply-nested...
authorJim Ingham <jingham@apple.com>
Tue, 30 Oct 2012 17:44:49 +0000 (17:44 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 30 Oct 2012 17:44:49 +0000 (17:44 +0000)
llvm-svn: 167028

lldb/source/Plugins/Process/POSIX/POSIXThread.cpp

index 2ab1c75..0fbb5f3 100644 (file)
@@ -146,11 +146,14 @@ POSIXThread::WillResume(lldb::StateType resume_state)
 {
     SetResumeState(resume_state);
 
-    ClearStackFrames();
+    if (!Thread::WillResume(resume_state))
+        return false;
+
     if (m_unwinder_ap.get())
         m_unwinder_ap->Clear();
+    Thread::ClearStackFrames();
 
-    return Thread::WillResume(resume_state);
+    return true;
 }
 
 bool