Use the frame index passed into "thread until" rather than using the selected frame.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@163936 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectThread.cpp b/source/Commands/CommandObjectThread.cpp
index f7f070e..ee46501 100644
--- a/source/Commands/CommandObjectThread.cpp
+++ b/source/Commands/CommandObjectThread.cpp
@@ -1054,7 +1054,7 @@
&address_list.front(),
address_list.size(),
m_options.m_stop_others,
- thread->GetSelectedFrameIndex ());
+ m_options.m_frame_idx);
// User level plans should be master plans so they can be interrupted (e.g. by hitting a breakpoint)
// and other plans executed by the user (stepping around the breakpoint) and then a "continue"
// will resume the original plan.