Page MenuHomePhabricator

[libunwind] Fix existing code for SEH on ARM to compile correctly
ClosedPublic

Authored by mstorsjo on Aug 31 2018, 2:13 AM.

Details

Summary

Even though SEH for ARM is incomplete, make what code already exists at least compile correctly.

The _LIBUNWIND_CURSOR_SIZE wasn't correct.

ARM (and AArch64) have a DISPATCHER_CONTEXT field named TargetPc instead of TargetIp.

For the libunwind.h UNW_* constants, there is no UNW_ARM_PC, only UNW_ARM_IP.

Don't use 'r' as loop variable when 'r' already is a Registers_arm member.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Aug 31 2018, 2:13 AM
cdavis5x accepted this revision.Aug 31 2018, 6:40 AM
This revision is now accepted and ready to land.Aug 31 2018, 6:40 AM
This revision was automatically updated to reflect the committed changes.