13#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();
79 auto type_system_or_err =
82 if (!type_system_or_err) {
83 llvm::consumeError(type_system_or_err.takeError());
86 auto ts = *type_system_or_err;
94 arch, addr, length, prot_arg, flags, fd, offset);
96 *thread, mmap_addr, void_ptr_type, args, options));
100 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
105 exe_ctx, call_plan_sp, options, diagnostics);
109 call_plan_sp->GetReturnValueObject()->GetValueAsUnsigned(
133 if (thread ==
nullptr)
142 ConstString(
"munmap"), eFunctionNameTypeFull, function_options, sc_list);
143 const uint32_t count = sc_list.
GetSize();
164 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
169 exe_ctx, call_plan_sp, options, diagnostics);
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.
Address GetFunctionOrSymbolAddress() const
Get the address of the function or symbol represented by this 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()
#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.