1 %feature("docstring", 2 "A section + offset based address class. 3 4 The SBAddress class allows addresses to be relative to a section 5 that can move during runtime due to images (executables, shared 6 libraries, bundles, frameworks) being loaded at different 7 addresses than the addresses found in the object file that 8 represents them on disk. There are currently two types of addresses 9 for a section: 10 11 * file addresses 12 * load addresses 13 14 File addresses represents the virtual addresses that are in the 'on 15 disk' object files. These virtual addresses are converted to be 16 relative to unique sections scoped to the object file so that 17 when/if the addresses slide when the images are loaded/unloaded 18 in memory, we can easily track these changes without having to 19 update every object (compile unit ranges, line tables, function 20 address ranges, lexical block and inlined subroutine address 21 ranges, global and static variables) each time an image is loaded or 22 unloaded. 23 24 Load addresses represents the virtual addresses where each section 25 ends up getting loaded at runtime. Before executing a program, it 26 is common for all of the load addresses to be unresolved. When a 27 DynamicLoader plug-in receives notification that shared libraries 28 have been loaded/unloaded, the load addresses of the main executable 29 and any images (shared libraries) will be resolved/unresolved. When 30 this happens, breakpoints that are in one of these sections can be 31 set/cleared. 32 33 See docstring of SBFunction for example usage of SBAddress." 34 ) lldb::SBAddress; 35 36 %feature("docstring", " 37 Create an address by resolving a load address using the supplied target.") 38 lldb::SBAddress::SBAddress; 39 40 %feature("docstring", " 41 GetSymbolContext() and the following can lookup symbol information for a given address. 42 An address might refer to code or data from an existing module, or it 43 might refer to something on the stack or heap. The following functions 44 will only return valid values if the address has been resolved to a code 45 or data address using :py:class:`SBAddress.SetLoadAddress' or 46 :py:class:`SBTarget.ResolveLoadAddress`.") lldb::SBAddress::GetSymbolContext; 47 48 %feature("docstring", " 49 GetModule() and the following grab individual objects for a given address and 50 are less efficient if you want more than one symbol related objects. 51 Use :py:class:`SBAddress.GetSymbolContext` or 52 :py:class:`SBTarget.ResolveSymbolContextForAddress` when you want multiple 53 debug symbol related objects for an address. 54 One or more bits from the SymbolContextItem enumerations can be logically 55 OR'ed together to more efficiently retrieve multiple symbol objects.") 56 lldb::SBAddress::GetModule; 57