[Lldb-commits] [lldb] [lldb] Fix SBThread::StepOverUntil for discontinuous functions (PR #123046)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 16 10:06:20 PST 2025
================
@@ -859,7 +859,9 @@ SBError SBThread::StepOverUntil(lldb::SBFrame &sb_frame,
addr_t step_addr =
sc.line_entry.range.GetBaseAddress().GetLoadAddress(target);
if (step_addr != LLDB_INVALID_ADDRESS) {
- if (fun_range.ContainsLoadAddress(step_addr, target))
+ if (llvm::any_of(fun_ranges, [&](const AddressRange &r) {
----------------
jimingham wrote:
It feels awkward to have to manually dial up the function block to see if an address exists in that function. I'd vote for `Function::GetRangeContainingLoadAddress` - that just seems like something a Function should be able to tell you.
https://github.com/llvm/llvm-project/pull/123046
More information about the lldb-commits
mailing list