llvm-project
dd069b69 - [lldb] Skip the prologue when a function's entry has no line row (#204480)

Commit
40 days ago
[lldb] Skip the prologue when a function's entry has no line row (#204480) Function::GetPrologueByteSize computed the prologue only when a line table row contained the function's entry address (low_pc). When no row covers low_pc it returned 0, leaving a name breakpoint sitting on the function's entry address. For WebAssembly the entry address is the function's locals-declaration byte rather than an instruction, so the line table has no row there and the breakpoint is never hit. When low_pc has no covering row, fall back to the first line row that begins within the function's range and run the existing prologue logic on it. For functions whose entry is already covered (all normally compiled native code) this branch is not taken, so behavior is remains unchanged. This PR adds a hand (Claude) crafted regression test with a function whose entry address is not covered by a line row.
Author
Parents
Loading