Stream: git-wasmtime

Topic: wasmtime / PR #2854 debug: Support big-endian architectures


view this post on Zulip Wasmtime GitHub notifications bot (Apr 21 2021 at 12:20):

uweigand opened PR #2854 from debug-endian to main:

This fixes some hard-coded assumptions in the debug crate that
the native ELF files being accessed are little-endian; specifically
in create_gdbjit_image as well as in emit_dwarf.

In addition, data in WebAssembly memory always uses little-endian
byte order. Therefore, if the native architecture is big-endian,
all references to base types need to be marked as little-endian
using the DW_AT_endianity attribute, so that the debugger will
be able to correctly access them.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Apr 27 2021 at 17:27):

cfallin submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 27 2021 at 17:27):

cfallin merged PR #2854.


Last updated: Dec 23 2024 at 12:05 UTC