[Lldb-commits] [lldb] Allow scripted frames to implement custom step operations (PR #223834)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 16 11:48:18 PDT 2026
================
@@ -494,21 +494,48 @@ void SBThread::StepOver(lldb::RunMode stop_other_threads, SBError &error) {
}
Thread *thread = exe_ctx->GetThreadPtr();
+
bool abort_other_plans = false;
StackFrameSP frame_sp(thread->GetStackFrameAtIndex(0));
+ if (!frame_sp) {
+ error.SetErrorString("No frame to step over");
+ return;
+ }
- Status new_plan_status;
ThreadPlanSP new_plan_sp;
+ lldb::StepType step_type =
+ frame_sp->HasDebugInformation() || frame_sp->IsSynthetic()
+ ? eStepTypeOver
+ : eStepTypeTraceOver;
+
if (frame_sp) {
----------------
jimingham wrote:
Yup.
https://github.com/llvm/llvm-project/pull/223834
More information about the lldb-commits
mailing list