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
Details
Diff Detail
Event Timeline
lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp | ||
---|---|---|
32 | How is the sizeof() calculated here? Is it the size of the masks themselves, or a header block. (SVE above is clearly a header of some kind) | |
lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py | ||
451 | Do you need anything special to generate the core file? Might be worth noting in the commit message. Though I guess you can just compile a hello world on a Linux system with PAC. | |
453 | values = { "data_mask": "...", ... } (or dict(data_mask="...")) |
clang-tidy: error: 'lldb/Target/Process.h' file not found [clang-diagnostic-error]
not useful