jeffcharles opened issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
akirilov-arm labeled issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
akirilov-arm labeled issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
akirilov-arm labeled issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
akirilov-arm labeled issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
akirilov-arm commented on issue #4393:
Have you seen issue #2856? It documents some of the issues with full debugging support on non-x86 platforms (in fact, it subsumes the previous AArch64-specific issue, #1523) and is probably a better place to discuss any details that are not AArch64-specific.
jeffcharles commented on issue #4393:
I had not seen that issue. I can take a look at those details.
Even without changes to the debug crate though, given my change, I'm currently able to get a reasonable debugging experience on AArch64 as opposed to an error message with the status quo.
jameysharp commented on issue #4393:
I see the PR just makes aarch64 do exactly what x64 and s390x already do. I don't know much yet about Cranelift's target backends, but it seems plausible to me that
inst::unwind::systemv::map_reg
would be the right choice for aarch64 as well. @akirilov-arm, is there any reason not to merge this?Also, maybe we should edit the contributor guidelines to say that if it's easier to explain your issue by just opening a pull request showing what you want changed, then you don't need to open an issue first? Anyway I'd say go ahead and open a PR here with your proposed changes.
akirilov-arm commented on issue #4393:
@akirilov-arm, is there any reason not to merge this?
I don't know, usually I don't look at PRs that have not been opened in this repository. From a cursory glance it looks OK, but I am not really familiar with that part of the code.
jeffcharles commented on issue #4393:
I've opened a PR at #4468.
jameysharp commented on issue #4393:
Merged, thank you!
jameysharp closed issue #4393:
Feature
Debug symbol transformation for AArch64. That is, when running
wasmtime compile -g <path_to_wasm>
,wasmtime
does not exit with an error message and debug symbols are included in the resulting.cwasm
file.Benefit
It enables developers writing code targeting a Wasm environment to be able to step debug their code in a Wasm environment if they are using Apple Silicon.
Implementation
https://github.com/jeffcharles/wasmtime/pull/1/files. This uses a similar approach to how the symbols are mapped for x86_64. I can open that PR on this repo instead. The contribution guidelines mentioned I should open an issue here first to discuss.
The PR above seems to work for a number of test cases that I've tried.
Alternatives
I'm not sure what the alternatives are.
Last updated: Nov 22 2024 at 16:03 UTC