Don't report memory return values on MacOS_arm64 of SysV_arm64 ABI's.

They don't require that the memory return address be restored prior to
function exit, so there's no guarantee the value is correct.  It's better
to return nothing that something that's not accurate.

Differential Revision: https://reviews.llvm.org/D121348
This commit is contained in:
Jim Ingham
2022-03-14 14:37:38 -07:00
parent 36fe3f13a9
commit 33f9fc77d1
9 changed files with 80 additions and 14 deletions

View File

@@ -287,6 +287,17 @@ void Target::Destroy() {
m_suppress_stop_hooks = false;
}
llvm::StringRef Target::GetABIName() const {
lldb::ABISP abi_sp;
if (m_process_sp)
abi_sp = m_process_sp->GetABI();
if (!abi_sp)
abi_sp = ABI::FindPlugin(ProcessSP(), GetArchitecture());
if (abi_sp)
return abi_sp->GetPluginName();
return {};
}
BreakpointList &Target::GetBreakpointList(bool internal) {
if (internal)
return m_internal_breakpoint_list;