13#include "lldb/Host/Config.h"
42 const uint32_t count = sc_list.
GetSize();
43 for (uint32_t i = 0; i < count; ++i) {
52 return actual->GetAddress();
68 if (thread ==
nullptr)
77 ConstString(
"mmap"), eFunctionNameTypeFull, function_options, sc_list);
78 const uint32_t count = sc_list.
GetSize();
104 auto type_system_or_err =
106 if (!type_system_or_err) {
107 llvm::consumeError(type_system_or_err.takeError());
110 auto ts = *type_system_or_err;
118 arch, addr, length, prot_arg, flags, fd, offset);
120 *thread, mmap_addr, void_ptr_type, args, options));
124 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
129 exe_ctx, call_plan_sp, options, diagnostics);
133 call_plan_sp->GetReturnValueObject()->GetValueAsUnsigned(
156 if (thread ==
nullptr)
165 ConstString(
"munmap"), eFunctionNameTypeFull, function_options, sc_list);
166 const uint32_t count = sc_list.
GetSize();
185 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
190 exe_ctx, call_plan_sp, options, diagnostics);
static Address GetCallableAddress(Target &target, const SymbolContextList &sc_list)
Pick a call target from sc_list.
A section + offset based address class.
bool IsValid() const
Check if the object state is valid.
An architecture specification class.
Generic representation of a type in a programming language.
CompilerType GetBasicTypeFromAST(lldb::BasicType basic_type) const
Create related types using the current type's AST.
CompilerType GetPointerType() const
Return a new CompilerType that is a pointer to this type.
A uniqued constant string class.
void SetUnwindOnError(bool unwind=false)
void SetTrapExceptions(bool b)
void SetTryAllThreads(bool try_others=true)
void SetTimeout(const Timeout< std::micro > &timeout)
void SetStopOthers(bool stop_others=true)
void SetIgnoreBreakpoints(bool ignore=false)
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void FindFunctions(ConstString name, lldb::FunctionNameType name_type_mask, const ModuleFunctionSearchOptions &options, SymbolContextList &sc_list) const
std::chrono::seconds GetUtilityExpressionTimeout() const
A plug-in interface definition class for debugging a process.
ThreadList & GetThreadList()
lldb::ExpressionResults RunThreadPlan(ExecutionContext &exe_ctx, lldb::ThreadPlanSP &thread_plan_sp, const EvaluateExpressionOptions &options, DiagnosticManager &diagnostic_manager)
uint32_t GetAddressByteSize() const
Target & GetTarget()
Get the target object pointer for this module.
This base class provides an interface to stack frames.
void CalculateExecutionContext(ExecutionContext &exe_ctx) override
Reconstruct the object's execution context into sc.
Defines a list of symbol context objects.
bool GetContextAtIndex(size_t idx, SymbolContext &sc) const
Get accessor for a symbol context at index idx.
uint32_t GetSize() const
Get accessor for a symbol context list size.
Defines a symbol context baton that can be handed other debug core functions.
lldb::ModuleSP module_sp
The Module for a given query.
Symbol * symbol
The Symbol for a given query.
Address GetFunctionOrSymbolAddress() const
Get the address of the function or symbol represented by this symbol context.
lldb::SymbolType GetType() const
Symbol * ResolveReExportedSymbol(Target &target, const lldb::ModuleSP &containing_module_sp=lldb::ModuleSP()) const
Find the symbol this re-exported symbol resolves to.
llvm::Expected< lldb::TypeSystemSP > GetScratchTypeSystemForLanguage(lldb::LanguageType language, bool create_on_demand=true)
lldb::PlatformSP GetPlatform()
const ModuleList & GetImages() const
Get accessor for the images for this process.
const ArchSpec & GetArchitecture() const
lldb::ThreadSP GetExpressionExecutionThread()
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
bool InferiorCallMunmap(Process *proc, lldb::addr_t addr, lldb::addr_t length)
llvm::SmallVector< lldb::addr_t, 6 > MmapArgList
bool InferiorCallMmap(Process *proc, lldb::addr_t &allocated_addr, lldb::addr_t addr, lldb::addr_t length, unsigned prot, unsigned flags, lldb::addr_t fd, lldb::addr_t offset)
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
@ eLanguageTypeC
Non-standardized C, such as K&R.
ExpressionResults
The results of expression evaluation.
Options used by Module::FindFunctions.
bool include_inlines
Include inlined functions.
bool include_symbols
Include the symbol table.