Stream: git-wasmtime

Topic: wasmtime / Issue #2856 Debug support for non-x86 architec...


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

uweigand opened Issue #2856:

Feature

Support debugging JITted WebAssembly code on non-x86 platforms.

Benefit

Currently, the debug crate only supports x86. All other platforms should be supported as well.

Implementation

There are a number of places that currently prevent the debug crate from supporting non-x86 platforms:

    match header.e_machine.get(e) {
        EM_X86_64 => (),
        machine => {
            bail!("Unsupported ELF target machine: {:x}", machine);
        }
    }

(This should just go away, I think.)

writer.write_op_breg(X86_64::RBP.0)?;
writer.write_sleb128(ss_offset as i64 + X86_64_STACK_OFFSET)?;

(This is only used for old-style back-ends and can probably go away soon.)

writer.write_op_breg(X86_64::RSP.0)?;

(This should probably use the register mapper that unwinder code also uses.)

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

uweigand commented on Issue #2856:

Hi @cfallin, this is the topic we talked about recently. I just wanted to open this issue to document all the places I've found where there is currently X86-specific code in the debug crate.


Last updated: Dec 23 2024 at 12:05 UTC