Ignore DWARF expressions with wasm globals (#1405)

This commit is contained in:
Yury Delendik
2020-03-25 16:03:38 -05:00
committed by GitHub
parent bc1a11435e
commit f3bfa2aa23

View File

@@ -327,7 +327,11 @@ where
// WebAssembly DWARF extension // WebAssembly DWARF extension
pc.read_u8()?; pc.read_u8()?;
let ty = pc.read_uleb128()?; let ty = pc.read_uleb128()?;
assert_eq!(ty, 0); // Supporting only wasm locals.
if ty != 0 {
// TODO support wasm globals?
return Ok(None);
}
let index = pc.read_sleb128()?; let index = pc.read_sleb128()?;
pc.read_u8()?; // consume 159 pc.read_u8()?; // consume 159
if !code_chunk.is_empty() { if !code_chunk.is_empty() {