[Lldb-commits] [lldb] [lldb] Support DW_OP_WASM_location in DWARFExpression (PR #151010)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 29 02:46:08 PDT 2025


================
@@ -2300,9 +2301,40 @@ llvm::Expected<Value> DWARFExpression::Evaluate(
       break;
     }
 
+    case DW_OP_WASM_location: {
+      uint8_t wasm_op = opcodes.GetU8(&offset);
+      uint32_t index;
----------------
DavidSpickett wrote:

Init this to 0.

In theory it doesn't make a difference, we'll always hit the else, but some tool won't like it.

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


More information about the lldb-commits mailing list