LLDB
mainline
|
#include <SBTarget.h>
Public Types | |
enum | { eBroadcastBitBreakpointChanged = (1 << 0), eBroadcastBitModulesLoaded = (1 << 1), eBroadcastBitModulesUnloaded = (1 << 2), eBroadcastBitWatchpointChanged = (1 << 3), eBroadcastBitSymbolsLoaded = (1 << 4) } |
Public Member Functions | |
SBTarget () | |
SBTarget (const lldb::SBTarget &rhs) | |
SBTarget (const lldb::TargetSP &target_sp) | |
~SBTarget () | |
const lldb::SBTarget & | operator= (const lldb::SBTarget &rhs) |
operator bool () const | |
bool | IsValid () const |
lldb::SBProcess | GetProcess () |
void | SetCollectingStats (bool v) |
Sets whether we should collect statistics on lldb or not. More... | |
bool | GetCollectingStats () |
Returns whether statistics collection are enabled. More... | |
lldb::SBStructuredData | GetStatistics () |
Returns a dump of the collected statistics. More... | |
lldb::SBPlatform | GetPlatform () |
Return the platform object associated with the target. More... | |
SBEnvironment | GetEnvironment () |
Return the environment variables that would be used to launch a new process. More... | |
SBError | Install () |
Install any binaries that need to be installed. More... | |
lldb::SBProcess | Launch (SBListener &listener, char const **argv, char const **envp, const char *stdin_path, const char *stdout_path, const char *stderr_path, const char *working_directory, uint32_t launch_flags, bool stop_at_entry, lldb::SBError &error) |
Launch a new process. More... | |
SBProcess | LoadCore (const char *core_file) |
SBProcess | LoadCore (const char *core_file, lldb::SBError &error) |
SBProcess | LaunchSimple (const char **argv, const char **envp, const char *working_directory) |
Launch a new process with sensible defaults. More... | |
SBProcess | Launch (SBLaunchInfo &launch_info, SBError &error) |
SBProcess | Attach (SBAttachInfo &attach_info, SBError &error) |
lldb::SBProcess | AttachToProcessWithID (SBListener &listener, lldb::pid_t pid, lldb::SBError &error) |
Attach to process with pid. More... | |
lldb::SBProcess | AttachToProcessWithName (SBListener &listener, const char *name, bool wait_for, lldb::SBError &error) |
Attach to process with name. More... | |
lldb::SBProcess | ConnectRemote (SBListener &listener, const char *url, const char *plugin_name, SBError &error) |
Connect to a remote debug server with url. More... | |
lldb::SBFileSpec | GetExecutable () |
void | AppendImageSearchPath (const char *from, const char *to, lldb::SBError &error) |
bool | AddModule (lldb::SBModule &module) |
lldb::SBModule | AddModule (const char *path, const char *triple, const char *uuid) |
lldb::SBModule | AddModule (const char *path, const char *triple, const char *uuid_cstr, const char *symfile) |
lldb::SBModule | AddModule (const SBModuleSpec &module_spec) |
uint32_t | GetNumModules () const |
lldb::SBModule | GetModuleAtIndex (uint32_t idx) |
bool | RemoveModule (lldb::SBModule module) |
lldb::SBDebugger | GetDebugger () const |
lldb::SBModule | FindModule (const lldb::SBFileSpec &file_spec) |
lldb::SBSymbolContextList | FindCompileUnits (const lldb::SBFileSpec &sb_file_spec) |
Find compile units related to *this target and passed source file. More... | |
lldb::ByteOrder | GetByteOrder () |
uint32_t | GetAddressByteSize () |
const char * | GetTriple () |
const char * | GetABIName () |
uint32_t | GetDataByteSize () |
Architecture data byte width accessor. More... | |
uint32_t | GetCodeByteSize () |
Architecture code byte width accessor. More... | |
uint32_t | GetMaximumNumberOfChildrenToDisplay () const |
Gets the target.max-children-count value It should be used to limit the number of children of large data structures to be displayed. More... | |
lldb::SBError | SetSectionLoadAddress (lldb::SBSection section, lldb::addr_t section_base_addr) |
Set the base load address for a module section. More... | |
lldb::SBError | ClearSectionLoadAddress (lldb::SBSection section) |
Clear the base load address for a module section. More... | |
lldb::SBError | SetModuleLoadAddress (lldb::SBModule module, int64_t sections_offset) |
Slide all file addresses for all module sections so that module appears to loaded at these slide addresses. More... | |
lldb::SBError | ClearModuleLoadAddress (lldb::SBModule module) |
Clear the section base load addresses for all sections in a module. More... | |
lldb::SBSymbolContextList | FindFunctions (const char *name, uint32_t name_type_mask=lldb::eFunctionNameTypeAny) |
Find functions by name. More... | |
lldb::SBValueList | FindGlobalVariables (const char *name, uint32_t max_matches) |
Find global and static variables by name. More... | |
lldb::SBValue | FindFirstGlobalVariable (const char *name) |
Find the first global (or static) variable by name. More... | |
lldb::SBValueList | FindGlobalVariables (const char *name, uint32_t max_matches, MatchType matchtype) |
Find global and static variables by pattern. More... | |
lldb::SBSymbolContextList | FindGlobalFunctions (const char *name, uint32_t max_matches, MatchType matchtype) |
Find global functions by their name with pattern matching. More... | |
void | Clear () |
lldb::SBAddress | ResolveFileAddress (lldb::addr_t file_addr) |
Resolve a current file address into a section offset address. More... | |
lldb::SBAddress | ResolveLoadAddress (lldb::addr_t vm_addr) |
Resolve a current load address into a section offset address. More... | |
lldb::SBAddress | ResolvePastLoadAddress (uint32_t stop_id, lldb::addr_t vm_addr) |
Resolve a current load address into a section offset address using the process stop ID to identify a time in the past. More... | |
SBSymbolContext | ResolveSymbolContextForAddress (const SBAddress &addr, uint32_t resolve_scope) |
size_t | ReadMemory (const SBAddress addr, void *buf, size_t size, lldb::SBError &error) |
Read target memory. More... | |
lldb::SBBreakpoint | BreakpointCreateByLocation (const char *file, uint32_t line) |
lldb::SBBreakpoint | BreakpointCreateByLocation (const lldb::SBFileSpec &file_spec, uint32_t line) |
lldb::SBBreakpoint | BreakpointCreateByLocation (const lldb::SBFileSpec &file_spec, uint32_t line, lldb::addr_t offset) |
lldb::SBBreakpoint | BreakpointCreateByLocation (const lldb::SBFileSpec &file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList &module_list) |
lldb::SBBreakpoint | BreakpointCreateByLocation (const lldb::SBFileSpec &file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList &module_list) |
lldb::SBBreakpoint | BreakpointCreateByLocation (const lldb::SBFileSpec &file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList &module_list, bool move_to_nearest_code) |
lldb::SBBreakpoint | BreakpointCreateByName (const char *symbol_name, const char *module_name=nullptr) |
lldb::SBBreakpoint | BreakpointCreateByName (const char *symbol_name, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByName (const char *symbol_name, uint32_t name_type_mask, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByName (const char *symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByNames (const char *symbol_name[], uint32_t num_names, uint32_t name_type_mask, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByNames (const char *symbol_name[], uint32_t num_names, uint32_t name_type_mask, lldb::LanguageType symbol_language, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByNames (const char *symbol_name[], uint32_t num_names, uint32_t name_type_mask, lldb::LanguageType symbol_language, lldb::addr_t offset, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByRegex (const char *symbol_name_regex, const char *module_name=nullptr) |
lldb::SBBreakpoint | BreakpointCreateByRegex (const char *symbol_name_regex, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateByRegex (const char *symbol_name_regex, lldb::LanguageType symbol_language, const SBFileSpecList &module_list, const SBFileSpecList &comp_unit_list) |
lldb::SBBreakpoint | BreakpointCreateBySourceRegex (const char *source_regex, const SBFileSpec &source_file, const char *module_name=nullptr) |
lldb::SBBreakpoint | BreakpointCreateBySourceRegex (const char *source_regex, const SBFileSpecList &module_list, const SBFileSpecList &source_file) |
lldb::SBBreakpoint | BreakpointCreateBySourceRegex (const char *source_regex, const SBFileSpecList &module_list, const SBFileSpecList &source_file, const SBStringList &func_names) |
lldb::SBBreakpoint | BreakpointCreateForException (lldb::LanguageType language, bool catch_bp, bool throw_bp) |
lldb::SBBreakpoint | BreakpointCreateByAddress (addr_t address) |
lldb::SBBreakpoint | BreakpointCreateBySBAddress (SBAddress &address) |
lldb::SBBreakpoint | BreakpointCreateFromScript (const char *class_name, SBStructuredData &extra_args, const SBFileSpecList &module_list, const SBFileSpecList &file_list, bool request_hardware=false) |
Create a breakpoint using a scripted resolver. More... | |
lldb::SBError | BreakpointsCreateFromFile (SBFileSpec &source_file, SBBreakpointList &new_bps) |
Read breakpoints from source_file and return the newly created breakpoints in bkpt_list. More... | |
lldb::SBError | BreakpointsCreateFromFile (SBFileSpec &source_file, SBStringList &matching_names, SBBreakpointList &new_bps) |
Read breakpoints from source_file and return the newly created breakpoints in bkpt_list. More... | |
lldb::SBError | BreakpointsWriteToFile (SBFileSpec &dest_file) |
Write breakpoints to dest_file. More... | |
lldb::SBError | BreakpointsWriteToFile (SBFileSpec &dest_file, SBBreakpointList &bkpt_list, bool append=false) |
Write breakpoints listed in bkpt_list to dest_file. More... | |
uint32_t | GetNumBreakpoints () const |
lldb::SBBreakpoint | GetBreakpointAtIndex (uint32_t idx) const |
bool | BreakpointDelete (break_id_t break_id) |
lldb::SBBreakpoint | FindBreakpointByID (break_id_t break_id) |
bool | FindBreakpointsByName (const char *name, SBBreakpointList &bkpt_list) |
void | GetBreakpointNames (SBStringList &names) |
void | DeleteBreakpointName (const char *name) |
bool | EnableAllBreakpoints () |
bool | DisableAllBreakpoints () |
bool | DeleteAllBreakpoints () |
uint32_t | GetNumWatchpoints () const |
lldb::SBWatchpoint | GetWatchpointAtIndex (uint32_t idx) const |
bool | DeleteWatchpoint (lldb::watch_id_t watch_id) |
lldb::SBWatchpoint | FindWatchpointByID (lldb::watch_id_t watch_id) |
lldb::SBWatchpoint | WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write, SBError &error) |
bool | EnableAllWatchpoints () |
bool | DisableAllWatchpoints () |
bool | DeleteAllWatchpoints () |
lldb::SBBroadcaster | GetBroadcaster () const |
lldb::SBType | FindFirstType (const char *type) |
lldb::SBTypeList | FindTypes (const char *type) |
lldb::SBType | GetBasicType (lldb::BasicType type) |
lldb::SBValue | CreateValueFromAddress (const char *name, lldb::SBAddress addr, lldb::SBType type) |
lldb::SBValue | CreateValueFromData (const char *name, lldb::SBData data, lldb::SBType type) |
lldb::SBValue | CreateValueFromExpression (const char *name, const char *expr) |
SBSourceManager | GetSourceManager () |
lldb::SBInstructionList | ReadInstructions (lldb::SBAddress base_addr, uint32_t count) |
lldb::SBInstructionList | ReadInstructions (lldb::SBAddress base_addr, uint32_t count, const char *flavor_string) |
lldb::SBInstructionList | GetInstructions (lldb::SBAddress base_addr, const void *buf, size_t size) |
lldb::SBInstructionList | GetInstructionsWithFlavor (lldb::SBAddress base_addr, const char *flavor_string, const void *buf, size_t size) |
lldb::SBInstructionList | GetInstructions (lldb::addr_t base_addr, const void *buf, size_t size) |
lldb::SBInstructionList | GetInstructionsWithFlavor (lldb::addr_t base_addr, const char *flavor_string, const void *buf, size_t size) |
lldb::SBSymbolContextList | FindSymbols (const char *name, lldb::SymbolType type=eSymbolTypeAny) |
bool | operator== (const lldb::SBTarget &rhs) const |
bool | operator!= (const lldb::SBTarget &rhs) const |
bool | GetDescription (lldb::SBStream &description, lldb::DescriptionLevel description_level) |
lldb::SBValue | EvaluateExpression (const char *expr) |
lldb::SBValue | EvaluateExpression (const char *expr, const SBExpressionOptions &options) |
lldb::addr_t | GetStackRedZoneSize () |
bool | IsLoaded (const lldb::SBModule &module) const |
lldb::SBLaunchInfo | GetLaunchInfo () const |
void | SetLaunchInfo (const lldb::SBLaunchInfo &launch_info) |
lldb::SBTrace | GetTrace () |
Get a SBTrace object the can manage the processor trace information of this target. More... | |
lldb::SBTrace | CreateTrace (SBError &error) |
Create a Trace object for the current target using the using the default supported tracing technology for this process. More... | |
Static Public Member Functions | |
static bool | EventIsTargetEvent (const lldb::SBEvent &event) |
static lldb::SBTarget | GetTargetFromEvent (const lldb::SBEvent &event) |
static uint32_t | GetNumModulesFromEvent (const lldb::SBEvent &event) |
static lldb::SBModule | GetModuleAtIndexFromEvent (const uint32_t idx, const lldb::SBEvent &event) |
static const char * | GetBroadcasterClassName () |
Protected Member Functions | |
lldb::TargetSP | GetSP () const |
void | SetSP (const lldb::TargetSP &target_sp) |
Private Attributes | |
lldb::TargetSP | m_opaque_sp |
Friends | |
class | SBAddress |
class | SBBlock |
class | SBBreakpointList |
class | SBBreakpointNameImpl |
class | SBDebugger |
class | SBExecutionContext |
class | SBFunction |
class | SBInstruction |
class | SBModule |
class | SBPlatform |
class | SBProcess |
class | SBSection |
class | SBSourceManager |
class | SBSymbol |
class | SBValue |
class | SBVariablesOptions |
Definition at line 29 of file SBTarget.h.
anonymous enum |
Enumerator | |
---|---|
eBroadcastBitBreakpointChanged | |
eBroadcastBitModulesLoaded | |
eBroadcastBitModulesUnloaded | |
eBroadcastBitWatchpointChanged | |
eBroadcastBitSymbolsLoaded |
Definition at line 32 of file SBTarget.h.
SBTarget::SBTarget | ( | ) |
Definition at line 96 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
SBTarget::SBTarget | ( | const lldb::SBTarget & | rhs | ) |
Definition at line 98 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBTarget::SBTarget | ( | const lldb::TargetSP & | target_sp | ) |
|
default |
lldb::SBModule SBTarget::AddModule | ( | const char * | path, |
const char * | triple, | ||
const char * | uuid | ||
) |
Definition at line 1468 of file SBTarget.cpp.
References AddModule(), and LLDB_INSTRUMENT_VA.
lldb::SBModule SBTarget::AddModule | ( | const char * | path, |
const char * | triple, | ||
const char * | uuid_cstr, | ||
const char * | symfile | ||
) |
Definition at line 1475 of file SBTarget.cpp.
References lldb_private::ModuleSpec::GetArchitecture(), lldb_private::ModuleSpec::GetFileSpec(), GetSP(), lldb_private::ModuleSpec::GetSymbolFileSpec(), lldb_private::ModuleSpec::GetUUID(), LLDB_INSTRUMENT_VA, lldb_private::FileSpec::SetFile(), lldb_private::UUID::SetFromStringRef(), and lldb::SBModule::SetSP().
lldb::SBModule SBTarget::AddModule | ( | const SBModuleSpec & | module_spec | ) |
Definition at line 1503 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBModuleSpec::m_opaque_up, and lldb::SBModule::SetSP().
bool SBTarget::AddModule | ( | lldb::SBModule & | module | ) |
Definition at line 1514 of file SBTarget.cpp.
References lldb::SBModule::GetSP(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by AddModule().
void SBTarget::AppendImageSearchPath | ( | const char * | from, |
const char * | to, | ||
lldb::SBError & | error | ||
) |
Definition at line 1451 of file SBTarget.cpp.
References error(), GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBProcess SBTarget::Attach | ( | SBAttachInfo & | attach_info, |
SBError & | error | ||
) |
Definition at line 429 of file SBTarget.cpp.
References AttachToProcess(), error(), lldb_private::ProcessInstanceInfo::GetEffectiveUserID(), lldb_private::ProcessInfo::GetProcessID(), GetSP(), LLDB_INSTRUMENT_VA, lldb_private::ProcessInfo::ProcessIDIsValid(), lldb::SBAttachInfo::ref(), lldb::SBProcess::SetSP(), lldb_private::ProcessInfo::SetUserID(), and lldb_private::ProcessInfo::UserIDIsValid().
lldb::SBProcess SBTarget::AttachToProcessWithID | ( | SBListener & | listener, |
lldb::pid_t | pid, | ||
lldb::SBError & | error | ||
) |
Attach to process with pid.
[in] | listener | An optional listener that will receive all process events. If listener is valid then listener will listen to all process events. If not valid, then this target's debugger (SBTarget::GetDebugger()) will listen to all process events. |
[in] | pid | The process ID to attach to. |
[out] | error | An error explaining what went wrong if attach fails. |
Definition at line 462 of file SBTarget.cpp.
References AttachToProcess(), error(), lldb_private::ProcessInstanceInfo::GetEffectiveUserID(), lldb::SBListener::GetSP(), GetSP(), lldb::SBListener::IsValid(), LLDB_INSTRUMENT_VA, lldb_private::ProcessAttachInfo::SetListener(), lldb_private::ProcessInfo::SetProcessID(), lldb::SBProcess::SetSP(), and lldb_private::ProcessInfo::SetUserID().
lldb::SBProcess SBTarget::AttachToProcessWithName | ( | SBListener & | listener, |
const char * | name, | ||
bool | wait_for, | ||
lldb::SBError & | error | ||
) |
Attach to process with name.
[in] | listener | An optional listener that will receive all process events. If listener is valid then listener will listen to all process events. If not valid, then this target's debugger (SBTarget::GetDebugger()) will listen to all process events. |
[in] | name | Basename of process to attach to. |
[in] | wait_for | If true wait for a new instance of 'name' to be launched. |
[out] | error | An error explaining what went wrong if attach fails. |
Definition at line 491 of file SBTarget.cpp.
References AttachToProcess(), error(), lldb_private::ProcessInfo::GetExecutableFile(), lldb::SBListener::GetSP(), GetSP(), lldb::SBListener::IsValid(), LLDB_INSTRUMENT_VA, lldb_private::FileSpec::SetFile(), lldb_private::ProcessAttachInfo::SetListener(), lldb::SBProcess::SetSP(), and lldb_private::ProcessAttachInfo::SetWaitForLaunch().
SBBreakpoint SBTarget::BreakpointCreateByAddress | ( | addr_t | address | ) |
Definition at line 927 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const char * | file, |
uint32_t | line | ||
) |
Definition at line 669 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA, lldb::SBBreakpoint, and lldb::SBFileSpec.
Referenced by BreakpointCreateByLocation().
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const lldb::SBFileSpec & | file_spec, |
uint32_t | line | ||
) |
Definition at line 678 of file SBTarget.cpp.
References BreakpointCreateByLocation(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const lldb::SBFileSpec & | file_spec, |
uint32_t | line, | ||
lldb::addr_t | offset | ||
) |
Definition at line 686 of file SBTarget.cpp.
References BreakpointCreateByLocation(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const lldb::SBFileSpec & | file_spec, |
uint32_t | line, | ||
lldb::addr_t | offset, | ||
SBFileSpecList & | module_list | ||
) |
Definition at line 695 of file SBTarget.cpp.
References BreakpointCreateByLocation(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const lldb::SBFileSpec & | file_spec, |
uint32_t | line, | ||
uint32_t | column, | ||
lldb::addr_t | offset, | ||
SBFileSpecList & | module_list | ||
) |
Definition at line 704 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb::SBFileSpecList::get(), lldb::SBFileSpecList::GetSize(), GetSP(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByLocation | ( | const lldb::SBFileSpec & | file_spec, |
uint32_t | line, | ||
uint32_t | column, | ||
lldb::addr_t | offset, | ||
SBFileSpecList & | module_list, | ||
bool | move_to_nearest_code | ||
) |
Definition at line 731 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb::SBFileSpecList::get(), lldb::SBFileSpecList::GetSize(), GetSP(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByName | ( | const char * | symbol_name, |
const char * | module_name = nullptr |
||
) |
Definition at line 760 of file SBTarget.cpp.
References lldb::eLanguageTypeUnknown, lldb_private::eLazyBoolCalculate, GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by BreakpointCreateByName().
lldb::SBBreakpoint SBTarget::BreakpointCreateByName | ( | const char * | symbol_name, |
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 790 of file SBTarget.cpp.
References BreakpointCreateByName(), lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateByName | ( | const char * | symbol_name, |
uint32_t | name_type_mask, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 801 of file SBTarget.cpp.
References BreakpointCreateByName(), lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateByName | ( | const char * | symbol_name, |
uint32_t | name_type_mask, | ||
lldb::LanguageType | symbol_language, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 812 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb::SBFileSpecList::get(), GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateByNames | ( | const char * | symbol_name[], |
uint32_t | num_names, | ||
uint32_t | name_type_mask, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 835 of file SBTarget.cpp.
References lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
Referenced by BreakpointCreateByNames().
lldb::SBBreakpoint SBTarget::BreakpointCreateByNames | ( | const char * | symbol_name[], |
uint32_t | num_names, | ||
uint32_t | name_type_mask, | ||
lldb::LanguageType | symbol_language, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 846 of file SBTarget.cpp.
References BreakpointCreateByNames(), lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateByNames | ( | const char * | symbol_name[], |
uint32_t | num_names, | ||
uint32_t | name_type_mask, | ||
lldb::LanguageType | symbol_language, | ||
lldb::addr_t | offset, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 858 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb::SBFileSpecList::get(), GetSP(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateByRegex | ( | const char * | symbol_name_regex, |
const char * | module_name = nullptr |
||
) |
Definition at line 881 of file SBTarget.cpp.
References lldb::SBFileSpecList::Append(), lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
Referenced by BreakpointCreateByRegex().
lldb::SBBreakpoint SBTarget::BreakpointCreateByRegex | ( | const char * | symbol_name_regex, |
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 895 of file SBTarget.cpp.
References BreakpointCreateByRegex(), lldb::eLanguageTypeUnknown, and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateByRegex | ( | const char * | symbol_name_regex, |
lldb::LanguageType | symbol_language, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | comp_unit_list | ||
) |
Definition at line 904 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb::SBFileSpecList::get(), GetSP(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::BreakpointCreateBySBAddress | ( | SBAddress & | address | ) |
Definition at line 941 of file SBTarget.cpp.
References GetSP(), lldb::SBAddress::IsValid(), LLDB_INSTRUMENT_VA, and lldb::SBAddress::ref().
lldb::SBBreakpoint SBTarget::BreakpointCreateBySourceRegex | ( | const char * | source_regex, |
const SBFileSpec & | source_file, | ||
const char * | module_name = nullptr |
||
) |
Definition at line 960 of file SBTarget.cpp.
References lldb::SBFileSpecList::Append(), lldb::SBFileSpec::IsValid(), and LLDB_INSTRUMENT_VA.
Referenced by BreakpointCreateBySourceRegex().
lldb::SBBreakpoint SBTarget::BreakpointCreateBySourceRegex | ( | const char * | source_regex, |
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | source_file | ||
) |
Definition at line 980 of file SBTarget.cpp.
References BreakpointCreateBySourceRegex(), LLDB_INSTRUMENT_VA, and lldb::SBStringList.
lldb::SBBreakpoint SBTarget::BreakpointCreateBySourceRegex | ( | const char * | source_regex, |
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | source_file, | ||
const SBStringList & | func_names | ||
) |
Definition at line 989 of file SBTarget.cpp.
References lldb_private::eLazyBoolCalculate, lldb::SBFileSpecList::get(), lldb::SBStringList::GetSize(), GetSP(), lldb::SBStringList::GetStringAtIndex(), and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateForException | ( | lldb::LanguageType | language, |
bool | catch_bp, | ||
bool | throw_bp | ||
) |
Definition at line 1017 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBBreakpoint SBTarget::BreakpointCreateFromScript | ( | const char * | class_name, |
SBStructuredData & | extra_args, | ||
const SBFileSpecList & | module_list, | ||
const SBFileSpecList & | file_list, | ||
bool | request_hardware = false |
||
) |
Create a breakpoint using a scripted resolver.
[in] | class_name | This is the name of the class that implements a scripted resolver. |
[in] | extra_args | This is an SBStructuredData object that will get passed to the constructor of the class in class_name. You can use this to reuse the same class, parametrizing with entries from this dictionary. |
module_list | If this is non-empty, this will be used as the module filter in the SearchFilter created for this breakpoint. | |
file_list | If this is non-empty, this will be used as the comp unit filter in the SearchFilter created for this breakpoint. |
Definition at line 1033 of file SBTarget.cpp.
References error(), lldb::SBFileSpecList::get(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBStructuredData::m_impl_up.
bool SBTarget::BreakpointDelete | ( | break_id_t | break_id | ) |
Definition at line 1083 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBError SBTarget::BreakpointsCreateFromFile | ( | SBFileSpec & | source_file, |
SBBreakpointList & | new_bps | ||
) |
Read breakpoints from source_file and return the newly created breakpoints in bkpt_list.
[in] | source_file | The file from which to read the breakpoints. |
[out] | new_bps | A list of the newly created breakpoints. |
Definition at line 1192 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBError SBTarget::BreakpointsCreateFromFile | ( | SBFileSpec & | source_file, |
SBStringList & | matching_names, | ||
SBBreakpointList & | new_bps | ||
) |
Read breakpoints from source_file and return the newly created breakpoints in bkpt_list.
[in] | source_file | The file from which to read the breakpoints. |
[in] | matching_names | Only read in breakpoints whose names match one of the names in this list. |
[out] | new_bps | A list of the newly created breakpoints. |
Definition at line 1200 of file SBTarget.cpp.
References lldb::SBBreakpointList::AppendByID(), lldb::SBError::Fail(), lldb_private::BreakpointID::GetBreakpointID(), lldb_private::BreakpointIDList::GetBreakpointIDAtIndex(), lldb_private::BreakpointIDList::GetSize(), lldb::SBStringList::GetSize(), GetSP(), lldb::SBStringList::GetStringAtIndex(), LLDB_INSTRUMENT_VA, lldb::SBFileSpec::ref(), lldb::SBError::ref(), and lldb::SBError::SetErrorString().
lldb::SBError SBTarget::BreakpointsWriteToFile | ( | SBFileSpec & | dest_file | ) |
Write breakpoints to dest_file.
[in] | dest_file | The file to which to write the breakpoints. |
Definition at line 1234 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetErrorString().
lldb::SBError SBTarget::BreakpointsWriteToFile | ( | SBFileSpec & | dest_file, |
SBBreakpointList & | bkpt_list, | ||
bool | append = false |
||
) |
Write breakpoints listed in bkpt_list to dest_file.
[in] | dest_file | The file to which to write the breakpoints. |
[in] | bkpt_list | Only write breakpoints from this list. |
[in] | append | If true, append the breakpoints in bkpt_list to the others serialized in dest_file. If dest_file doesn't exist, then a new file will be created and the breakpoints in bkpt_list written to it. |
Definition at line 1247 of file SBTarget.cpp.
References lldb::SBBreakpointList::CopyToBreakpointIDList(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBFileSpec::ref(), lldb::SBError::ref(), and lldb::SBError::SetErrorString().
void SBTarget::Clear | ( | ) |
Definition at line 1538 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by lldb::SBDebugger::DeleteTarget().
SBError SBTarget::ClearModuleLoadAddress | ( | lldb::SBModule | module | ) |
Clear the section base load addresses for all sections in a module.
[in] | module | The module to unload. |
Definition at line 2125 of file SBTarget.cpp.
References lldb_private::ModuleList::Append(), lldb_private::SectionList::GetSectionAtIndex(), lldb_private::ObjectFile::GetSectionList(), lldb_private::SectionList::GetSize(), lldb::SBModule::GetSP(), GetSP(), LLDB_INSTRUMENT_VA, PATH_MAX, and lldb::SBError::SetErrorStringWithFormat().
SBError SBTarget::ClearSectionLoadAddress | ( | lldb::SBSection | section | ) |
Clear the base load address for a module section.
[in] | section | The section whose base load address will be cleared within this target. |
Definition at line 2057 of file SBTarget.cpp.
References lldb_private::ModuleList::Append(), lldb::SBSection::GetSP(), GetSP(), lldb::SBSection::IsValid(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetErrorStringWithFormat().
lldb::SBProcess SBTarget::ConnectRemote | ( | SBListener & | listener, |
const char * | url, | ||
const char * | plugin_name, | ||
SBError & | error | ||
) |
Connect to a remote debug server with url.
[in] | listener | An optional listener that will receive all process events. If listener is valid then listener will listen to all process events. If not valid, then this target's debugger (SBTarget::GetDebugger()) will listen to all process events. |
[in] | url | The url to connect to, e.g., 'connect://localhost:12345'. |
[in] | plugin_name | The plugin name to be used; can be nullptr. |
[out] | error | An error explaining what went wrong if the connect fails. |
Definition at line 518 of file SBTarget.cpp.
References error(), GetSP(), lldb::SBListener::IsValid(), LLDB_INSTRUMENT_VA, lldb::SBListener::m_opaque_sp, and lldb::SBProcess::SetSP().
lldb::SBTrace SBTarget::CreateTrace | ( | lldb::SBError & | error | ) |
Create a Trace object for the current target using the using the default supported tracing technology for this process.
[out] | error | An error if a Trace already exists or the trace couldn't be created. |
Definition at line 2309 of file SBTarget.cpp.
References error(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBTrace, and lldb_private::toString().
SBValue SBTarget::CreateValueFromAddress | ( | const char * | name, |
lldb::SBAddress | addr, | ||
lldb::SBType | type | ||
) |
Definition at line 1385 of file SBTarget.cpp.
References lldb::SBAddress::GetLoadAddress(), lldb::SBType::GetSP(), lldb::SBAddress::IsValid(), IsValid(), lldb::SBType::IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBValue::SetSP().
lldb::SBValue SBTarget::CreateValueFromData | ( | const char * | name, |
lldb::SBData | data, | ||
lldb::SBType | type | ||
) |
Definition at line 1403 of file SBTarget.cpp.
References lldb::SBType::GetSP(), lldb::SBData::IsValid(), IsValid(), lldb::SBType::IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBValue::SetSP().
lldb::SBValue SBTarget::CreateValueFromExpression | ( | const char * | name, |
const char * | expr | ||
) |
Definition at line 1421 of file SBTarget.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBValue::SetSP().
bool SBTarget::DeleteAllBreakpoints | ( | ) |
Definition at line 1180 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::DeleteAllWatchpoints | ( | ) |
Definition at line 1437 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
void SBTarget::DeleteBreakpointName | ( | const char * | name | ) |
Definition at line 1146 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::DeleteWatchpoint | ( | lldb::watch_id_t | watch_id | ) |
Definition at line 1290 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::DisableAllBreakpoints | ( | ) |
Definition at line 1168 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::DisableAllWatchpoints | ( | ) |
Definition at line 1371 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::EnableAllBreakpoints | ( | ) |
Definition at line 1156 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::EnableAllWatchpoints | ( | ) |
Definition at line 1357 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBValue SBTarget::EvaluateExpression | ( | const char * | expr | ) |
Definition at line 2190 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, SBValue, lldb::SBExpressionOptions::SetFetchDynamicValue(), and lldb::SBExpressionOptions::SetUnwindOnError().
lldb::SBValue SBTarget::EvaluateExpression | ( | const char * | expr, |
const SBExpressionOptions & | options | ||
) |
Definition at line 2205 of file SBTarget.cpp.
References lldb_private::Target::EvaluateExpression(), lldb::SBExpressionOptions::GetFetchDynamicValue(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::GetLog(), GetSP(), lldb::SBValue::GetSummary(), lldb_private::ExecutionContext::GetTargetPtr(), lldb::SBValue::GetValue(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, lldb::SBExpressionOptions::ref(), and lldb::SBValue::SetSP().
|
static |
Definition at line 117 of file SBTarget.cpp.
References lldb::SBEvent::get(), and LLDB_INSTRUMENT_VA.
SBBreakpoint SBTarget::FindBreakpointByID | ( | break_id_t | break_id | ) |
Definition at line 1096 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_BREAK_ID.
bool SBTarget::FindBreakpointsByName | ( | const char * | name, |
SBBreakpointList & | bkpt_list | ||
) |
Definition at line 1109 of file SBTarget.cpp.
References lldb::SBBreakpointList::AppendByID(), lldb_private::GetLog(), GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOG, and lldb_private::toString().
SBSymbolContextList SBTarget::FindCompileUnits | ( | const lldb::SBFileSpec & | sb_file_spec | ) |
Find compile units related to *this target and passed source file.
[in] | sb_file_spec | A lldb::SBFileSpec object that contains source file specification. |
Definition at line 1557 of file SBTarget.cpp.
References GetSP(), lldb::SBFileSpec::IsValid(), and LLDB_INSTRUMENT_VA.
lldb::SBValue SBTarget::FindFirstGlobalVariable | ( | const char * | name | ) |
Find the first global (or static) variable by name.
[in] | name | The name of the global or static variable we are looking for. |
Definition at line 1915 of file SBTarget.cpp.
References FindGlobalVariables(), lldb::SBValueList::GetSize(), lldb::SBValueList::GetValueAtIndex(), lldb::SBValueList::IsValid(), LLDB_INSTRUMENT_VA, and SBValue.
lldb::SBType SBTarget::FindFirstType | ( | const char * | type | ) |
Definition at line 1748 of file SBTarget.cpp.
References lldb_private::ModuleList::GetModuleAtIndex(), lldb_private::ModuleList::GetSize(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBType.
lldb::SBSymbolContextList SBTarget::FindFunctions | ( | const char * | name, |
uint32_t | name_type_mask = lldb::eFunctionNameTypeAny |
||
) |
Find functions by name.
[in] | name | The name of the function we are looking for. |
[in] | name_type_mask | A logical OR of one or more FunctionNameType enum bits that indicate what kind of names should be used when doing the lookup. Bits include fully qualified names, base names, C++ methods, or ObjC selectors. See FunctionNameType for more details. |
Definition at line 1690 of file SBTarget.cpp.
References GetSP(), lldb_private::ModuleFunctionSearchOptions::include_inlines, lldb_private::ModuleFunctionSearchOptions::include_symbols, and LLDB_INSTRUMENT_VA.
lldb::SBSymbolContextList SBTarget::FindGlobalFunctions | ( | const char * | name, |
uint32_t | max_matches, | ||
MatchType | matchtype | ||
) |
Find global functions by their name with pattern matching.
[in] | name | The pattern to search for global or static variables |
[in] | max_matches | Allow the number of matches to be limited to max_matches. |
[in] | matchtype | The match type to use. |
Definition at line 1712 of file SBTarget.cpp.
References lldb::eMatchTypeRegex, lldb::eMatchTypeStartsWith, GetSP(), lldb_private::ModuleFunctionSearchOptions::include_inlines, lldb_private::ModuleFunctionSearchOptions::include_symbols, LLDB_INSTRUMENT_VA, and string().
SBValueList SBTarget::FindGlobalVariables | ( | const char * | name, |
uint32_t | max_matches | ||
) |
Find global and static variables by name.
[in] | name | The name of the global or static variable we are looking for. |
[in] | max_matches | Allow the number of matches to be limited to max_matches. |
Definition at line 1844 of file SBTarget.cpp.
References lldb::SBValueList::Append(), lldb_private::VariableList::Empty(), GetSP(), LLDB_INSTRUMENT_VA, and SBValue.
Referenced by FindFirstGlobalVariable().
SBValueList SBTarget::FindGlobalVariables | ( | const char * | name, |
uint32_t | max_matches, | ||
MatchType | matchtype | ||
) |
Find global and static variables by pattern.
[in] | name | The pattern to search for global or static variables |
[in] | max_matches | Allow the number of matches to be limited to max_matches. |
[in] | matchtype | The match type to use. |
Definition at line 1871 of file SBTarget.cpp.
References lldb::SBValueList::Append(), lldb::eMatchTypeNormal, lldb::eMatchTypeRegex, lldb::eMatchTypeStartsWith, lldb_private::VariableList::Empty(), GetSP(), LLDB_INSTRUMENT_VA, SBValue, and string().
SBModule SBTarget::FindModule | ( | const lldb::SBFileSpec & | file_spec | ) |
Definition at line 1544 of file SBTarget.cpp.
References GetSP(), lldb::SBFileSpec::IsValid(), LLDB_INSTRUMENT_VA, and lldb::SBModule::SetSP().
lldb::SBSymbolContextList SBTarget::FindSymbols | ( | const char * | name, |
lldb::SymbolType | type = eSymbolTypeAny |
||
) |
Definition at line 2176 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBTypeList SBTarget::FindTypes | ( | const char * | type | ) |
Definition at line 1801 of file SBTarget.cpp.
References lldb::SBTypeList::Append(), lldb_private::ModuleList::FindTypes(), lldb_private::TypeList::GetSize(), lldb::SBTypeList::GetSize(), GetSP(), lldb_private::TypeList::GetTypeAtIndex(), LLDB_INSTRUMENT_VA, lldb::SBType, and UINT32_MAX.
SBWatchpoint SBTarget::FindWatchpointByID | ( | lldb::watch_id_t | watch_id | ) |
Definition at line 1305 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, LLDB_INVALID_WATCH_ID, and lldb::SBWatchpoint::SetSP().
const char * SBTarget::GetABIName | ( | ) |
Definition at line 1591 of file SBTarget.cpp.
References lldb_private::ConstString::GetCString(), GetSP(), LLDB_INSTRUMENT_VA, and string().
uint32_t SBTarget::GetAddressByteSize | ( | ) |
Definition at line 1633 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBType SBTarget::GetBasicType | ( | lldb::BasicType | type | ) |
Definition at line 1789 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBType.
SBBreakpoint SBTarget::GetBreakpointAtIndex | ( | uint32_t | idx | ) | const |
Definition at line 1071 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
void SBTarget::GetBreakpointNames | ( | SBStringList & | names | ) |
Definition at line 1130 of file SBTarget.cpp.
References lldb::SBStringList::AppendString(), lldb::SBStringList::Clear(), GetSP(), and LLDB_INSTRUMENT_VA.
SBBroadcaster SBTarget::GetBroadcaster | ( | ) | const |
Definition at line 1666 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
|
static |
Definition at line 146 of file SBTarget.cpp.
References LLDB_INSTRUMENT.
lldb::ByteOrder SBTarget::GetByteOrder | ( | ) |
Definition at line 1567 of file SBTarget.cpp.
References lldb::eByteOrderInvalid, GetSP(), and LLDB_INSTRUMENT_VA.
uint32_t SBTarget::GetCodeByteSize | ( | ) |
Architecture code byte width accessor.
Definition at line 1613 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::GetCollectingStats | ( | ) |
Returns whether statistics collection are enabled.
Definition at line 223 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
uint32_t SBTarget::GetDataByteSize | ( | ) |
Architecture data byte width accessor.
Definition at line 1603 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBDebugger SBTarget::GetDebugger | ( | ) | const |
Definition at line 189 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBDebugger::reset().
bool SBTarget::GetDescription | ( | lldb::SBStream & | description, |
lldb::DescriptionLevel | description_level | ||
) |
Definition at line 1675 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
Referenced by lldb::SBDebugger::GetSelectedTarget(), and lldb::SBDebugger::SetSelectedTarget().
SBEnvironment SBTarget::GetEnvironment | ( | ) |
Return the environment variables that would be used to launch a new process.
Definition at line 2288 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBEnvironment.
SBFileSpec SBTarget::GetExecutable | ( | ) |
Definition at line 550 of file SBTarget.cpp.
References lldb_private::Module::GetFileSpec(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBFileSpec::SetFileSpec().
Referenced by lldb::SBProcess::GetDescription().
lldb::SBInstructionList SBTarget::GetInstructions | ( | lldb::addr_t | base_addr, |
const void * | buf, | ||
size_t | size | ||
) |
Definition at line 2001 of file SBTarget.cpp.
References GetInstructionsWithFlavor(), LLDB_INSTRUMENT_VA, and ResolveLoadAddress().
lldb::SBInstructionList SBTarget::GetInstructions | ( | lldb::SBAddress | base_addr, |
const void * | buf, | ||
size_t | size | ||
) |
Definition at line 1968 of file SBTarget.cpp.
References GetInstructionsWithFlavor(), and LLDB_INSTRUMENT_VA.
lldb::SBInstructionList SBTarget::GetInstructionsWithFlavor | ( | lldb::addr_t | base_addr, |
const char * | flavor_string, | ||
const void * | buf, | ||
size_t | size | ||
) |
Definition at line 2011 of file SBTarget.cpp.
References GetInstructionsWithFlavor(), LLDB_INSTRUMENT_VA, and ResolveLoadAddress().
lldb::SBInstructionList SBTarget::GetInstructionsWithFlavor | ( | lldb::SBAddress | base_addr, |
const char * | flavor_string, | ||
const void * | buf, | ||
size_t | size | ||
) |
Definition at line 1977 of file SBTarget.cpp.
References lldb::SBAddress::get(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBInstructionList::SetDisassembler(), and UINT32_MAX.
Referenced by GetInstructions(), and GetInstructionsWithFlavor().
lldb::SBLaunchInfo SBTarget::GetLaunchInfo | ( | ) | const |
Definition at line 2270 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBLaunchInfo::set_ref().
Referenced by LaunchSimple().
uint32_t SBTarget::GetMaximumNumberOfChildrenToDisplay | ( | ) | const |
Gets the target.max-children-count value It should be used to limit the number of children of large data structures to be displayed.
Definition at line 1623 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Definition at line 1642 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBModule::SetSP().
|
static |
Definition at line 137 of file SBTarget.cpp.
References lldb::SBEvent::get(), lldb_private::ModuleList::GetModuleAtIndex(), LLDB_INSTRUMENT_VA, and SBModule.
uint32_t SBTarget::GetNumBreakpoints | ( | ) | const |
Definition at line 1060 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
uint32_t SBTarget::GetNumModules | ( | ) | const |
Definition at line 1525 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
|
static |
Definition at line 129 of file SBTarget.cpp.
References lldb::SBEvent::get(), lldb_private::ModuleList::GetSize(), and LLDB_INSTRUMENT_VA.
uint32_t SBTarget::GetNumWatchpoints | ( | ) | const |
Definition at line 1267 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBPlatform SBTarget::GetPlatform | ( | ) |
Return the platform object associated with the target.
After return, the platform object should be checked for validity.
Definition at line 176 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBPlatform::m_opaque_sp, and SBPlatform.
SBProcess SBTarget::GetProcess | ( | ) |
Definition at line 162 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBProcess::SetSP().
SBSourceManager SBTarget::GetSourceManager | ( | ) |
Definition at line 1924 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
|
protected |
Definition at line 576 of file SBTarget.cpp.
References m_opaque_sp.
Referenced by AddModule(), AppendImageSearchPath(), Attach(), AttachToProcessWithID(), AttachToProcessWithName(), BreakpointCreateByAddress(), BreakpointCreateByLocation(), BreakpointCreateByName(), BreakpointCreateByNames(), BreakpointCreateByRegex(), BreakpointCreateBySBAddress(), BreakpointCreateBySourceRegex(), BreakpointCreateForException(), BreakpointCreateFromScript(), BreakpointDelete(), BreakpointsCreateFromFile(), BreakpointsWriteToFile(), ClearModuleLoadAddress(), ClearSectionLoadAddress(), ConnectRemote(), CreateTrace(), DeleteAllBreakpoints(), DeleteAllWatchpoints(), DeleteBreakpointName(), lldb::SBDebugger::DeleteTarget(), DeleteWatchpoint(), DisableAllBreakpoints(), DisableAllWatchpoints(), EnableAllBreakpoints(), EnableAllWatchpoints(), EvaluateExpression(), FindBreakpointByID(), FindBreakpointsByName(), FindCompileUnits(), FindFirstType(), FindFunctions(), FindGlobalFunctions(), lldb::SBModule::FindGlobalVariables(), FindGlobalVariables(), FindModule(), FindSymbols(), FindTypes(), FindWatchpointByID(), GetABIName(), GetAddressByteSize(), GetBasicType(), GetBreakpointAtIndex(), GetBreakpointNames(), GetBroadcaster(), GetByteOrder(), GetCodeByteSize(), GetCollectingStats(), lldb::SBInstruction::GetComment(), lldb::SBInstruction::GetControlFlowKind(), GetDataByteSize(), GetDebugger(), GetDescription(), lldb::SBDebugger::GetDummyTarget(), GetEnvironment(), GetExecutable(), lldb::SBVariablesOptions::GetIncludeRecognizedArguments(), lldb::SBDebugger::GetIndexOfTarget(), lldb::SBFunction::GetInstructions(), lldb::SBSymbol::GetInstructions(), GetInstructionsWithFlavor(), GetLaunchInfo(), lldb::SBSection::GetLoadAddress(), lldb::SBAddress::GetLoadAddress(), GetMaximumNumberOfChildrenToDisplay(), lldb::SBInstruction::GetMnemonic(), GetModuleAtIndex(), GetNumBreakpoints(), GetNumModules(), GetNumWatchpoints(), lldb::SBInstruction::GetOperands(), GetPlatform(), GetProcess(), GetStackRedZoneSize(), GetStatistics(), GetTrace(), GetTriple(), lldb::SBBlock::GetVariables(), GetWatchpointAtIndex(), lldb::SBDebugger::HandleProcessEvent(), Install(), IsLoaded(), Launch(), LaunchSimple(), LoadCore(), ReadInstructions(), ReadMemory(), RemoveModule(), ResolveFileAddress(), ResolveLoadAddress(), ResolvePastLoadAddress(), ResolveSymbolContextForAddress(), lldb::SBBreakpointNameImpl::SBBreakpointNameImpl(), lldb::SBExecutionContext::SBExecutionContext(), lldb::SBSourceManager::SBSourceManager(), SetCollectingStats(), SetLaunchInfo(), SetModuleLoadAddress(), SetSectionLoadAddress(), lldb::SBDebugger::SetSelectedTarget(), and WatchAddress().
lldb::addr_t SBTarget::GetStackRedZoneSize | ( | ) |
Definition at line 2239 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
SBStructuredData SBTarget::GetStatistics | ( | ) |
Returns a dump of the collected statistics.
Definition at line 199 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, and string().
|
static |
Definition at line 123 of file SBTarget.cpp.
References lldb::SBEvent::get(), and LLDB_INSTRUMENT_VA.
lldb::SBTrace SBTarget::GetTrace | ( | ) |
Get a SBTrace object the can manage the processor trace information of this target.
Definition at line 2299 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTrace.
const char * SBTarget::GetTriple | ( | ) |
Definition at line 1576 of file SBTarget.cpp.
References lldb_private::ConstString::GetCString(), GetSP(), LLDB_INSTRUMENT_VA, and string().
SBWatchpoint SBTarget::GetWatchpointAtIndex | ( | uint32_t | idx | ) | const |
Definition at line 1278 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBWatchpoint::SetSP().
SBError SBTarget::Install | ( | ) |
Install any binaries that need to be installed.
This function does nothing when debugging on the host system. When connected to remote platforms, the target's main executable and any modules that have their remote install path set will be installed on the remote platform. If the main executable doesn't have an install location set, it will be installed in the remote platform's working directory.
Definition at line 286 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::ref().
bool SBTarget::IsLoaded | ( | const lldb::SBModule & | module | ) | const |
Definition at line 2256 of file SBTarget.cpp.
References lldb::SBModule::GetSP(), GetSP(), and LLDB_INSTRUMENT_VA.
bool SBTarget::IsValid | ( | ) | const |
Definition at line 152 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by CreateValueFromAddress(), CreateValueFromData(), CreateValueFromExpression(), lldb::SBBreakpointNameImpl::SBBreakpointNameImpl(), and lldb::SBAddress::SetLoadAddress().
SBProcess SBTarget::Launch | ( | SBLaunchInfo & | launch_info, |
SBError & | error | ||
) |
Definition at line 383 of file SBTarget.cpp.
References error(), lldb::eStateAttaching, lldb::eStateConnected, lldb::eStateInvalid, lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ProcessInfo::GetExecutableFile(), lldb_private::Module::GetPlatformFileSpec(), GetSP(), lldb_private::ArchSpec::IsValid(), LLDB_INSTRUMENT_VA, lldb::SBLaunchInfo::ref(), lldb::SBLaunchInfo::set_ref(), lldb_private::ProcessInfo::SetExecutableFile(), and lldb::SBProcess::SetSP().
SBProcess SBTarget::Launch | ( | SBListener & | listener, |
char const ** | argv, | ||
char const ** | envp, | ||
const char * | stdin_path, | ||
const char * | stdout_path, | ||
const char * | stderr_path, | ||
const char * | working_directory, | ||
uint32_t | launch_flags, | ||
bool | stop_at_entry, | ||
lldb::SBError & | error | ||
) |
Launch a new process.
Launch a new process by spawning a new process using the target object's executable module's file as the file to launch. Arguments are given in argv, and the environment variables are in envp. Standard input and output files can be optionally re-directed to stdin_path, stdout_path, and stderr_path.
[in] | listener | An optional listener that will receive all process events. If listener is valid then listener will listen to all process events. If not valid, then this target's debugger (SBTarget::GetDebugger()) will listen to all process events. |
[in] | argv | The argument array. |
[in] | envp | The environment array. If this is null, the default environment values (provided through settings set target.env-vars ) will be used. |
[in] | stdin_path | The path to use when re-directing the STDIN of the new process. If all stdXX_path arguments are nullptr, a pseudo terminal will be used. |
[in] | stdout_path | The path to use when re-directing the STDOUT of the new process. If all stdXX_path arguments are nullptr, a pseudo terminal will be used. |
[in] | stderr_path | The path to use when re-directing the STDERR of the new process. If all stdXX_path arguments are nullptr, a pseudo terminal will be used. |
[in] | working_directory | The working directory to have the child process run in |
[in] | launch_flags | Some launch options specified by logical OR'ing lldb::LaunchFlags enumeration values together. |
[in] | stop_at_entry | If false do not stop the inferior at the entry point. |
[out] | error | An error object. Contains the reason if there is some failure. |
Definition at line 298 of file SBTarget.cpp.
References lldb_private::Args::AppendArguments(), error(), lldb::eStateAttaching, lldb::eStateConnected, lldb::eStateInvalid, lldb_private::ProcessInfo::GetArguments(), lldb_private::ProcessInfo::GetEnvironment(), lldb_private::Module::GetPlatformFileSpec(), lldb::SBListener::GetSP(), GetSP(), lldb::SBListener::IsValid(), LLDB_INSTRUMENT_VA, lldb_private::ProcessInfo::SetExecutableFile(), lldb_private::ProcessLaunchInfo::SetListener(), and lldb::SBProcess::SetSP().
Referenced by LaunchSimple().
SBProcess SBTarget::LaunchSimple | ( | const char ** | argv, |
const char ** | envp, | ||
const char * | working_directory | ||
) |
Launch a new process with sensible defaults.
[in] | argv | The argument array. |
[in] | envp | The environment array. If this isn't provided, the default environment values (provided through settings set target.env-vars ) will be used. |
[in] | working_directory | The working directory to have the child process run in |
Default: listener Set to the target's debugger (SBTarget::GetDebugger())
Default: launch_flags Empty launch flags
Default: stdin_path Default: stdout_path Default: stderr_path A pseudo terminal will be used.
Definition at line 262 of file SBTarget.cpp.
References error(), GetLaunchInfo(), GetSP(), Launch(), LLDB_INSTRUMENT_VA, SBProcess, lldb::SBLaunchInfo::SetArguments(), lldb::SBLaunchInfo::SetEnvironmentEntries(), lldb::SBLaunchInfo::SetExecutableFile(), and lldb::SBLaunchInfo::SetWorkingDirectory().
SBProcess SBTarget::LoadCore | ( | const char * | core_file | ) |
Definition at line 232 of file SBTarget.cpp.
References error(), and LLDB_INSTRUMENT_VA.
SBProcess SBTarget::LoadCore | ( | const char * | core_file, |
lldb::SBError & | error | ||
) |
Definition at line 239 of file SBTarget.cpp.
References error(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBProcess::SetSP().
|
explicit |
Definition at line 156 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
bool SBTarget::operator!= | ( | const lldb::SBTarget & | rhs | ) | const |
Definition at line 570 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
const SBTarget & SBTarget::operator= | ( | const lldb::SBTarget & | rhs | ) |
Definition at line 106 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBTarget::operator== | ( | const lldb::SBTarget & | rhs | ) | const |
Definition at line 564 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
lldb::SBInstructionList SBTarget::ReadInstructions | ( | lldb::SBAddress | base_addr, |
uint32_t | count | ||
) |
Definition at line 1931 of file SBTarget.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBInstructionList SBTarget::ReadInstructions | ( | lldb::SBAddress | base_addr, |
uint32_t | count, | ||
const char * | flavor_string | ||
) |
Definition at line 1938 of file SBTarget.cpp.
References error(), lldb::SBAddress::get(), lldb_private::DataBufferHeap::GetByteSize(), GetSP(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, and lldb::SBInstructionList::SetDisassembler().
size_t SBTarget::ReadMemory | ( | const SBAddress | addr, |
void * | buf, | ||
size_t | size, | ||
lldb::SBError & | error | ||
) |
Read target memory.
If a target process is running then memory is read from here. Otherwise the memory is read from the object files. For a target whose bytes are sized as a multiple of host bytes, the data read back will preserve the target's byte order.
[in] | addr | A target address to read from. |
[out] | buf | The buffer to read memory into. |
[in] | size | The maximum number of host bytes to read in the buffer passed into this call |
[out] | error | Status information is written here if the memory read fails. |
Definition at line 651 of file SBTarget.cpp.
References error(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBError::ref(), lldb::SBAddress::ref(), and lldb::SBError::SetErrorString().
bool SBTarget::RemoveModule | ( | lldb::SBModule | module | ) |
Definition at line 1657 of file SBTarget.cpp.
References lldb::SBModule::GetSP(), GetSP(), and LLDB_INSTRUMENT_VA.
lldb::SBAddress SBTarget::ResolveFileAddress | ( | lldb::addr_t | file_addr | ) |
Resolve a current file address into a section offset address.
[in] | file_addr | The file address to resolve. |
Definition at line 600 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBAddress::ref(), and lldb_private::Address::SetRawAddress().
lldb::SBAddress SBTarget::ResolveLoadAddress | ( | lldb::addr_t | vm_addr | ) |
Resolve a current load address into a section offset address.
[in] | vm_addr | A virtual address from the current process state that is to be translated into a section offset address. |
Definition at line 582 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBAddress::ref(), and lldb_private::Address::SetRawAddress().
Referenced by GetInstructions(), GetInstructionsWithFlavor(), and lldb::SBAddress::SetLoadAddress().
lldb::SBAddress SBTarget::ResolvePastLoadAddress | ( | uint32_t | stop_id, |
lldb::addr_t | vm_addr | ||
) |
Resolve a current load address into a section offset address using the process stop ID to identify a time in the past.
[in] | stop_id | Each time a process stops, the process stop ID integer gets incremented. These stop IDs are used to identify past times and can be used in history objects as a cheap way to store the time at which the sample was taken. Specifying UINT32_MAX will always resolve the address using the currently loaded sections. |
[in] | vm_addr | A virtual address from the current process state that is to be translated into a section offset address. |
Definition at line 616 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBAddress::ref(), and lldb_private::Address::SetRawAddress().
SBSymbolContext SBTarget::ResolveSymbolContextForAddress | ( | const SBAddress & | addr, |
uint32_t | resolve_scope | ||
) |
Definition at line 636 of file SBTarget.cpp.
References GetSP(), lldb::SBAddress::IsValid(), LLDB_INSTRUMENT_VA, lldb::SBSymbolContext::ref(), and lldb::SBAddress::ref().
void SBTarget::SetCollectingStats | ( | bool | v | ) |
Sets whether we should collect statistics on lldb or not.
[in] | v | A boolean to control the collection. |
Definition at line 214 of file SBTarget.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
void SBTarget::SetLaunchInfo | ( | const lldb::SBLaunchInfo & | launch_info | ) |
Definition at line 2280 of file SBTarget.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBLaunchInfo::ref().
SBError SBTarget::SetModuleLoadAddress | ( | lldb::SBModule | module, |
int64_t | sections_offset | ||
) |
Slide all file addresses for all module sections so that module appears to loaded at these slide addresses.
When you need all sections within a module to be loaded at a rigid slide from the addresses found in the module object file, this function will allow you to easily and quickly slide all module sections.
[in] | module | The module to load. |
[in] | sections_offset | An offset that will be applied to all section file addresses (the virtual addresses found in the object file itself). |
Definition at line 2091 of file SBTarget.cpp.
References lldb_private::ModuleList::Append(), lldb::SBModule::GetSP(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetErrorStringWithFormat().
SBError SBTarget::SetSectionLoadAddress | ( | lldb::SBSection | section, |
lldb::addr_t | section_base_addr | ||
) |
Set the base load address for a module section.
[in] | section | The section whose base load address will be set within this target. |
[in] | section_base_addr | The base address for the section. |
Definition at line 2020 of file SBTarget.cpp.
References lldb_private::ModuleList::Append(), lldb::SBSection::GetSP(), GetSP(), lldb::SBSection::IsValid(), LLDB_INSTRUMENT_VA, lldb::SBError::SetErrorString(), and lldb::SBError::SetErrorStringWithFormat().
|
protected |
Definition at line 578 of file SBTarget.cpp.
References m_opaque_sp.
Referenced by lldb::SBDebugger::CreateTarget(), lldb::SBDebugger::CreateTargetWithFileAndArch(), lldb::SBDebugger::CreateTargetWithFileAndTargetTriple(), lldb::SBDebugger::FindTargetWithFileAndArch(), lldb::SBDebugger::FindTargetWithLLDBProcess(), lldb::SBDebugger::FindTargetWithProcessID(), lldb::SBDebugger::GetDummyTarget(), lldb::SBDebugger::GetSelectedTarget(), lldb::SBExecutionContext::GetTarget(), lldb::SBProcess::GetTarget(), lldb::SBValue::GetTarget(), and lldb::SBDebugger::GetTargetAtIndex().
lldb::SBWatchpoint SBTarget::WatchAddress | ( | lldb::addr_t | addr, |
size_t | size, | ||
bool | read, | ||
bool | write, | ||
SBError & | error | ||
) |
Definition at line 1322 of file SBTarget.cpp.
References error(), GetSP(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, LLDB_WATCH_TYPE_READ, LLDB_WATCH_TYPE_WRITE, and lldb::SBWatchpoint::SetSP().
|
friend |
Definition at line 866 of file SBTarget.h.
|
friend |
Definition at line 867 of file SBTarget.h.
|
friend |
Definition at line 868 of file SBTarget.h.
|
friend |
Definition at line 869 of file SBTarget.h.
|
friend |
Definition at line 870 of file SBTarget.h.
|
friend |
Definition at line 871 of file SBTarget.h.
|
friend |
Definition at line 872 of file SBTarget.h.
|
friend |
Definition at line 873 of file SBTarget.h.
|
friend |
Definition at line 874 of file SBTarget.h.
Referenced by GetModuleAtIndexFromEvent().
|
friend |
Definition at line 875 of file SBTarget.h.
Referenced by GetPlatform().
|
friend |
Definition at line 876 of file SBTarget.h.
Referenced by LaunchSimple().
|
friend |
Definition at line 877 of file SBTarget.h.
|
friend |
Definition at line 878 of file SBTarget.h.
|
friend |
Definition at line 879 of file SBTarget.h.
|
friend |
Definition at line 880 of file SBTarget.h.
Referenced by EvaluateExpression(), FindFirstGlobalVariable(), and FindGlobalVariables().
|
friend |
Definition at line 881 of file SBTarget.h.
|
private |
Definition at line 891 of file SBTarget.h.
Referenced by Clear(), CreateValueFromAddress(), CreateValueFromData(), CreateValueFromExpression(), lldb::SBDebugger::DeleteTarget(), EvaluateExpression(), GetLaunchInfo(), GetSP(), operator!=(), operator=(), operator==(), SetLaunchInfo(), and SetSP().