Jason Molenda 484bc2bcc7 Run cmdline address expressions through ABI's FixAddress
On systems like ARM, where the non-addressable bits of a pointer
value may be used for metadata (ARMv8.3 pointer authentication, or
Type Byte Ignore), those bits need to be cleared before the address
points to a valid memory location.  Add a call to the target's ABI
to clear those from address expression arguments to the lldb
commands (e.g. `disassemble -a`).

Differential Revision: https://reviews.llvm.org/D141629
2023-01-23 10:44:19 -08:00

11 lines
143 B
C

#include <stdio.h>
int foo () { return 10; }
int main ()
{
int (*fptr)() = foo;
printf ("%p\n", fptr); // break here
return fptr();
}