Skip to content

Add arm64 register definitions, including DWARF and RDI - #912

Open
yuraiz wants to merge 3 commits into
EpicGames:masterfrom
yuraiz:pr/arm64-regs
Open

yuraiz wants to merge 3 commits into
EpicGames:masterfrom
yuraiz:pr/arm64-regs

Conversation

@yuraiz

@yuraiz yuraiz commented Aug 25, 2026

Copy link
Copy Markdown

That PR defines base arm64 registers with dwarf and rdi register codes. I don't add arm64 build support nor include the ARM64_H in raddbg_main.c.

I verified that the definitions make sense by running radbin --dump on dwarf and rdi files and viewing variables in a running debugger.

Screenshot 2026-08-25 at 11 22 37

regval_off = operand_s64s[1];
// NOTE(yuraiz): Changed from operand_s64s[1] to fix sp on arm64.
// I don't know if it was valid for x64 before.
regval_off = operand_s64s[0];

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That fixes conversion of encodings like
DW_AT_location (DW_OP_breg31 WSP+32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant