Files
llvm-project/lldb/source/Core/Disassembler.cpp
Jonas Devlieghere 58a5ce4997 [lldb] Skip local variable declarations at start of Wasm function (#190093)
In WebAssembly, a function starts with a number of local variable
declarations, sometimes called a function header. These declarations are
*not* instructions, but they are considered to be part of the function,
meaning we can't just pretend like the function starts on the first
instruction. Instead, we treat them like a prologue, albeit one that you
cannot disassemble or set a breakpoint on.

With this PR, we now correctly disassemble the function, matching the
output of `objdump` and breakpoints resolve to the first instruction.

Fixes #189960
2026-04-07 17:39:17 +01:00

57 KiB