summaryrefslogtreecommitdiff
path: root/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2020-03-10 14:03:53 -0700
committerJim Ingham <jingham@apple.com>2020-04-03 14:56:28 -0700
commite4598dc04a1f582e18b6721ae8ad15cad3ddd48b (patch)
treee0cf2cb87d2d6b612de5b8e3148a2bfe06c06ee2 /lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp
parentceb58ad61d267a4cf6599f33473d82463d1ab7fd (diff)
Make ThreadPlans use TID and Process, rather than Thread *.
Differential Revision: https://reviews.llvm.org/D75711
Diffstat (limited to 'lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp')
-rw-r--r--lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp b/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp
index b06787259c9d..52b27309e912 100644
--- a/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp
+++ b/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp
@@ -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);
}
}