[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 23 07:14:24 PST 2024


================
@@ -346,6 +346,16 @@ static offset_t GetOpcodeDataSize(const DataExtractor &data,
     return (offset - data_offset) + subexpr_len;
   }
 
+  case DW_OP_WASM_location: {
+    uint8_t wasm_op = data.GetU8(&offset);
+    if (wasm_op == 3) {
+      data.GetU32(&offset);
+    } else {
+      data.GetULEB128(&offset);
+    }
----------------
DavidSpickett wrote:

(least important comment right now but...)

https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

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


More information about the lldb-commits mailing list