LLDB mainline
ThreadPlanCallFunctionUsingABI.h
Go to the documentation of this file.
1//===-- ThreadPlanCallFunctionUsingABI.h --------------------------------*- C++
2//-*-===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H
11#define LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H
12
13#include "lldb/Target/ABI.h"
14#include "lldb/Target/Thread.h"
16#include "lldb/lldb-private.h"
17
18#include "llvm/ADT/ArrayRef.h"
19#include "llvm/IR/DerivedTypes.h"
20
21namespace lldb_private {
22
24 // Create a thread plan to call a function at the address passed in the
25 // "function" argument, this function is executed using register manipulation
26 // instead of JIT. Class derives from ThreadPlanCallFunction and differs by
27 // calling a alternative
28 // ABI interface ABI::PrepareTrivialCall() which provides more detailed
29 // information.
30public:
32 const Address &function_address,
33 llvm::Type &function_prototype,
34 llvm::Type &return_type,
35 llvm::ArrayRef<ABI::CallArgument> args,
36 const EvaluateExpressionOptions &options);
37
39
40 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
41
42protected:
43 void SetReturnValue() override;
44
45private:
46 llvm::Type &m_return_type;
48 delete;
51};
52
53} // namespace lldb_private
54
55#endif // LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H
A section + offset based address class.
Definition: Address.h:62
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
void GetDescription(Stream *s, lldb::DescriptionLevel level) override
Print a description of this thread to the stream s.
const ThreadPlanCallFunctionUsingABI & operator=(const ThreadPlanCallFunctionUsingABI &)=delete
ThreadPlanCallFunctionUsingABI(const ThreadPlanCallFunctionUsingABI &)=delete
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.