[Lldb-commits] [lldb] [lldb] Expose QueueThreadPlanForStepSingleInstruction function to SBThreadPlan (PR #137904)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Thu May 8 07:51:52 PDT 2025
================
@@ -44,6 +44,48 @@ def step_out_with_scripted_plan(self, name):
stop_desc = thread.GetStopDescription(1000)
self.assertIn("Stepping out from", stop_desc, "Got right description")
+ def run_until_branch_instruction(self):
+ self.build()
+ (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
+ self, "Break on branch instruction", self.main_source_file
+ )
+
+ # Check that we landed in a call instruction
+ frame = thread.GetFrameAtIndex(0)
+ current_instruction = target.ReadInstructions(frame.GetPCAddress(), 1)[0]
+ self.assertEqual(
+ lldb.eInstructionControlFlowKindCall,
+ current_instruction.GetControlFlowKind(target),
----------------
felipepiovezan wrote:
FWIW I don't think is implemented for arm targets
https://github.com/llvm/llvm-project/pull/137904
More information about the lldb-commits
mailing list