[lldb][gui] make 'step out' step out of the selected frame

Differential Revision: https://reviews.llvm.org/D123001
This commit is contained in:
Luboš Luňák
2022-04-03 20:19:10 +02:00
parent f90fa55569
commit 76bc772920
6 changed files with 47 additions and 11 deletions

View File

@@ -1953,7 +1953,7 @@ Status Thread::StepOver(bool source_step,
return error;
}
Status Thread::StepOut() {
Status Thread::StepOut(uint32_t frame_idx) {
Status error;
Process *process = GetProcess().get();
if (StateIsStoppedState(process->GetState(), true)) {
@@ -1963,7 +1963,7 @@ Status Thread::StepOut() {
ThreadPlanSP new_plan_sp(QueueThreadPlanForStepOut(
abort_other_plans, nullptr, first_instruction, stop_other_threads,
eVoteYes, eVoteNoOpinion, 0, error));
eVoteYes, eVoteNoOpinion, frame_idx, error));
new_plan_sp->SetIsControllingPlan(true);
new_plan_sp->SetOkayToDiscard(false);