15#include "lldb/Host/Config.h"
42 if (thread ==
nullptr)
51 ConstString(
"mmap"), eFunctionNameTypeFull, function_options, sc_list);
57 eSymbolContextFunction | eSymbolContextSymbol;
58 const bool use_inline_block_range =
false;
84 auto type_system_or_err =
87 if (!type_system_or_err) {
88 llvm::consumeError(type_system_or_err.takeError());
91 auto ts = *type_system_or_err;
99 arch, addr, length, prot_arg, flags, fd, offset);
100 lldb::ThreadPlanSP call_plan_sp(
102 void_ptr_type, args, options));
111 exe_ctx, call_plan_sp, options, diagnostics);
115 call_plan_sp->GetReturnValueObject()->GetValueAsUnsigned(
139 if (thread ==
nullptr)
148 ConstString(
"munmap"), eFunctionNameTypeFull, function_options, sc_list);
154 eSymbolContextFunction | eSymbolContextSymbol;
155 const bool use_inline_block_range =
false;
169 lldb::ThreadPlanSP call_plan_sp(
180 exe_ctx, call_plan_sp, options, diagnostics);
A section + offset based address range class.
Address & GetBaseAddress()
Get accessor for the base address of the range.
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.
bool GetAddressRange(uint32_t scope, uint32_t range_idx, bool use_inline_block_range, AddressRange &range) const
Get the address range contained within a symbol context.
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()
virtual lldb::StackFrameSP GetStackFrameAtIndex(uint32_t idx)
#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)
@ 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.