[Lldb-commits] [lldb] [lldb] Skip the prologue before reading `this` when stepping into std::function (PR #209629)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 15 11:47:01 PDT 2026
================
@@ -470,6 +470,21 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread,
StackFrameSP frame = thread.GetStackFrameAtIndex(0);
if (frame) {
+ // Advance past the prologue if we stopped there.
+ Address func_start_address =
+ sc.function ? sc.function->GetAddress() : symbol->GetAddress();
+ lldb::addr_t func_start =
+ func_start_address.GetLoadAddress(target_sp.get());
+ if (func_start != LLDB_INVALID_ADDRESS && func_start == curr_pc) {
----------------
jimingham wrote:
I'm not sure what it would mean for us not to be able to get the function start here, but if we can't we should stop and return control to the user rather than continuing on in a state of mild confusing - which might end up causing the debug session to run away from the user.
https://github.com/llvm/llvm-project/pull/209629
More information about the lldb-commits
mailing list