[all-commits] [llvm/llvm-project] 78eabc: [libunwind] Add support for PC reg column in arm64

Marco Vanotti via All-commits all-commits at lists.llvm.org
Wed Feb 17 17:42:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78eabcaa48df72e01b352b4b5077cece0693950c
      https://github.com/llvm/llvm-project/commit/78eabcaa48df72e01b352b4b5077cece0693950c
  Author: Marco Vanotti <mvanotti at google.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M libunwind/include/libunwind.h
    M libunwind/src/Registers.hpp

  Log Message:
  -----------
  [libunwind] Add support for PC reg column in arm64

This change adds support for the dwarf PC register column in arm64, allowing
CFI directives to make use of it.

As of the last revision of the DWARF for ARM 64-bit architecture[0], the pc
register has been added as a valir register, with number 32.

This allows libunwinder to restore both pc and lr, which is useful
for stack switches and signal contexts.

[0]:
https://github.com/ARM-software/abi-aa/blob/f52e1ad3f81254497a83578dc102f6aac89e52d0/aadwarf64/aadwarf64.rst

Reviewed By: phosek, #libunwind

Differential Revision: https://reviews.llvm.org/D96901




More information about the All-commits mailing list