[all-commits] [llvm/llvm-project] 69a326: Support AArch64 PAC elf-core register read

Muhammad Omair Javaid via All-commits all-commits at lists.llvm.org
Mon May 3 04:06:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69a3269250715e31ec49be94065c1c8787a3d305
      https://github.com/llvm/llvm-project/commit/69a3269250715e31ec49be94065c1c8787a3d305
  Author: Muhammad Omair Javaid <omair.javaid at linaro.org>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm64.cpp
    M lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm64.h
    M lldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_arm64.h
    M lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp
    M lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.h
    M lldb/source/Plugins/Process/elf-core/RegisterUtilities.h
    M lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
    A lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core

  Log Message:
  -----------
  Support AArch64 PAC elf-core register read

This adds support for reading AArch64 Pointer Authentication regset
from elf-core file. Also includes a test-case for the same. Furthermore
there is also a slight refactoring of RegisterContextPOSIXCore_arm64
members and constructor. linux-aarch64-pac.core file is generated using
lldb/test/API/functionalities/postmortem/elf-core/main.c with following
clang arguments:
-march=armv8.5-a -mbranch-protection=pac-ret+leaf -nostdlib -static -g

Reviewed By: DavidSpickett

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




More information about the All-commits mailing list