LLDB mainline
|
Encapsulates a function that can be called. More...
#include "lldb/Expression/FunctionCaller.h"
Public Member Functions | |
bool | isA (const void *ClassID) const override |
FunctionCaller (ExecutionContextScope &exe_scope, const CompilerType &return_type, const Address &function_address, const ValueList &arg_value_list, const char *name) | |
Constructor. | |
~FunctionCaller () override | |
Destructor. | |
virtual unsigned | CompileFunction (lldb::ThreadSP thread_to_use_sp, DiagnosticManager &diagnostic_manager)=0 |
Compile the wrapper function. | |
bool | InsertFunction (ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, DiagnosticManager &diagnostic_manager) |
Insert the default function wrapper and its default argument struct. | |
bool | WriteFunctionWrapper (ExecutionContext &exe_ctx, DiagnosticManager &diagnostic_manager) |
Insert the default function wrapper (using the JIT) | |
bool | WriteFunctionArguments (ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, DiagnosticManager &diagnostic_manager) |
Insert the default function argument struct. | |
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. | |
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. | |
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. | |
bool | FetchFunctionResults (ExecutionContext &exe_ctx, lldb::addr_t args_addr, Value &ret_value) |
Get the result of the function from its struct. | |
void | DeallocateFunctionResults (ExecutionContext &exe_ctx, lldb::addr_t args_addr) |
Deallocate the arguments structure. | |
const char * | Text () override |
Interface for ClangExpression. | |
const char * | FunctionName () override |
Return the function name that should be used for executing the expression. | |
ExpressionVariableList * | LocalVariables () |
Return the object that the parser should use when registering local variables. | |
bool | NeedsValidation () override |
Return true if validation code should be inserted into the expression. | |
bool | NeedsVariableResolution () override |
Return true if external variables in the expression should be resolved. | |
ValueList | GetArgumentValues () const |
Public Member Functions inherited from lldb_private::Expression | |
Expression (Target &target) | |
Expression (ExecutionContextScope &exe_scope) | |
virtual | ~Expression ()=default |
Destructor. | |
virtual const char * | Text ()=0 |
Return the string that the parser should parse. | |
virtual const char * | FunctionName ()=0 |
Return the function name that should be used for executing the expression. | |
virtual SourceLanguage | Language () const |
Return the language that should be used when parsing. | |
virtual Materializer * | GetMaterializer () |
Return the Materializer that the parser should use when registering external values. | |
virtual ResultType | DesiredResultType () const |
Return the desired result type of the function, or eResultTypeAny if indifferent. | |
virtual bool | NeedsValidation ()=0 |
Flags. | |
virtual bool | NeedsVariableResolution ()=0 |
Return true if external variables in the expression should be resolved. | |
virtual EvaluateExpressionOptions * | GetOptions () |
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. | |
virtual void | WillStartExecuting () |
Called to notify the expression that it is about to be executed. | |
virtual void | DidFinishExecuting () |
Called to notify the expression that its execution has finished. | |
virtual ExpressionTypeSystemHelper * | GetTypeSystemHelper () |
virtual bool | isA (const void *ClassID) const =0 |
Static Public Member Functions | |
static bool | classof (const Expression *obj) |
Protected Attributes | |
std::shared_ptr< IRExecutionUnit > | m_execution_unit_sp |
std::unique_ptr< ExpressionParser > | m_parser |
The parser responsible for compiling the function. | |
lldb::ModuleWP | m_jit_module_wp |
std::string | m_name |
The name of this clang function - for debugging purposes. | |
Function * | m_function_ptr |
The function we're going to call. | |
Address | m_function_addr |
If we don't have the FunctionSP, we at least need the address & return type. | |
CompilerType | m_function_return_type |
The opaque clang qual type for the function return type. | |
std::string | m_wrapper_function_name |
The name of the wrapper function. | |
std::string | m_wrapper_function_text |
The contents of the wrapper function. | |
std::string | m_wrapper_struct_name |
The name of the struct that contains the target function address, arguments, and result. | |
std::list< lldb::addr_t > | m_wrapper_args_addrs |
The addresses of the arguments to the wrapper function. | |
bool | m_struct_valid |
True if the ASTStructExtractor has populated the variables below. | |
size_t | m_struct_size |
These values are populated by the ASTStructExtractor. | |
std::vector< uint64_t > | m_member_offsets |
The offset of each member in the struct, in bytes. | |
uint64_t | m_return_size |
The size of the result variable, in bytes. | |
uint64_t | m_return_offset |
The offset of the result variable in the struct, in bytes. | |
ValueList | m_arg_values |
The default values of the arguments. | |
bool | m_compiled |
True if the wrapper function has already been parsed. | |
bool | m_JITted |
True if the wrapper function has already been JIT-compiled. | |
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... | |
lldb::addr_t | m_jit_start_addr |
An expression might have a process, but it doesn't need to (e.g. | |
lldb::addr_t | m_jit_end_addr |
The address of the JITted function within the JIT allocation. | |
Static Private Attributes | |
static char | ID |
Additional Inherited Members | |
Public Types inherited from lldb_private::Expression | |
enum | ResultType { eResultTypeAny , eResultTypeId } |
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.
FunctionCaller::FunctionCaller | ( | ExecutionContextScope & | exe_scope, |
const CompilerType & | return_type, | ||
const Address & | function_address, | ||
const ValueList & | arg_value_list, | ||
const char * | name | ||
) |
Constructor.
[in] | exe_scope | An execution context scope that gets us at least a target and process. |
[in] | return_type | An opaque Clang QualType for the function result. Should be defined in ast_context. |
[in] | function_address | The address of the function to call. |
[in] | arg_value_list | The default values to use when calling this function. Can be overridden using WriteFunctionArguments(). |
Definition at line 37 of file FunctionCaller.cpp.
References lldb_private::ExecutionContextScope::CalculateProcess(), and lldb_private::Expression::m_jit_process_wp.
|
override |
Destructor.
Definition at line 57 of file FunctionCaller.cpp.
References m_jit_module_wp, and lldb_private::Expression::m_jit_process_wp.
|
inlinestatic |
Definition at line 62 of file FunctionCaller.h.
References ID, and lldb_private::Expression::isA().
|
pure virtual |
Compile the wrapper function.
[in] | thread_to_use_sp | Compilation 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_manager | The diagnostic manager to report parser errors to. |
Implemented in lldb_private::ClangFunctionCaller.
Referenced by ExecuteFunction(), and InsertFunction().
void FunctionCaller::DeallocateFunctionResults | ( | ExecutionContext & | exe_ctx, |
lldb::addr_t | args_addr | ||
) |
Deallocate the arguments structure.
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in] | args_addr | The address of the argument struct. |
Definition at line 325 of file FunctionCaller.cpp.
References lldb_private::Process::DeallocateMemory(), lldb_private::ExecutionContext::GetProcessRef(), and m_wrapper_args_addrs.
Referenced by PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), ExecuteFunction(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().
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.
[in] | exe_ctx | The thread & process in which this function will run. |
[in] | args_addr_ptr | If 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_manager | The diagnostic manager to report errors to. |
[in] | options | The options for this expression execution. |
[out] | results | The result value will be put here after running the function. |
Definition at line 336 of file FunctionCaller.cpp.
References CompileFunction(), DeallocateFunctionResults(), lldb::eExpressionCompleted, lldb::eExpressionSetupError, lldb_private::Expressions, FetchFunctionResults(), FunctionName(), lldb_private::Target::GetDebugger(), lldb_private::TargetProperties::GetDebugUtilityExpression(), lldb_private::GetLog(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ExecutionContext::GetProcessRef(), lldb_private::ExecutionContext::GetTargetPtr(), GetThreadPlanToCallFunction(), lldb_private::ExecutionContext::GetThreadSP(), InsertFunction(), LLDB_INVALID_ADDRESS, LLDB_LOGF, m_name, lldb_private::Process::RunThreadPlan(), lldb_private::EvaluateExpressionOptions::SetDebug(), lldb_private::EvaluateExpressionOptions::SetGenerateDebugInfo(), lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints(), lldb_private::Process::SetRunningUserExpression(), lldb_private::EvaluateExpressionOptions::SetUnwindOnError(), lldb_private::Step, and lldb_private::toString().
Referenced by PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::ItaniumABILanguageRuntime::GetExceptionObjectForThread(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
bool FunctionCaller::FetchFunctionResults | ( | ExecutionContext & | exe_ctx, |
lldb::addr_t | args_addr, | ||
Value & | ret_value | ||
) |
Get the result of the function from its struct.
[in] | exe_ctx | The execution context to retrieve the result from. |
[in] | args_addr | The address of the argument struct. |
[out] | ret_value | The value returned by the function. |
Definition at line 286 of file FunctionCaller.cpp.
References error(), lldb_private::Expressions, lldb_private::GetLog(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Value::GetScalar(), LLDB_LOGF, m_function_return_type, lldb_private::Expression::m_jit_process_wp, m_name, m_return_offset, m_return_size, lldb_private::Process::ReadUnsignedIntegerFromMemory(), lldb_private::Value::Scalar, lldb_private::Value::SetCompilerType(), lldb_private::Value::SetValueType(), and lldb_private::Step.
Referenced by ExecuteFunction(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().
|
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 272 of file FunctionCaller.h.
References m_wrapper_function_name.
Referenced by ExecuteFunction(), and WriteFunctionWrapper().
|
inline |
Definition at line 286 of file FunctionCaller.h.
References m_arg_values.
Referenced by PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), and lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap().
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.
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in] | args_addr | The address of the argument struct. |
[in] | diagnostic_manager | The diagnostic manager to report errors to. |
Definition at line 254 of file FunctionCaller.cpp.
References lldb::eSeverityError, lldb_private::Expressions, lldb_private::GetLog(), lldb_private::ExecutionContext::GetThreadPtr(), LLDB_LOGF, lldb_private::Expression::m_jit_start_addr, m_name, lldb_private::DiagnosticManager::PutString(), and lldb_private::Step.
Referenced by ExecuteFunction(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::InitializeFunctionCaller().
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.
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in,out] | args_addr_ref | The 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_manager | The diagnostic manager to report errors to. |
Definition at line 226 of file FunctionCaller.cpp.
References CompileFunction(), lldb::eSeverityError, lldb::eStateStopped, lldb_private::GetLog(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetState(), lldb_private::ExecutionContext::GetThreadSP(), LLDB_LOGF, lldb_private::Expression::m_jit_start_addr, lldb_private::DiagnosticManager::PutString(), lldb_private::Step, WriteFunctionArguments(), and WriteFunctionWrapper().
Referenced by ExecuteFunction().
|
inlineoverridevirtual |
Implements lldb_private::Expression.
Reimplemented in lldb_private::ClangFunctionCaller.
Definition at line 61 of file FunctionCaller.h.
References ID.
Referenced by lldb_private::ClangFunctionCaller::isA().
|
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 278 of file FunctionCaller.h.
|
inlineoverridevirtual |
Return true if validation code should be inserted into the expression.
Implements lldb_private::Expression.
Definition at line 281 of file FunctionCaller.h.
|
inlineoverridevirtual |
Return true if external variables in the expression should be resolved.
Implements lldb_private::Expression.
Definition at line 284 of file FunctionCaller.h.
|
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 268 of file FunctionCaller.h.
References m_wrapper_function_text.
bool FunctionCaller::WriteFunctionArguments | ( | ExecutionContext & | exe_ctx, |
lldb::addr_t & | args_addr_ref, | ||
DiagnosticManager & | diagnostic_manager | ||
) |
Insert the default function argument struct.
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in,out] | args_addr_ref | The 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_manager | The diagnostic manager to report errors to. |
Definition at line 130 of file FunctionCaller.cpp.
References m_arg_values, and WriteFunctionArguments().
Referenced by PlatformPOSIX::DoLoadImage(), lldb_private::PlatformWindows::DoLoadImage(), InsertFunction(), lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction(), lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction(), lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction(), lldb_private::AppleGetQueuesHandler::SetupGetQueuesFunction(), lldb_private::AppleGetThreadItemInfoHandler::SetupGetThreadItemInfoFunction(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::UpdateISAToDescriptorMap(), and WriteFunctionArguments().
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.
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in,out] | args_addr_ref | The 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_values | The values of the function's arguments. |
[in] | diagnostic_manager | The diagnostic manager to report errors to. |
Definition at line 140 of file FunctionCaller.cpp.
References lldb_private::Process::AllocateMemory(), lldb::eExpressionSetupError, error(), lldb::eSeverityError, 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::Value::HostAddress, lldb_private::Value::Invalid, 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().
bool FunctionCaller::WriteFunctionWrapper | ( | ExecutionContext & | exe_ctx, |
DiagnosticManager & | diagnostic_manager | ||
) |
Insert the default function wrapper (using the JIT)
[in] | exe_ctx | The execution context to insert the function and its arguments into. |
[in] | diagnostic_manager | The diagnostic manager to report errors to. |
Definition at line 66 of file FunctionCaller.cpp.
References lldb_private::ModuleList::Append(), lldb_private::Status::AsCString(), lldb_private::eExecutionPolicyAlways, lldb::eSeverityError, lldb::eStateStopped, FunctionName(), lldb_private::Target::GetImages(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetState(), lldb_private::Process::GetTarget(), m_compiled, m_execution_unit_sp, lldb_private::Expression::m_jit_end_addr, m_jit_module_wp, lldb_private::Expression::m_jit_process_wp, lldb_private::Expression::m_jit_start_addr, m_JITted, m_parser, lldb_private::DiagnosticManager::Printf(), lldb_private::FileSpec::SetFilename(), and lldb_private::Status::Success().
Referenced by InsertFunction().
|
staticprivate |
Definition at line 58 of file FunctionCaller.h.
|
protected |
The default values of the arguments.
Definition at line 330 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), GetArgumentValues(), and WriteFunctionArguments().
|
protected |
True if the wrapper function has already been parsed.
Definition at line 332 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and WriteFunctionWrapper().
|
protected |
Definition at line 291 of file FunctionCaller.h.
Referenced by WriteFunctionWrapper().
|
protected |
If we don't have the FunctionSP, we at least need the address & return type.
Definition at line 304 of file FunctionCaller.h.
Referenced by WriteFunctionArguments().
|
protected |
The function we're going to call.
May be nullptr if we don't have debug info for the function.
Definition at line 301 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction().
|
protected |
The opaque clang qual type for the function return type.
Definition at line 306 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and FetchFunctionResults().
|
protected |
Definition at line 297 of file FunctionCaller.h.
Referenced by WriteFunctionWrapper(), and ~FunctionCaller().
|
protected |
True if the wrapper function has already been JIT-compiled.
Definition at line 334 of file FunctionCaller.h.
Referenced by WriteFunctionWrapper().
|
protected |
The offset of each member in the struct, in bytes.
Definition at line 325 of file FunctionCaller.h.
Referenced by lldb_private::ASTStructExtractor::ExtractFromFunctionDecl(), and WriteFunctionArguments().
|
protected |
The name of this clang function - for debugging purposes.
Definition at line 299 of file FunctionCaller.h.
Referenced by ExecuteFunction(), FetchFunctionResults(), and GetThreadPlanToCallFunction().
|
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 293 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and WriteFunctionWrapper().
|
protected |
The offset of the result variable in the struct, in bytes.
Definition at line 327 of file FunctionCaller.h.
Referenced by lldb_private::ASTStructExtractor::ExtractFromFunctionDecl(), and FetchFunctionResults().
|
protected |
The size of the result variable, in bytes.
Definition at line 326 of file FunctionCaller.h.
Referenced by lldb_private::ASTStructExtractor::ExtractFromFunctionDecl(), and FetchFunctionResults().
|
protected |
These values are populated by the ASTStructExtractor.
The size of the argument struct, in bytes.
Definition at line 323 of file FunctionCaller.h.
Referenced by lldb_private::ASTStructExtractor::ExtractFromFunctionDecl(), and WriteFunctionArguments().
|
protected |
True if the ASTStructExtractor has populated the variables below.
Definition at line 319 of file FunctionCaller.h.
Referenced by lldb_private::ASTStructExtractor::ExtractFromFunctionDecl(), and WriteFunctionArguments().
|
protected |
The addresses of the arguments to the wrapper function.
Definition at line 315 of file FunctionCaller.h.
Referenced by DeallocateFunctionResults(), and WriteFunctionArguments().
|
protected |
The name of the wrapper function.
Definition at line 309 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), lldb_private::ASTStructExtractor::ExtractFromTopLevelDecl(), and FunctionName().
|
protected |
The contents of the wrapper function.
Definition at line 311 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and Text().
|
protected |
The name of the struct that contains the target function address, arguments, and result.
Definition at line 312 of file FunctionCaller.h.
Referenced by lldb_private::ClangFunctionCaller::CompileFunction(), and lldb_private::ClangFunctionCaller::GetWrapperStructName().