[PATCH] D62608: [ARM64, COFF] Add CodeView register mapping
Tom Tan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 09:10:08 PDT 2019
TomTan created this revision.
TomTan added reviewers: efriedma, rnk.
TomTan added a project: LLVM.
Herald added subscribers: llvm-commits, kristof.beyls, javed.absar.
CodeView has its own register map which is defined in cvconst.h. Missing this mapping before saving register to CodeView causes debugger to show incorrect value for all register based variables, like variables in register and local variables addressed by register (stack pointer + offset).
This change added mapping between LLVM register and CodeView register so the correct register number will be stored to CodeView/PDB, but it doesn't fix the translation from CodeView register number to register name, because CodeView register numbers overlap between architectures. So the tools like llvm-pdbutil need extra fix in order to dump ARM64 registers correctly from PDB.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 24581 bytes
Desc: not available
More information about the llvm-commits