The index in DW_OP_WASM_location is ULEB128 (#1611)

C.f. https://yurydelendik.github.io/webassembly-dwarf/#DWARF-expressions-and-location-descriptions
This commit is contained in:
Gabor Greif
2020-04-28 17:56:34 +02:00
committed by GitHub
parent 9d13871bd4
commit a1f3f06878

View File

@@ -331,7 +331,7 @@ where
// TODO support wasm globals?
return Ok(None);
}
let index = pc.read_sleb128()?;
let index = pc.read_uleb128()?;
if pc.read_u8()? != 159 {
// FIXME The following operator is not DW_OP_stack_value, e.g. :
// DW_AT_location (0x00000ea5: