[Lldb-commits] [PATCH] D98529: [lldb] Strip pointer authentication codes from aarch64 pc.
Jason Molenda via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 17 11:38:51 PDT 2021
jasonmolenda added a comment.
In D98529#2631860 <https://reviews.llvm.org/D98529#2631860>, @justincohen wrote:
> In the meantime, I'll look into adding something to the Crashpad minidump format to store an `addrable bits` mask, although I'm not clear how to grab this in userspace. Should `sysctl machdep.virtual_address_size` work on iOS? Can I grab TCR_ELx.T0SZ directly?
fwiw debugserver's code to provide the `addressing_bits:` in qHostInfo is upstreamed to the llvm.org sources, and it works on iOS as well,
static bool GetAddressingBits(uint32_t &addressing_bits) {
static uint32_t g_addressing_bits = 0;
static bool g_tried_addressing_bits_syscall = false;
if (g_tried_addressing_bits_syscall == false) {
size_t len = sizeof (uint32_t);
if (::sysctlbyname("machdep.virtual_address_size",
&g_addressing_bits, &len, NULL, 0) != 0) {
g_addressing_bits = 0;
}
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98529/new/
https://reviews.llvm.org/D98529
More information about the lldb-commits
mailing list