[Lldb-commits] [lldb] [lldb] Skip local variable declarations at start of Wasm function (PR #190093)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 7 02:06:35 PDT 2026


================
@@ -365,13 +390,19 @@ ParseFunctions(DataExtractor &data) {
   functions.reserve(*function_count);
 
   for (uint32_t i = 0; i < *function_count; ++i) {
+    // llvm-objdump considers the ULEB with the function size to be part of the
+    // function. We can't do that here because that would not match the DWARF.
----------------
DavidSpickett wrote:

Add "which considers the function to be only the executable instructions" (I think?)

Because in the context of this PR it's fairly obvious what you're implying DWARF does but I doubt it will be out of context later.

https://github.com/llvm/llvm-project/pull/190093


More information about the lldb-commits mailing list