1 //===-- ThreadPlanCallFunctionUsingABI.h --------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef liblldb_ThreadPlanCallFunctionUsingABI_h_
12 #define liblldb_ThreadPlanCallFunctionUsingABI_h_
16 // Other libraries and framework includes
18 #include "lldb/Target/ABI.h"
19 #include "lldb/Target/Thread.h"
20 #include "lldb/Target/ThreadPlanCallFunction.h"
21 #include "lldb/lldb-private.h"
23 #include "llvm/ADT/ArrayRef.h"
24 #include "llvm/IR/DerivedTypes.h"
26 namespace lldb_private {
28 class ThreadPlanCallFunctionUsingABI : public ThreadPlanCallFunction {
29 // Create a thread plan to call a function at the address passed in the
31 // argument, this function is executed using register manipulation instead of
33 // Class derives from ThreadPlanCallFunction and differs by calling a
35 // ABI interface ABI::PrepareTrivialCall() which provides more detailed
38 ThreadPlanCallFunctionUsingABI(Thread &thread,
39 const Address &function_address,
40 llvm::Type &function_prototype,
41 llvm::Type &return_type,
42 llvm::ArrayRef<ABI::CallArgument> args,
43 const EvaluateExpressionOptions &options);
45 ~ThreadPlanCallFunctionUsingABI() override;
47 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
50 void SetReturnValue() override;
53 llvm::Type &m_return_type;
54 DISALLOW_COPY_AND_ASSIGN(ThreadPlanCallFunctionUsingABI);
57 } // namespace lldb_private
59 #endif // liblldb_ThreadPlanCallFunctionUsingABI_h_