[Lldb-commits] [lldb] [lldb][nfc] Add customization flags for ThreadPlanStepOut (PR #135866)

via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 15 16:33:45 PDT 2025


https://github.com/jimingham approved this pull request.

My original notion was that instead of passing in flags to the setup of ThreadPlanStepOut and having it compute where it should go based on that, the plan that was deciding to step out would call ThreadPlanShouldStopHere::CheckShouldStopHereAndQueueStepOut, and that would figure out based on the flags of that plan what frame it should step out to, then it would queue up a ThreadPlanStepOut that would go to that frame.  

In that version ComputeTargetFrame would be logic in the StepOutFromHereCallback.  I was trying to keep all the strategy decisions about where to go in the ShouldStopHere callbacks so that they could be reused more easily.

In this version, the StepOutFromHere callback figures out which flags it wants to use, and then passes them to the ThreadPlanStepOut, which computes where to go.  I'm not sure that makes much difference; once we're deciding to go to older frames on the stack we're really only going to use a ThreadPlanStepOut, so it doesn't much matter where that logic is.

LGTM

https://github.com/llvm/llvm-project/pull/135866


More information about the lldb-commits mailing list