[Lldb-commits] [lldb] [lldb] Share the address lookup of thread until and StepOverUntil (PR #226978)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 29 00:49:31 PDT 2026
================
@@ -293,3 +296,53 @@ lldb::StateType ThreadPlanNull::GetPlanRunState() {
#endif
return eStateRunning;
}
+
+llvm::Expected<std::vector<addr_t>>
+lldb_private::GetStepUntilAddresses(StackFrame &frame, const FileSpec &file,
+ llvm::ArrayRef<uint32_t> lines,
+ llvm::ArrayRef<addr_t> addresses) {
+ const SymbolContext &frame_sc =
+ frame.GetSymbolContext(eSymbolContextCompUnit | eSymbolContextFunction);
+ TargetSP target_sp = frame.CalculateTarget();
+ if (!frame_sc.comp_unit || !frame_sc.function || !target_sp)
+ return llvm::createStringError("frame has no function debug information");
+
+ std::vector<addr_t> until_addrs;
+ bool found_target = !addresses.empty();
----------------
felipepiovezan wrote:
Yeah I agree this was confusing, I've tried to reflow it now, see the fixup commit.
https://github.com/llvm/llvm-project/pull/226978
More information about the lldb-commits
mailing list