Skip to content

Enable generating debug symbols on AArch64#4468

Merged
cfallin merged 1 commit into
bytecodealliance:mainfrom
jeffcharles:jeffcharles.add-apple-silicon-support-for-debugging
Jul 19, 2022
Merged

Enable generating debug symbols on AArch64#4468
cfallin merged 1 commit into
bytecodealliance:mainfrom
jeffcharles:jeffcharles.add-apple-silicon-support-for-debugging

Conversation

@jeffcharles
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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