14#include "lldb/Host/Config.h"
41 if (thread ==
nullptr)
50 ConstString(
"mmap"), eFunctionNameTypeFull, function_options, sc_list);
51 const uint32_t count = sc_list.
GetSize();
55 const uint32_t range_scope =
56 eSymbolContextFunction | eSymbolContextSymbol;
57 const bool use_inline_block_range =
false;
83 auto type_system_or_err =
86 if (!type_system_or_err) {
87 llvm::consumeError(type_system_or_err.takeError());
90 auto ts = *type_system_or_err;
98 arch, addr, length, prot_arg, flags, fd, offset);
101 void_ptr_type, args, options));
110 exe_ctx, call_plan_sp, options, diagnostics);
114 call_plan_sp->GetReturnValueObject()->GetValueAsUnsigned(
138 if (thread ==
nullptr)
147 ConstString(
"munmap"), eFunctionNameTypeFull, function_options, sc_list);
148 const uint32_t count = sc_list.
GetSize();
152 const uint32_t range_scope =
153 eSymbolContextFunction | eSymbolContextSymbol;
154 const bool use_inline_block_range =
false;
179 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)
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.