Patch from Matt Kopec <matt.kopec@intel.com> to handle stepping into multiply-nested inlined code.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@167028 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/POSIX/POSIXThread.cpp b/source/Plugins/Process/POSIX/POSIXThread.cpp
index 2ab1c75..0fbb5f3 100644
--- a/source/Plugins/Process/POSIX/POSIXThread.cpp
+++ b/source/Plugins/Process/POSIX/POSIXThread.cpp
@@ -146,11 +146,14 @@
{
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