* normalise value prior to right shifts by first left-aligning (shift left by 32 bits) then shifting back (respecting signedness) * Update crates/debug/src/transform/expression.rs Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com> * Update crates/debug/src/transform/expression.rs * Update crates/debug/src/transform/expression.rs * update translation of DW_OP_shr in test * add translation test for DW_OP_shra * explain normalisation * optimise the expression by performing only one right shift We assume that the expression evaluator permits collapsing two shifts as long as they go in the same direction. Review feedback. Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This is the wasmtime-debug crate, which provides functionality to
read, transform, and write DWARF section.