From 3b1c97aa74c6bf91fcdf007708586f9bbf3c711f Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 30 Oct 2012 17:44:49 +0000 Subject: [PATCH] Patch from Matt Kopec to handle stepping into multiply-nested inlined code. llvm-svn: 167028 --- lldb/source/Plugins/Process/POSIX/POSIXThread.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp index 2ab1c7572702..0fbb5f309c4b 100644 --- a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp +++ b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp @@ -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 -- 2.34.1