Text of lldb.llvm.org › python_reference › lldb.SBTarget-class.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

lldb.SBTarget

Home Trees Indices Help LLDB python API Package lldb :: Class SBTarget [ hide private ] [ frames ] | no frames ] Class SBTarget source code Represents the target program running under the debugger. SBTarget supports module, breakpoint, and watchpoint iterations. For example, for m in target.module_iter(): print m produces: (x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out (x86_64) /usr/lib/dyld (x86_64) /usr/lib/libstdc++.6.dylib (x86_64) /usr/lib/libSystem.B.dylib (x86_64) /usr/lib/system/libmathCommon.A.dylib (x86_64) /usr/lib/libSystem.B.dylib(__commpage) and, for b in target.breakpoint_iter(): print b produces: SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1 SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1 and, for wp_loc in target.watchpoint_iter(): print wp_loc produces: Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12' hw_index = 0 hit_count = 2 ignore_count = 0 Nested Classes [ hide private ] modules_access A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.

Instance Methods [ hide private ] __repr__ ( self ) source code __init__ ( self , *args ) __init__(lldb::SBTarget self) -> SBTarget __init__(lldb::SBTarget self, SBTarget rhs) -> SBTarget source code char const * GetBroadcasterClassName () source code IsValid ( self ) IsValid(SBTarget self) -> bool source code __nonzero__ ( self ) source code __bool__ ( self ) source code EventIsTargetEvent ( *args ) EventIsTargetEvent(SBEvent event) -> bool source code GetTargetFromEvent ( *args ) GetTargetFromEvent(SBEvent event) -> SBTarget source code GetNumModulesFromEvent ( *args ) GetNumModulesFromEvent(SBEvent event) -> uint32_t source code GetModuleAtIndexFromEvent ( *args ) GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule source code GetProcess ( self ) GetProcess(SBTarget self) -> SBProcess source code GetPlatform ( self ) GetPlatform(SBTarget self) -> SBPlatform source code Install ( self ) Install(SBTarget self) -> SBError source code LaunchSimple ( self , *args ) LaunchSimple(SBTarget self, char const ** argv, char const ** envp, char const * working_directory) -> SBProcess source code Launch ( self , *args ) Launch(SBTarget self, SBListener listener, char const ** argv, char const ** envp, char const * stdin_path, char const * stdout_path, char const * stderr_path, char const * working_directory, uint32_t launch_flags, bool stop_at_entry, SBError error) -> SBProcess Launch(SBTarget self, SBLaunchInfo launch_info, SBError error) -> SBProcess source code LoadCore ( self , *args ) LoadCore(SBTarget self, char const * core_file) -> SBProcess LoadCore(SBTarget self, char const * core_file, SBError error) -> SBProcess source code Attach ( self , *args ) Attach(SBTarget self, SBAttachInfo attach_info, SBError error) -> SBProcess source code AttachToProcessWithID ( self , *args ) AttachToProcessWithID(SBTarget self, SBListener listener, lldb::pid_t pid, SBError error) -> SBProcess source code AttachToProcessWithName ( self , *args ) AttachToProcessWithName(SBTarget self, SBListener listener, char const * name, bool wait_for, SBError error) -> SBProcess source code ConnectRemote ( self , *args ) ConnectRemote(SBTarget self, SBListener listener, char const * url, char const * plugin_name, SBError error) -> SBProcess source code GetExecutable ( self ) GetExecutable(SBTarget self) -> SBFileSpec source code AppendImageSearchPath ( self , *args ) AppendImageSearchPath(SBTarget self, char const * _from, char const * to, SBError error) source code AddModule ( self , *args ) AddModule(SBTarget self, SBModule module) -> bool AddModule(SBTarget self, char const * path, char const * triple, char const * uuid) -> SBModule AddModule(SBTarget self, char const * path, char const * triple, char const * uuid_cstr, char const * symfile) -> SBModule AddModule(SBTarget self, SBModuleSpec module_spec) -> SBModule source code GetNumModules ( self ) GetNumModules(SBTarget self) -> uint32_t source code GetModuleAtIndex ( self , *args ) GetModuleAtIndex(SBTarget self, uint32_t idx) -> SBModule source code RemoveModule ( self , *args ) RemoveModule(SBTarget self, SBModule module) -> bool source code GetDebugger ( self ) GetDebugger(SBTarget self) -> SBDebugger source code FindModule ( self , *args ) FindModule(SBTarget self, SBFileSpec file_spec) -> SBModule source code FindCompileUnits ( self , *args ) FindCompileUnits(SBTarget self, SBFileSpec sb_file_spec) -> SBSymbolContextList source code GetByteOrder ( self ) GetByteOrder(SBTarget self) -> lldb::ByteOrder source code GetAddressByteSize ( self ) GetAddressByteSize(SBTarget self) -> uint32_t source code GetTriple ( self ) GetTriple(SBTarget self) -> char const * source code GetDataByteSize ( self ) GetDataByteSize(SBTarget self) -> uint32_t source code GetCodeByteSize ( self ) GetCodeByteSize(SBTarget self) -> uint32_t source code SetSectionLoadAddress ( self , *args ) SetSectionLoadAddress(SBTarget self, SBSection section, lldb::addr_t section_base_addr) -> SBError source code ClearSectionLoadAddress ( self , *args ) ClearSectionLoadAddress(SBTarget self, SBSection section) -> SBError source code SetModuleLoadAddress ( self , *args ) SetModuleLoadAddress(SBTarget self, SBModule module, int64_t sections_offset) -> SBError source code ClearModuleLoadAddress ( self , *args ) ClearModuleLoadAddress(SBTarget self, SBModule module) -> SBError source code FindFunctions ( self , *args ) FindFunctions(SBTarget self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList FindFunctions(SBTarget self, char const * name) -> SBSymbolContextList source code FindFirstType ( self , *args ) FindFirstType(SBTarget self, char const * type) -> SBType source code FindTypes ( self , *args ) FindTypes(SBTarget self, char const * type) -> SBTypeList source code GetBasicType ( self , *args ) GetBasicType(SBTarget self, lldb::BasicType type) -> SBType source code GetSourceManager ( self ) GetSourceManager(SBTarget self) -> SBSourceManager source code FindFirstGlobalVariable ( self , *args ) FindFirstGlobalVariable(SBTarget self, char const * name) -> SBValue source code FindGlobalVariables ( self , *args ) FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches) -> SBValueList FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBValueList source code FindGlobalFunctions ( self , *args ) FindGlobalFunctions(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBSymbolContextList source code Clear ( self ) Clear(SBTarget self) source code ResolveFileAddress ( self , *args ) ResolveFileAddress(SBTarget self, lldb::addr_t file_addr) -> SBAddress source code ResolveLoadAddress ( self , *args ) ResolveLoadAddress(SBTarget self, lldb::addr_t vm_addr) -> SBAddress source code ResolvePastLoadAddress ( self , *args ) ResolvePastLoadAddress(SBTarget self, uint32_t stop_id, lldb::addr_t vm_addr) -> SBAddress source code ResolveSymbolContextForAddress ( self , *args ) ResolveSymbolContextForAddress(SBTarget self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext source code ReadMemory ( self , *args ) ReadMemory(SBTarget self, SBAddress addr, void * buf, SBError error) -> size_t source code BreakpointCreateByLocation ( self , *args ) BreakpointCreateByLocation(SBTarget self, char const * file, uint32_t line) -> SBBreakpoint BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line) -> SBBreakpoint BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset) -> SBBreakpoint BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint BreakpointCreateByLocation(SBTarget self

The rest of this page is on the live site.