Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable generating debug symbols on AArch64 #4468

Conversation

jeffcharles
Copy link
Contributor

@jeffcharles jeffcharles commented Jul 19, 2022

This PR enables generating debug symbols for AArch64 as described in #4393.

This PR does this by using the same implementation as x86_64. This is needed or an error message is output and compilation fails when enabling generating debug symbols. I've tested debugging a few compiled modules on my M1 with LLDB and debugging seems to work reasonably well (or at least as well as on x86).

I'm not sure whom to add as a reviewer as there are no suggestions on the right.

@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:aarch64 Issues related to AArch64 backend. labels Jul 19, 2022
Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, and even if it turns out to be wrong I don't think it could break anything that works now. But I think @cfallin should take a look too.

Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@cfallin cfallin enabled auto-merge (squash) July 19, 2022 19:01
@cfallin cfallin merged commit d55eb64 into bytecodealliance:main Jul 19, 2022
@jeffcharles jeffcharles deleted the jeffcharles.add-apple-silicon-support-for-debugging branch July 29, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:aarch64 Issues related to AArch64 backend. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants