
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
11 lines
143 B
C
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();
|
|
}
|