llvm-project
ef2bdb2c - [lldb] Strip non-address bits from ValueObject GetPointerValue and CreateValueObjectFromAddress (#245607)

Commit
50 minutes ago
[lldb] Strip non-address bits from ValueObject GetPointerValue and CreateValueObjectFromAddress (#245607) lldb reads every value right, but a location reached through a signed pointer, or made from a signed address, keeps the signature bits on arm64e: ``` (lldb) frame variable -L two.unauth_middle->unauth_bottom 0x000000016fdfef60: (bottom *) two.unauth_middle->unauth_bottom = 0x000000016fdfef70 (lldb) frame variable -L two.auth_middle->unauth_bottom 0x000e80016fdfef60: (bottom *) two.auth_middle->unauth_bottom = 0x000000016fdfef70 (lldb) frame variable &two.auth_middle->auth_bottom->value (int *) &value = 0x007580016fdfef70 ``` one member has two locations: `0x000000016fdfef60` through the plain pointer, `0x000e80016fdfef60` through the signed one. Also `&` gives a plain `int *` that holds a signed address. This commit fixes it by calling `GetStrippedPointerValue` and `FixAnyAddress` to strip signature bits.
Author
Parents
Loading