[Lldb-commits] [lldb] f93e9c1 - [lldb] Fixup indirect symbols as they are signed.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 13 10:27:30 PDT 2021
Author: Jonas Devlieghere
Date: 2021-05-13T10:27:22-07:00
New Revision: f93e9c12bf482dbfe3d4d00fcf8bbc251500dd99
URL: https://github.com/llvm/llvm-project/commit/f93e9c12bf482dbfe3d4d00fcf8bbc251500dd99
DIFF: https://github.com/llvm/llvm-project/commit/f93e9c12bf482dbfe3d4d00fcf8bbc251500dd99.diff
LOG: [lldb] Fixup indirect symbols as they are signed.
This fixes a bunch of test failures in Apple Silicon (arm64e).
Added:
Modified:
lldb/source/Target/Process.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 514a8f7dbbca..480759e6e3fe 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -5643,6 +5643,8 @@ addr_t Process::ResolveIndirectFunction(const Address *address, Status &error) {
symbol ? symbol->GetName().AsCString() : "<UNKNOWN>");
function_addr = LLDB_INVALID_ADDRESS;
} else {
+ if (ABISP abi_sp = GetABI())
+ function_addr = abi_sp->FixCodeAddress(function_addr);
m_resolved_indirect_addresses.insert(
std::pair<addr_t, addr_t>(addr, function_addr));
}
More information about the lldb-commits
mailing list