This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][RISCV] Add DWARF Registers
ClosedPublic

Authored by Emmmer on Jul 28 2022, 12:49 AM.

Details

Summary

According to RISC-V DWARF Specification add RISCV DWARF Registers.

Don't worry about the difference between riscv32 and riscv64, they just have different bytes of registers.

Diff Detail

Event Timeline

Emmmer created this revision.Jul 28 2022, 12:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2022, 12:49 AM
Emmmer requested review of this revision.Jul 28 2022, 12:49 AM
DavidSpickett accepted this revision.Jul 28 2022, 1:45 AM

I couldn't find a definition for Alternate Frame Return Column. Perhaps it's this "alternate link register" I see elsewhere that's used for calling compressed code functions? Seems like a thing you could easily add later if needed.

LGTM.

This revision is now accepted and ready to land.Jul 28 2022, 1:45 AM
Emmmer updated this revision to Diff 448294.EditedJul 28 2022, 4:22 AM

Add missing Alternate Frame Return Column.

It is used for storing the address where the signal handler will return, so we might need it.

This revision was automatically updated to reflect the committed changes.