Browse Source

Ignore DWARF expressions with wasm globals (#1405)

pull/1406/head
Yury Delendik 5 years ago
committed by GitHub
parent
commit
f3bfa2aa23
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      crates/debug/src/transform/expression.rs

6
crates/debug/src/transform/expression.rs

@ -327,7 +327,11 @@ where
// WebAssembly DWARF extension
pc.read_u8()?;
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()?;
pc.read_u8()?; // consume 159
if !code_chunk.is_empty() {

Loading…
Cancel
Save