LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
lldb_private::FunctionCaller Class Referenceabstract

Encapsulates a function that can be called. More...

#include "lldb/Expression/FunctionCaller.h"

Inheritance diagram for lldb_private::FunctionCaller:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::FunctionCaller:
Collaboration graph
[legend]

Public Member Functions

 FunctionCaller (ExecutionContextScope &exe_scope, const CompilerType &return_type, const Address &function_address, const ValueList &arg_value_list, const char *name)
 Constructor. More...
 
 ~FunctionCaller () override
 Destructor. More...
 
virtual unsigned CompileFunction (lldb::ThreadSP thread_to_use_sp, DiagnosticManager &diagnostic_manager)=0
 Compile the wrapper function. More...
 
bool InsertFunction (ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, DiagnosticManager &diagnostic_manager)
 Insert the default function wrapper and its default argument struct. More...
 
bool WriteFunctionWrapper (ExecutionContext &exe_ctx, DiagnosticManager &diagnostic_manager)
 Insert the default function wrapper (using the JIT) More...
 
bool WriteFunctionArguments (ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, DiagnosticManager &diagnostic_manager)
 Insert the default function argument struct. More...
 
bool WriteFunctionArguments (ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, ValueList &arg_values, DiagnosticManager &diagnostic_manager)
 Insert an argument struct with a non-default function address and non- default argument values. More...
 
lldb::ExpressionResults ExecuteFunction (ExecutionContext &exe_ctx, lldb::addr_t *args_addr_ptr, const EvaluateExpressionOptions &options, DiagnosticManager &diagnostic_manager, Value &results)
 Run the function this FunctionCaller was created with. More...
 
lldb::ThreadPlanSP GetThreadPlanToCallFunction (ExecutionContext &exe_ctx, lldb::addr_t args_addr, const EvaluateExpressionOptions &options, DiagnosticManager &diagnostic_manager)
 Get a thread plan to run the function this FunctionCaller was created with. More...
 
bool FetchFunctionResults (ExecutionContext &exe_ctx, lldb::addr_t args_addr, Value &ret_value)
 Get the result of the function from its struct. More...
 
void DeallocateFunctionResults (ExecutionContext &exe_ctx, lldb::addr_t args_addr)
 Deallocate the arguments structure. More...
 
const char * Text () override
 Interface for ClangExpression. More...
 
const char * FunctionName () override
 Return the function name that should be used for executing the expression. More...
 
ExpressionVariableListLocalVariables ()
 Return the object that the parser should use when registering local variables. More...
 
bool NeedsValidation () override
 Return true if validation code should be inserted into the expression. More...
 
bool NeedsVariableResolution () override
 Return true if external variables in the expression should be resolved. More...
 
ValueList GetArgumentValues () const
 
- Public Member Functions inherited from lldb_private::Expression
 Expression (Target &target, ExpressionKind kind)
 
 Expression (ExecutionContextScope &exe_scope, ExpressionKind kind)
 
virtual ~Expression ()
 Destructor. More...
 
virtual lldb::LanguageType Language ()
 Return the language that should be used when parsing. More...
 
virtual ResultType DesiredResultType ()
 Return the desired result type of the function, or eResultTypeAny if indifferent. More...
 
virtual EvaluateExpressionOptionsGetOptions ()
 
lldb::addr_t StartAddress ()
 Return the address of the function's JIT-compiled code, or LLDB_INVALID_ADDRESS if the function is not JIT compiled. More...
 
virtual void WillStartExecuting ()
 Called to notify the expression that it is about to be executed. More...
 
virtual void DidFinishExecuting ()
 Called to notify the expression that its execution has finished. More...
 
virtual ExpressionTypeSystemHelperGetTypeSystemHelper ()
 
ExpressionKind getKind () const
 LLVM-style RTTI support. More...
 

Static Public Member Functions

static bool classof (const Expression *E)
 LLVM-style RTTI support. More...
 

Protected Attributes

std::shared_ptr< IRExecutionUnitm_execution_unit_sp
 
std::unique_ptr< ExpressionParserm_parser
 The parser responsible for compiling the function. More...
 
lldb::ModuleWP m_jit_module_wp
 
std::string m_name
 The name of this clang function - for debugging purposes. More...
 
Functionm_function_ptr
 The function we're going to call. More...
 
Address m_function_addr
 If we don't have the FunctionSP, we at least need the address & return type. More...
 
CompilerType m_function_return_type
 The opaque clang qual type for the function return type. More...
 
std::string m_wrapper_function_name
 The name of the wrapper function. More...
 
std::string m_wrapper_function_text
 The contents of the wrapper function. More...
 
std::string m_wrapper_struct_name
 The name of the struct that contains the target function address, arguments, and result. More...
 
std::list< lldb::addr_tm_wrapper_args_addrs
 The addresses of the arguments to the wrapper function. More...
 
bool m_struct_valid
 True if the ASTStructExtractor has populated the variables below. More...
 
size_t m_struct_size
 These values are populated by the ASTStructExtractor. More...
 
std::vector< uint64_t > m_member_offsets
 The offset of each member in the struct, in bytes. More...
 
uint64_t m_return_size
 The size of the result variable, in bytes. More...
 
uint64_t m_return_offset
 The offset of the result variable in the struct, in bytes. More...
 
ValueList m_arg_values
 The default values of the arguments. More...
 
bool m_compiled
 True if the wrapper function has already been parsed. More...
 
bool m_JITted
 True if the wrapper function has already been JIT-compiled. More...
 
- Protected Attributes inherited from lldb_private::Expression
lldb::TargetWP m_target_wp
 
lldb::ProcessWP m_jit_process_wp
 Expression's always have to have a target... More...
 
lldb::addr_t m_jit_start_addr
 An expression might have a process, but it doesn't need to (e.g. More...
 
lldb::addr_t m_jit_end_addr
 The address of the JITted function within the JIT allocation. More...
 

Additional Inherited Members

- Public Types inherited from lldb_private::Expression
enum  ExpressionKind {
  eKindFunctionCaller, eKindClangFunctionCaller, eKindUserExpression, eKindLLVMUserExpression,
  eKindClangUserExpression, eKindUtilityFunction, eKindClangUtilityFunction
}
 Discriminator for LLVM-style RTTI (dyn_cast<> et al.) More...
 
enum  ResultType { eResultTypeAny, eResultTypeId }
 

Detailed Description

Encapsulates a function that can be called.

A given FunctionCaller object can handle a single function signature. Once constructed, it can set up any number of concurrent calls to functions with that signature.

It performs the call by synthesizing a structure that contains the pointer to the function and the arguments that should be passed to that function, and producing a special-purpose JIT-compiled function that accepts a void* pointing to this struct as its only argument and calls the function in the struct with the written arguments. This method lets Clang handle the vagaries of function calling conventions.

The simplest use of the FunctionCaller is to construct it with a function representative of the signature you want to use, then call ExecuteFunction(ExecutionContext &, Stream &, Value &).

If you need to reuse the arguments for several calls, you can call InsertFunction() followed by WriteFunctionArguments(), which will return the location of the args struct for the wrapper function in args_addr_ref.

If you need to call the function on the thread plan stack, you can also call InsertFunction() followed by GetThreadPlanToCallFunction().

Any of the methods that take arg_addr_ptr or arg_addr_ref can be passed a pointer set to LLDB_INVALID_ADDRESS and new structure will be allocated and its address returned in that variable.

Any of the methods that take arg_addr_ptr can be passed nullptr, and the argument space will be managed for you.

Definition at line 56 of file FunctionCaller.h.

Constructor & Destructor Documentation

◆ FunctionCaller()

FunctionCaller::FunctionCaller ( ExecutionContextScope exe_scope,
const CompilerType return_type,
const Address function_address,
const ValueList arg_value_list,
const char *  name 
)

Constructor.

Parameters
[in]exe_scopeAn execution context scope that gets us at least a target and process.
[in]ast_contextThe AST context to evaluate argument types in.
[in]return_qualtypeAn opaque Clang QualType for the function result. Should be defined in ast_context.
[in]function_addressThe address of the function to call.
[in]arg_value_listThe default values to use when calling this function. Can be overridden using WriteFunctionArguments().

Definition at line 33 of file FunctionCaller.cpp.

References lldb_private::ExecutionContextScope::CalculateProcess(), and lldb_private::Expression::m_jit_process_wp.

Referenced by classof().

◆ ~FunctionCaller()

FunctionCaller::~FunctionCaller ( )
override

Destructor.

Definition at line 53 of file FunctionCaller.cpp.

References m_jit_module_wp, and lldb_private::Expression::m_jit_process_wp.

Referenced by classof().

Member Function Documentation

◆ classof()

static bool lldb_private::FunctionCaller::classof ( const Expression E)
inlinestatic

◆ CompileFunction()

virtual unsigned lldb_private::FunctionCaller::CompileFunction ( lldb::ThreadSP  thread_to_use_sp,
DiagnosticManager diagnostic_manager 
)
pure virtual

Compile the wrapper function.

Parameters
[in]thread_to_use_spCompilation might end up calling functions. Pass in the thread you want the compilation to use. If you pass in an empty ThreadSP it will use the currently selected thread.
[in]diagnostic_managerThe diagnostic manager to report parser errors to.
Returns
The number of errors.

Implemented in lldb_private::ClangFunctionCaller.

Referenced by classof(), ExecuteFunction(), and InsertFunction().

◆ DeallocateFunctionResults()

void FunctionCaller::DeallocateFunctionResults ( ExecutionContext exe_ctx,
lldb::addr_t  args_addr 
)

Deallocate the arguments structure.

Parameters
[in]exe_ctxThe execution context to insert the function and its arguments into.
[in]args_addrThe address of the argument struct.

Definition at line 302 of file FunctionCaller.cpp.

References lldb_private::Process::DeallocateMemory(), lldb_private::ExecutionContext::GetProcessRef(), and m_wrapper_args_addrs.

Referenced by classof(), PlatformPOSIX::DoLoadImage(), ExecuteFunction(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().

◆ ExecuteFunction()

lldb::ExpressionResults FunctionCaller::ExecuteFunction ( ExecutionContext exe_ctx,
lldb::addr_t args_addr_ptr,
const EvaluateExpressionOptions options,
DiagnosticManager diagnostic_manager,
Value results 
)

Run the function this FunctionCaller was created with.

This is the full version.

Parameters
[in]exe_ctxThe thread & process in which this function will run.
[in]args_addr_ptrIf nullptr, the function will take care of allocating & deallocating the wrapper args structure. Otherwise, if set to LLDB_INVALID_ADDRESS, a new structure will be allocated, filled and the address returned to you. You are responsible for deallocating it. And if passed in with a value other than LLDB_INVALID_ADDRESS, this should point to an already allocated structure with the values already written.
[in]diagnostic_managerThe diagnostic manager to report errors to.
[in]optionsThe options for this expression execution.
[out]resultsThe result value will be put here after running the function.
Returns
Returns one of the ExpressionResults enum indicating function call status.

Definition at line 313 of file FunctionCaller.cpp.

References CompileFunction(), DeallocateFunctionResults(), lldb::eExpressionCompleted, lldb::eExpressionSetupError, FetchFunctionResults(), lldb_private::GetLogIfAnyCategoriesSet(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ExecutionContext::GetProcessRef(), GetThreadPlanToCallFunction(), lldb_private::ExecutionContext::GetThreadSP(), InsertFunction(), LIBLLDB_LOG_EXPRESSIONS, LIBLLDB_LOG_STEP, LLDB_INVALID_ADDRESS, m_name, lldb_private::Log::Printf(), lldb_private::Process::RunThreadPlan(), lldb_private::EvaluateExpressionOptions::SetDebug(), lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints(), lldb_private::Process::SetRunningUserExpression(), and lldb_private::EvaluateExpressionOptions::SetUnwindOnError().

Referenced by classof(), PlatformPOSIX::DoLoadImage(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleObjCRuntimeV2::GetTaggedPointerObfuscator(), and lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo().

◆ FetchFunctionResults()

bool FunctionCaller::FetchFunctionResults ( ExecutionContext exe_ctx,
lldb::addr_t  args_addr,
Value ret_value 
)

◆ FunctionName()

const char* lldb_private::FunctionCaller::FunctionName ( )
inlineoverridevirtual

Return the function name that should be used for executing the expression.

Text() should contain the definition of this function.

Implements lldb_private::Expression.

Definition at line 283 of file FunctionCaller.h.

References m_wrapper_function_name.

Referenced by WriteFunctionWrapper().

◆ GetArgumentValues()

ValueList lldb_private::FunctionCaller::GetArgumentValues ( ) const
inline

◆ GetThreadPlanToCallFunction()

lldb::ThreadPlanSP FunctionCaller::GetThreadPlanToCallFunction ( ExecutionContext exe_ctx,
lldb::addr_t  args_addr,
const EvaluateExpressionOptions options,
DiagnosticManager diagnostic_manager 
)

Get a thread plan to run the function this FunctionCaller was created with.

Parameters
[in]exe_ctxThe execution context to insert the function and its arguments into.
[in]func_addrThe address of the function in the target process.
[in]args_addrThe address of the argument struct.
[in]diagnostic_managerThe diagnostic manager to report errors to.
[in]stop_othersTrue if other threads should pause during execution.
[in]unwind_on_errorTrue if the thread plan may simply be discarded if an error occurs.
Returns
A ThreadPlan shared pointer for executing the function.

Definition at line 228 of file FunctionCaller.cpp.

References lldb_private::eDiagnosticSeverityError, lldb_private::GetLogIfAnyCategoriesSet(), lldb_private::ExecutionContext::GetThreadPtr(), LIBLLDB_LOG_EXPRESSIONS, LIBLLDB_LOG_STEP, lldb_private::Expression::m_jit_start_addr, m_name, lldb_private::Log::Printf(), and lldb_private::DiagnosticManager::PutString().

Referenced by classof(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::DidPush(), and ExecuteFunction().

◆ InsertFunction()

bool FunctionCaller::InsertFunction ( ExecutionContext exe_ctx,
lldb::addr_t args_addr_ref,
DiagnosticManager diagnostic_manager 
)

Insert the default function wrapper and its default argument struct.

Parameters
[in]exe_ctxThe execution context to insert the function and its arguments into.
[in,out]args_addr_refThe address of the structure to write the arguments into. May be LLDB_INVALID_ADDRESS; if it is, a new structure is allocated and args_addr_ref is pointed to it.
[in]diagnostic_managerThe diagnostic manager to report errors to.
Returns
True on success; false otherwise.

Definition at line 210 of file FunctionCaller.cpp.

References CompileFunction(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::ExecutionContext::GetThreadSP(), LIBLLDB_LOG_STEP, lldb_private::Expression::m_jit_start_addr, lldb_private::Log::Printf(), WriteFunctionArguments(), and WriteFunctionWrapper().

Referenced by classof(), and ExecuteFunction().

◆ LocalVariables()

ExpressionVariableList* lldb_private::FunctionCaller::LocalVariables ( )
inline

Return the object that the parser should use when registering local variables.

May be nullptr if the Expression doesn't care.

Definition at line 289 of file FunctionCaller.h.

◆ NeedsValidation()

bool lldb_private::FunctionCaller::NeedsValidation ( )
inlineoverridevirtual

Return true if validation code should be inserted into the expression.

Implements lldb_private::Expression.

Definition at line 292 of file FunctionCaller.h.

◆ NeedsVariableResolution()

bool lldb_private::FunctionCaller::NeedsVariableResolution ( )
inlineoverridevirtual

Return true if external variables in the expression should be resolved.

Implements lldb_private::Expression.

Definition at line 295 of file FunctionCaller.h.

◆ Text()

const char* lldb_private::FunctionCaller::Text ( )
inlineoverridevirtual

Interface for ClangExpression.

Return the string that the parser should parse. Must be a full translation unit.

Implements lldb_private::Expression.

Definition at line 279 of file FunctionCaller.h.

References m_wrapper_function_text.

◆ WriteFunctionArguments() [1/2]

bool FunctionCaller::WriteFunctionArguments ( ExecutionContext exe_ctx,
lldb::addr_t args_addr_ref,
DiagnosticManager diagnostic_manager 
)

Insert the default function argument struct.

Parameters
[in]exe_ctxThe execution context to insert the function and its arguments into.
[in,out]args_addr_refThe address of the structure to write the arguments into. May be LLDB_INVALID_ADDRESS; if it is, a new structure is allocated and args_addr_ref is pointed to it.
[in]diagnostic_managerThe diagnostic manager to report errors to.
Returns
True on success; false otherwise.

Definition at line 114 of file FunctionCaller.cpp.

References m_arg_values.

Referenced by classof(), lldb_private::AppleGetQueuesHandler::Detach(), lldb_private::AppleGetThreadItemInfoHandler::Detach(), lldb_private::AppleGetItemInfoHandler::Detach(), lldb_private::AppleGetPendingItemsHandler::Detach(), PlatformPOSIX::DoLoadImage(), lldb_private::AppleObjCRuntimeV2::GetTaggedPointerObfuscator(), InsertFunction(), and lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction().

◆ WriteFunctionArguments() [2/2]

bool FunctionCaller::WriteFunctionArguments ( ExecutionContext exe_ctx,
lldb::addr_t args_addr_ref,
ValueList arg_values,
DiagnosticManager diagnostic_manager 
)

Insert an argument struct with a non-default function address and non- default argument values.

Parameters
[in]exe_ctxThe execution context to insert the function and its arguments into.
[in,out]args_addr_refThe address of the structure to write the arguments into. May be LLDB_INVALID_ADDRESS; if it is, a new structure is allocated and args_addr_ref is pointed at it.
[in]arg_valuesThe values of the function's arguments.
[in]diagnostic_managerThe diagnostic manager to report errors to.
Returns
True on success; false otherwise.

Definition at line 124 of file FunctionCaller.cpp.

References lldb_private::Process::AllocateMemory(), lldb_private::Value::eContextTypeInvalid, lldb_private::eDiagnosticSeverityError, lldb::eExpressionSetupError, lldb_private::Value::eValueTypeHostAddress, lldb_private::Process::GetAddressByteSize(), lldb_private::Scalar::GetByteSize(), lldb_private::Address::GetCallableLoadAddress(), lldb_private::Value::GetCompilerType(), lldb_private::Value::GetContextType(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ValueList::GetSize(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ValueList::GetValueAtIndex(), lldb_private::Value::GetValueType(), lldb_private::CompilerType::IsPointerType(), LLDB_INVALID_ADDRESS, m_arg_values, m_function_addr, lldb_private::Expression::m_jit_process_wp, m_member_offsets, m_struct_size, m_struct_valid, m_wrapper_args_addrs, lldb_private::DiagnosticManager::Printf(), lldb_private::DiagnosticManager::PutString(), lldb_private::Value::ResolveValue(), and lldb_private::Process::WriteScalarToMemory().

◆ WriteFunctionWrapper()

bool FunctionCaller::WriteFunctionWrapper ( ExecutionContext exe_ctx,
DiagnosticManager diagnostic_manager 
)

Member Data Documentation

◆ m_arg_values

ValueList lldb_private::FunctionCaller::m_arg_values
protected

The default values of the arguments.

Definition at line 341 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), GetArgumentValues(), and WriteFunctionArguments().

◆ m_compiled

bool lldb_private::FunctionCaller::m_compiled
protected

True if the wrapper function has already been parsed.

Definition at line 343 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and WriteFunctionWrapper().

◆ m_execution_unit_sp

std::shared_ptr<IRExecutionUnit> lldb_private::FunctionCaller::m_execution_unit_sp
protected

Definition at line 302 of file FunctionCaller.h.

Referenced by WriteFunctionWrapper().

◆ m_function_addr

Address lldb_private::FunctionCaller::m_function_addr
protected

If we don't have the FunctionSP, we at least need the address & return type.

Definition at line 315 of file FunctionCaller.h.

Referenced by WriteFunctionArguments().

◆ m_function_ptr

Function* lldb_private::FunctionCaller::m_function_ptr
protected

The function we're going to call.

May be nullptr if we don't have debug info for the function.

Definition at line 312 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction().

◆ m_function_return_type

CompilerType lldb_private::FunctionCaller::m_function_return_type
protected

The opaque clang qual type for the function return type.

Definition at line 317 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and FetchFunctionResults().

◆ m_jit_module_wp

lldb::ModuleWP lldb_private::FunctionCaller::m_jit_module_wp
protected

Definition at line 308 of file FunctionCaller.h.

Referenced by WriteFunctionWrapper(), and ~FunctionCaller().

◆ m_JITted

bool lldb_private::FunctionCaller::m_JITted
protected

True if the wrapper function has already been JIT-compiled.

Definition at line 345 of file FunctionCaller.h.

Referenced by WriteFunctionWrapper().

◆ m_member_offsets

std::vector<uint64_t> lldb_private::FunctionCaller::m_member_offsets
protected

The offset of each member in the struct, in bytes.

Definition at line 336 of file FunctionCaller.h.

Referenced by lldb_private::ASTStructExtractor::Initialize(), and WriteFunctionArguments().

◆ m_name

std::string lldb_private::FunctionCaller::m_name
protected

The name of this clang function - for debugging purposes.

Definition at line 310 of file FunctionCaller.h.

Referenced by ExecuteFunction(), FetchFunctionResults(), and GetThreadPlanToCallFunction().

◆ m_parser

std::unique_ptr<ExpressionParser> lldb_private::FunctionCaller::m_parser
protected

The parser responsible for compiling the function.

This will get made in CompileFunction, so it is safe to access it after that.

Definition at line 304 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and WriteFunctionWrapper().

◆ m_return_offset

uint64_t lldb_private::FunctionCaller::m_return_offset
protected

The offset of the result variable in the struct, in bytes.

Definition at line 338 of file FunctionCaller.h.

Referenced by FetchFunctionResults(), and lldb_private::ASTStructExtractor::Initialize().

◆ m_return_size

uint64_t lldb_private::FunctionCaller::m_return_size
protected

The size of the result variable, in bytes.

Definition at line 337 of file FunctionCaller.h.

Referenced by FetchFunctionResults(), and lldb_private::ASTStructExtractor::Initialize().

◆ m_struct_size

size_t lldb_private::FunctionCaller::m_struct_size
protected

These values are populated by the ASTStructExtractor.

The size of the argument struct, in bytes.

Definition at line 334 of file FunctionCaller.h.

Referenced by lldb_private::ASTStructExtractor::Initialize(), and WriteFunctionArguments().

◆ m_struct_valid

bool lldb_private::FunctionCaller::m_struct_valid
protected

True if the ASTStructExtractor has populated the variables below.

Definition at line 330 of file FunctionCaller.h.

Referenced by lldb_private::ASTStructExtractor::Initialize(), and WriteFunctionArguments().

◆ m_wrapper_args_addrs

std::list<lldb::addr_t> lldb_private::FunctionCaller::m_wrapper_args_addrs
protected

The addresses of the arguments to the wrapper function.

Definition at line 326 of file FunctionCaller.h.

Referenced by DeallocateFunctionResults(), and WriteFunctionArguments().

◆ m_wrapper_function_name

std::string lldb_private::FunctionCaller::m_wrapper_function_name
protected

The name of the wrapper function.

Definition at line 320 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), FunctionName(), and lldb_private::ASTStructExtractor::Initialize().

◆ m_wrapper_function_text

std::string lldb_private::FunctionCaller::m_wrapper_function_text
protected

The contents of the wrapper function.

Definition at line 322 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and Text().

◆ m_wrapper_struct_name

std::string lldb_private::FunctionCaller::m_wrapper_struct_name
protected

The name of the struct that contains the target function address, arguments, and result.

Definition at line 323 of file FunctionCaller.h.

Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and lldb_private::ClangFunctionCaller::GetWrapperStructName().


The documentation for this class was generated from the following files: