Make ThreadPlans use TID and Process, rather than Thread *.

Differential Revision: https://reviews.llvm.org/D75711
This commit is contained in:
Jim Ingham
2020-03-10 14:03:53 -07:00
parent ceb58ad61d
commit e4598dc04a
18 changed files with 279 additions and 319 deletions

View File

@@ -49,20 +49,18 @@ void ThreadPlanCallFunctionUsingABI::GetDescription(Stream *s,
if (level == eDescriptionLevelBrief) {
s->Printf("Function call thread plan using ABI instead of JIT");
} else {
TargetSP target_sp(m_thread.CalculateTarget());
s->Printf("Thread plan to call 0x%" PRIx64 " using ABI instead of JIT",
m_function_addr.GetLoadAddress(target_sp.get()));
m_function_addr.GetLoadAddress(&GetTarget()));
}
}
void ThreadPlanCallFunctionUsingABI::SetReturnValue() {
ProcessSP process_sp(m_thread.GetProcess());
const ABI *abi = process_sp ? process_sp->GetABI().get() : nullptr;
const ABI *abi = m_process.GetABI().get();
// Ask the abi for the return value
if (abi) {
const bool persistent = false;
m_return_valobj_sp =
abi->GetReturnValueObject(m_thread, m_return_type, persistent);
abi->GetReturnValueObject(GetThread(), m_return_type, persistent);
}
}