Skip to content

Commit 9f53c1b

Browse files
[lldb] Don't call FixDataAddress when reading fp in ReadGPRValue (llvm#159606)
Based on testing on processors that use pointer metadata, and with all the work done to delay calls to FixDataAddress, this is no longer necessary. Note that, with debugserver in particular, this is an NFC change: the code path here is for frame zero, and debugserver will strip metadata when reading fp from frame zero anyway. (cherry picked from commit bce48c8)
1 parent d8cff08 commit 9f53c1b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lldb/source/Target/RegisterContextUnwind.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,9 +2204,6 @@ bool RegisterContextUnwind::ReadGPRValue(lldb::RegisterKind register_kind,
22042204
if (generic_regnum == LLDB_REGNUM_GENERIC_PC ||
22052205
generic_regnum == LLDB_REGNUM_GENERIC_RA)
22062206
value = abi_sp->FixCodeAddress(value);
2207-
if (generic_regnum == LLDB_REGNUM_GENERIC_SP ||
2208-
generic_regnum == LLDB_REGNUM_GENERIC_FP)
2209-
value = abi_sp->FixDataAddress(value);
22102207
}
22112208
return true;
22122209
}

0 commit comments

Comments
 (0)