106c3fb27SDimitry Andric %feature("docstring", 206c3fb27SDimitry Andric "Represents the target program running under the debugger. 306c3fb27SDimitry Andric 406c3fb27SDimitry Andric SBTarget supports module, breakpoint, and watchpoint iterations. For example, :: 506c3fb27SDimitry Andric 606c3fb27SDimitry Andric for m in target.module_iter(): 706c3fb27SDimitry Andric print m 806c3fb27SDimitry Andric 906c3fb27SDimitry Andric produces: :: 1006c3fb27SDimitry Andric 1106c3fb27SDimitry Andric (x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out 1206c3fb27SDimitry Andric (x86_64) /usr/lib/dyld 1306c3fb27SDimitry Andric (x86_64) /usr/lib/libstdc++.6.dylib 1406c3fb27SDimitry Andric (x86_64) /usr/lib/libSystem.B.dylib 1506c3fb27SDimitry Andric (x86_64) /usr/lib/system/libmathCommon.A.dylib 1606c3fb27SDimitry Andric (x86_64) /usr/lib/libSystem.B.dylib(__commpage) 1706c3fb27SDimitry Andric 1806c3fb27SDimitry Andric and, :: 1906c3fb27SDimitry Andric 2006c3fb27SDimitry Andric for b in target.breakpoint_iter(): 2106c3fb27SDimitry Andric print b 2206c3fb27SDimitry Andric 2306c3fb27SDimitry Andric produces: :: 2406c3fb27SDimitry Andric 2506c3fb27SDimitry Andric SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1 2606c3fb27SDimitry Andric SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1 2706c3fb27SDimitry Andric 2806c3fb27SDimitry Andric and, :: 2906c3fb27SDimitry Andric 3006c3fb27SDimitry Andric for wp_loc in target.watchpoint_iter(): 3106c3fb27SDimitry Andric print wp_loc 3206c3fb27SDimitry Andric 3306c3fb27SDimitry Andric produces: :: 3406c3fb27SDimitry Andric 3506c3fb27SDimitry Andric Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw 3606c3fb27SDimitry Andric declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12' 37*5f757f3fSDimitry Andric hit_count = 2 ignore_count = 0" 3806c3fb27SDimitry Andric ) lldb::SBTarget; 3906c3fb27SDimitry Andric 4006c3fb27SDimitry Andric %feature("docstring", " 4106c3fb27SDimitry Andric Return the platform object associated with the target. 4206c3fb27SDimitry Andric 4306c3fb27SDimitry Andric After return, the platform object should be checked for 4406c3fb27SDimitry Andric validity. 4506c3fb27SDimitry Andric 4606c3fb27SDimitry Andric @return 4706c3fb27SDimitry Andric A platform object." 4806c3fb27SDimitry Andric ) lldb::SBTarget::GetPlatform; 4906c3fb27SDimitry Andric 5006c3fb27SDimitry Andric %feature("docstring", " 5106c3fb27SDimitry Andric Install any binaries that need to be installed. 5206c3fb27SDimitry Andric 5306c3fb27SDimitry Andric This function does nothing when debugging on the host system. 5406c3fb27SDimitry Andric When connected to remote platforms, the target's main executable 5506c3fb27SDimitry Andric and any modules that have their install path set will be 5606c3fb27SDimitry Andric installed on the remote platform. If the main executable doesn't 5706c3fb27SDimitry Andric have an install location set, it will be installed in the remote 5806c3fb27SDimitry Andric platform's working directory. 5906c3fb27SDimitry Andric 6006c3fb27SDimitry Andric @return 6106c3fb27SDimitry Andric An error describing anything that went wrong during 6206c3fb27SDimitry Andric installation." 6306c3fb27SDimitry Andric ) lldb::SBTarget::Install; 6406c3fb27SDimitry Andric 6506c3fb27SDimitry Andric %feature("docstring", " 6606c3fb27SDimitry Andric Launch a new process. 6706c3fb27SDimitry Andric 6806c3fb27SDimitry Andric Launch a new process by spawning a new process using the 6906c3fb27SDimitry Andric target object's executable module's file as the file to launch. 7006c3fb27SDimitry Andric Arguments are given in argv, and the environment variables 7106c3fb27SDimitry Andric are in envp. Standard input and output files can be 7206c3fb27SDimitry Andric optionally re-directed to stdin_path, stdout_path, and 7306c3fb27SDimitry Andric stderr_path. 7406c3fb27SDimitry Andric 7506c3fb27SDimitry Andric @param[in] listener 7606c3fb27SDimitry Andric An optional listener that will receive all process events. 7706c3fb27SDimitry Andric If listener is valid then listener will listen to all 7806c3fb27SDimitry Andric process events. If not valid, then this target's debugger 7906c3fb27SDimitry Andric (SBTarget::GetDebugger()) will listen to all process events. 8006c3fb27SDimitry Andric 8106c3fb27SDimitry Andric @param[in] argv 8206c3fb27SDimitry Andric The argument array. 8306c3fb27SDimitry Andric 8406c3fb27SDimitry Andric @param[in] envp 8506c3fb27SDimitry Andric The environment array. 8606c3fb27SDimitry Andric 8706c3fb27SDimitry Andric @param[in] launch_flags 8806c3fb27SDimitry Andric Flags to modify the launch (@see lldb::LaunchFlags) 8906c3fb27SDimitry Andric 9006c3fb27SDimitry Andric @param[in] stdin_path 9106c3fb27SDimitry Andric The path to use when re-directing the STDIN of the new 9206c3fb27SDimitry Andric process. If all stdXX_path arguments are NULL, a pseudo 9306c3fb27SDimitry Andric terminal will be used. 9406c3fb27SDimitry Andric 9506c3fb27SDimitry Andric @param[in] stdout_path 9606c3fb27SDimitry Andric The path to use when re-directing the STDOUT of the new 9706c3fb27SDimitry Andric process. If all stdXX_path arguments are NULL, a pseudo 9806c3fb27SDimitry Andric terminal will be used. 9906c3fb27SDimitry Andric 10006c3fb27SDimitry Andric @param[in] stderr_path 10106c3fb27SDimitry Andric The path to use when re-directing the STDERR of the new 10206c3fb27SDimitry Andric process. If all stdXX_path arguments are NULL, a pseudo 10306c3fb27SDimitry Andric terminal will be used. 10406c3fb27SDimitry Andric 10506c3fb27SDimitry Andric @param[in] working_directory 10606c3fb27SDimitry Andric The working directory to have the child process run in 10706c3fb27SDimitry Andric 10806c3fb27SDimitry Andric @param[in] launch_flags 10906c3fb27SDimitry Andric Some launch options specified by logical OR'ing 11006c3fb27SDimitry Andric lldb::LaunchFlags enumeration values together. 11106c3fb27SDimitry Andric 11206c3fb27SDimitry Andric @param[in] stop_at_entry 11306c3fb27SDimitry Andric If false do not stop the inferior at the entry point. 11406c3fb27SDimitry Andric 11506c3fb27SDimitry Andric @param[out] 11606c3fb27SDimitry Andric An error object. Contains the reason if there is some failure. 11706c3fb27SDimitry Andric 11806c3fb27SDimitry Andric @return 11906c3fb27SDimitry Andric A process object for the newly created process. 12006c3fb27SDimitry Andric 12106c3fb27SDimitry Andric For example, 12206c3fb27SDimitry Andric 12306c3fb27SDimitry Andric process = target.Launch(self.dbg.GetListener(), None, None, 12406c3fb27SDimitry Andric None, '/tmp/stdout.txt', None, 12506c3fb27SDimitry Andric None, 0, False, error) 12606c3fb27SDimitry Andric 12706c3fb27SDimitry Andric launches a new process by passing nothing for both the args and the envs 12806c3fb27SDimitry Andric and redirect the standard output of the inferior to the /tmp/stdout.txt 12906c3fb27SDimitry Andric file. It does not specify a working directory so that the debug server 13006c3fb27SDimitry Andric will use its idea of what the current working directory is for the 13106c3fb27SDimitry Andric inferior. Also, we ask the debugger not to stop the inferior at the 13206c3fb27SDimitry Andric entry point. If no breakpoint is specified for the inferior, it should 13306c3fb27SDimitry Andric run to completion if no user interaction is required." 13406c3fb27SDimitry Andric ) lldb::SBTarget::Launch; 13506c3fb27SDimitry Andric 13606c3fb27SDimitry Andric %feature("docstring", " 13706c3fb27SDimitry Andric Launch a new process with sensible defaults. 13806c3fb27SDimitry Andric 13906c3fb27SDimitry Andric :param argv: The argument array. 14006c3fb27SDimitry Andric :param envp: The environment array. 14106c3fb27SDimitry Andric :param working_directory: The working directory to have the child process run in 14206c3fb27SDimitry Andric :return: The newly created process. 14306c3fb27SDimitry Andric :rtype: SBProcess 14406c3fb27SDimitry Andric 14506c3fb27SDimitry Andric A pseudo terminal will be used as stdin/stdout/stderr. 14606c3fb27SDimitry Andric No launch flags are passed and the target's debuger is used as a listener. 14706c3fb27SDimitry Andric 14806c3fb27SDimitry Andric For example, :: 14906c3fb27SDimitry Andric 15006c3fb27SDimitry Andric process = target.LaunchSimple(['X', 'Y', 'Z'], None, os.getcwd()) 15106c3fb27SDimitry Andric 15206c3fb27SDimitry Andric launches a new process by passing 'X', 'Y', 'Z' as the args to the 15306c3fb27SDimitry Andric executable." 15406c3fb27SDimitry Andric ) lldb::SBTarget::LaunchSimple; 15506c3fb27SDimitry Andric 15606c3fb27SDimitry Andric %feature("docstring", " 15706c3fb27SDimitry Andric Load a core file 15806c3fb27SDimitry Andric 15906c3fb27SDimitry Andric @param[in] core_file 16006c3fb27SDimitry Andric File path of the core dump. 16106c3fb27SDimitry Andric 16206c3fb27SDimitry Andric @param[out] error 16306c3fb27SDimitry Andric An error explaining what went wrong if the operation fails. 16406c3fb27SDimitry Andric (Optional) 16506c3fb27SDimitry Andric 16606c3fb27SDimitry Andric @return 16706c3fb27SDimitry Andric A process object for the newly created core file. 16806c3fb27SDimitry Andric 16906c3fb27SDimitry Andric For example, 17006c3fb27SDimitry Andric 17106c3fb27SDimitry Andric process = target.LoadCore('./a.out.core') 17206c3fb27SDimitry Andric 17306c3fb27SDimitry Andric loads a new core file and returns the process object." 17406c3fb27SDimitry Andric ) lldb::SBTarget::LoadCore; 17506c3fb27SDimitry Andric 17606c3fb27SDimitry Andric %feature("docstring", " 17706c3fb27SDimitry Andric Attach to process with pid. 17806c3fb27SDimitry Andric 17906c3fb27SDimitry Andric @param[in] listener 18006c3fb27SDimitry Andric An optional listener that will receive all process events. 18106c3fb27SDimitry Andric If listener is valid then listener will listen to all 18206c3fb27SDimitry Andric process events. If not valid, then this target's debugger 18306c3fb27SDimitry Andric (SBTarget::GetDebugger()) will listen to all process events. 18406c3fb27SDimitry Andric 18506c3fb27SDimitry Andric @param[in] pid 18606c3fb27SDimitry Andric The process ID to attach to. 18706c3fb27SDimitry Andric 18806c3fb27SDimitry Andric @param[out] 18906c3fb27SDimitry Andric An error explaining what went wrong if attach fails. 19006c3fb27SDimitry Andric 19106c3fb27SDimitry Andric @return 19206c3fb27SDimitry Andric A process object for the attached process." 19306c3fb27SDimitry Andric ) lldb::SBTarget::AttachToProcessWithID; 19406c3fb27SDimitry Andric 19506c3fb27SDimitry Andric %feature("docstring", " 19606c3fb27SDimitry Andric Attach to process with name. 19706c3fb27SDimitry Andric 19806c3fb27SDimitry Andric @param[in] listener 19906c3fb27SDimitry Andric An optional listener that will receive all process events. 20006c3fb27SDimitry Andric If listener is valid then listener will listen to all 20106c3fb27SDimitry Andric process events. If not valid, then this target's debugger 20206c3fb27SDimitry Andric (SBTarget::GetDebugger()) will listen to all process events. 20306c3fb27SDimitry Andric 20406c3fb27SDimitry Andric @param[in] name 20506c3fb27SDimitry Andric Basename of process to attach to. 20606c3fb27SDimitry Andric 20706c3fb27SDimitry Andric @param[in] wait_for 20806c3fb27SDimitry Andric If true wait for a new instance of 'name' to be launched. 20906c3fb27SDimitry Andric 21006c3fb27SDimitry Andric @param[out] 21106c3fb27SDimitry Andric An error explaining what went wrong if attach fails. 21206c3fb27SDimitry Andric 21306c3fb27SDimitry Andric @return 21406c3fb27SDimitry Andric A process object for the attached process." 21506c3fb27SDimitry Andric ) lldb::SBTarget::AttachToProcessWithName; 21606c3fb27SDimitry Andric 21706c3fb27SDimitry Andric %feature("docstring", " 21806c3fb27SDimitry Andric Connect to a remote debug server with url. 21906c3fb27SDimitry Andric 22006c3fb27SDimitry Andric @param[in] listener 22106c3fb27SDimitry Andric An optional listener that will receive all process events. 22206c3fb27SDimitry Andric If listener is valid then listener will listen to all 22306c3fb27SDimitry Andric process events. If not valid, then this target's debugger 22406c3fb27SDimitry Andric (SBTarget::GetDebugger()) will listen to all process events. 22506c3fb27SDimitry Andric 22606c3fb27SDimitry Andric @param[in] url 22706c3fb27SDimitry Andric The url to connect to, e.g., 'connect://localhost:12345'. 22806c3fb27SDimitry Andric 22906c3fb27SDimitry Andric @param[in] plugin_name 23006c3fb27SDimitry Andric The plugin name to be used; can be NULL. 23106c3fb27SDimitry Andric 23206c3fb27SDimitry Andric @param[out] 23306c3fb27SDimitry Andric An error explaining what went wrong if the connect fails. 23406c3fb27SDimitry Andric 23506c3fb27SDimitry Andric @return 23606c3fb27SDimitry Andric A process object for the connected process." 23706c3fb27SDimitry Andric ) lldb::SBTarget::ConnectRemote; 23806c3fb27SDimitry Andric 23906c3fb27SDimitry Andric %feature("docstring", " 24006c3fb27SDimitry Andric Append the path mapping (from -> to) to the target's paths mapping list." 24106c3fb27SDimitry Andric ) lldb::SBTarget::AppendImageSearchPath; 24206c3fb27SDimitry Andric 24306c3fb27SDimitry Andric %feature("docstring", " 24406c3fb27SDimitry Andric Find compile units related to this target and passed source 24506c3fb27SDimitry Andric file. 24606c3fb27SDimitry Andric 24706c3fb27SDimitry Andric :param sb_file_spec: A :py:class:`lldb::SBFileSpec` object that contains source file 24806c3fb27SDimitry Andric specification. 24906c3fb27SDimitry Andric :return: The symbol contexts for all the matches. 25006c3fb27SDimitry Andric :rtype: SBSymbolContextList" 25106c3fb27SDimitry Andric ) lldb::SBTarget::FindCompileUnits; 25206c3fb27SDimitry Andric 25306c3fb27SDimitry Andric %feature("docstring", " 25406c3fb27SDimitry Andric Architecture data byte width accessor 25506c3fb27SDimitry Andric 25606c3fb27SDimitry Andric :return: The size in 8-bit (host) bytes of a minimum addressable unit from the Architecture's data bus. 25706c3fb27SDimitry Andric 25806c3fb27SDimitry Andric " 25906c3fb27SDimitry Andric ) lldb::SBTarget::GetDataByteSize; 26006c3fb27SDimitry Andric 26106c3fb27SDimitry Andric %feature("docstring", " 26206c3fb27SDimitry Andric Architecture code byte width accessor. 26306c3fb27SDimitry Andric 26406c3fb27SDimitry Andric :return: The size in 8-bit (host) bytes of a minimum addressable unit from the Architecture's code bus. 26506c3fb27SDimitry Andric 26606c3fb27SDimitry Andric " 26706c3fb27SDimitry Andric ) lldb::SBTarget::GetCodeByteSize; 26806c3fb27SDimitry Andric 26906c3fb27SDimitry Andric %feature("docstring", " 27006c3fb27SDimitry Andric Find functions by name. 27106c3fb27SDimitry Andric 27206c3fb27SDimitry Andric :param name: The name of the function we are looking for. 27306c3fb27SDimitry Andric 27406c3fb27SDimitry Andric :param name_type_mask: 27506c3fb27SDimitry Andric A logical OR of one or more FunctionNameType enum bits that 27606c3fb27SDimitry Andric indicate what kind of names should be used when doing the 27706c3fb27SDimitry Andric lookup. Bits include fully qualified names, base names, 27806c3fb27SDimitry Andric C++ methods, or ObjC selectors. 27906c3fb27SDimitry Andric See FunctionNameType for more details. 28006c3fb27SDimitry Andric 28106c3fb27SDimitry Andric :return: 28206c3fb27SDimitry Andric A lldb::SBSymbolContextList that gets filled in with all of 28306c3fb27SDimitry Andric the symbol contexts for all the matches." 28406c3fb27SDimitry Andric ) lldb::SBTarget::FindFunctions; 28506c3fb27SDimitry Andric 28606c3fb27SDimitry Andric %feature("docstring", " 28706c3fb27SDimitry Andric Find global and static variables by name. 28806c3fb27SDimitry Andric 28906c3fb27SDimitry Andric @param[in] name 29006c3fb27SDimitry Andric The name of the global or static variable we are looking 29106c3fb27SDimitry Andric for. 29206c3fb27SDimitry Andric 29306c3fb27SDimitry Andric @param[in] max_matches 29406c3fb27SDimitry Andric Allow the number of matches to be limited to max_matches. 29506c3fb27SDimitry Andric 29606c3fb27SDimitry Andric @return 29706c3fb27SDimitry Andric A list of matched variables in an SBValueList." 29806c3fb27SDimitry Andric ) lldb::SBTarget::FindGlobalVariables; 29906c3fb27SDimitry Andric 30006c3fb27SDimitry Andric %feature("docstring", " 30106c3fb27SDimitry Andric Find the first global (or static) variable by name. 30206c3fb27SDimitry Andric 30306c3fb27SDimitry Andric @param[in] name 30406c3fb27SDimitry Andric The name of the global or static variable we are looking 30506c3fb27SDimitry Andric for. 30606c3fb27SDimitry Andric 30706c3fb27SDimitry Andric @return 30806c3fb27SDimitry Andric An SBValue that gets filled in with the found variable (if any)." 30906c3fb27SDimitry Andric ) lldb::SBTarget::FindFirstGlobalVariable; 31006c3fb27SDimitry Andric 31106c3fb27SDimitry Andric %feature("docstring", " 31206c3fb27SDimitry Andric Resolve a current file address into a section offset address. 31306c3fb27SDimitry Andric 31406c3fb27SDimitry Andric @param[in] file_addr 31506c3fb27SDimitry Andric 31606c3fb27SDimitry Andric @return 31706c3fb27SDimitry Andric An SBAddress which will be valid if..." 31806c3fb27SDimitry Andric ) lldb::SBTarget::ResolveFileAddress; 31906c3fb27SDimitry Andric 32006c3fb27SDimitry Andric %feature("docstring", " 32106c3fb27SDimitry Andric Read target memory. If a target process is running then memory 32206c3fb27SDimitry Andric is read from here. Otherwise the memory is read from the object 32306c3fb27SDimitry Andric files. For a target whose bytes are sized as a multiple of host 32406c3fb27SDimitry Andric bytes, the data read back will preserve the target's byte order. 32506c3fb27SDimitry Andric 32606c3fb27SDimitry Andric @param[in] addr 32706c3fb27SDimitry Andric A target address to read from. 32806c3fb27SDimitry Andric 32906c3fb27SDimitry Andric @param[out] buf 33006c3fb27SDimitry Andric The buffer to read memory into. 33106c3fb27SDimitry Andric 33206c3fb27SDimitry Andric @param[in] size 33306c3fb27SDimitry Andric The maximum number of host bytes to read in the buffer passed 33406c3fb27SDimitry Andric into this call 33506c3fb27SDimitry Andric 33606c3fb27SDimitry Andric @param[out] error 33706c3fb27SDimitry Andric Error information is written here if the memory read fails. 33806c3fb27SDimitry Andric 33906c3fb27SDimitry Andric @return 34006c3fb27SDimitry Andric The amount of data read in host bytes." 34106c3fb27SDimitry Andric ) lldb::SBTarget::ReadMemory; 34206c3fb27SDimitry Andric 34306c3fb27SDimitry Andric %feature("docstring", " 34406c3fb27SDimitry Andric Create a breakpoint using a scripted resolver. 34506c3fb27SDimitry Andric 34606c3fb27SDimitry Andric @param[in] class_name 34706c3fb27SDimitry Andric This is the name of the class that implements a scripted resolver. 34806c3fb27SDimitry Andric The class should have the following signature: :: 34906c3fb27SDimitry Andric 35006c3fb27SDimitry Andric class Resolver: 35106c3fb27SDimitry Andric def __init__(self, bkpt, extra_args): 35206c3fb27SDimitry Andric # bkpt - the breakpoint for which this is the resolver. When 35306c3fb27SDimitry Andric # the resolver finds an interesting address, call AddLocation 35406c3fb27SDimitry Andric # on this breakpoint to add it. 35506c3fb27SDimitry Andric # 35606c3fb27SDimitry Andric # extra_args - an SBStructuredData that can be used to 35706c3fb27SDimitry Andric # parametrize this instance. Same as the extra_args passed 35806c3fb27SDimitry Andric # to BreakpointCreateFromScript. 35906c3fb27SDimitry Andric 36006c3fb27SDimitry Andric def __get_depth__ (self): 36106c3fb27SDimitry Andric # This is optional, but if defined, you should return the 36206c3fb27SDimitry Andric # depth at which you want the callback to be called. The 36306c3fb27SDimitry Andric # available options are: 36406c3fb27SDimitry Andric # lldb.eSearchDepthModule 36506c3fb27SDimitry Andric # lldb.eSearchDepthCompUnit 36606c3fb27SDimitry Andric # The default if you don't implement this method is 36706c3fb27SDimitry Andric # eSearchDepthModule. 36806c3fb27SDimitry Andric 36906c3fb27SDimitry Andric def __callback__(self, sym_ctx): 37006c3fb27SDimitry Andric # sym_ctx - an SBSymbolContext that is the cursor in the 37106c3fb27SDimitry Andric # search through the program to resolve breakpoints. 37206c3fb27SDimitry Andric # The sym_ctx will be filled out to the depth requested in 37306c3fb27SDimitry Andric # __get_depth__. 37406c3fb27SDimitry Andric # Look in this sym_ctx for new breakpoint locations, 37506c3fb27SDimitry Andric # and if found use bkpt.AddLocation to add them. 37606c3fb27SDimitry Andric # Note, you will only get called for modules/compile_units that 37706c3fb27SDimitry Andric # pass the SearchFilter provided by the module_list & file_list 37806c3fb27SDimitry Andric # passed into BreakpointCreateFromScript. 37906c3fb27SDimitry Andric 38006c3fb27SDimitry Andric def get_short_help(self): 38106c3fb27SDimitry Andric # Optional, but if implemented return a short string that will 38206c3fb27SDimitry Andric # be printed at the beginning of the break list output for the 38306c3fb27SDimitry Andric # breakpoint. 38406c3fb27SDimitry Andric 38506c3fb27SDimitry Andric @param[in] extra_args 38606c3fb27SDimitry Andric This is an SBStructuredData object that will get passed to the 38706c3fb27SDimitry Andric constructor of the class in class_name. You can use this to 38806c3fb27SDimitry Andric reuse the same class, parametrizing it with entries from this 38906c3fb27SDimitry Andric dictionary. 39006c3fb27SDimitry Andric 39106c3fb27SDimitry Andric @param module_list 39206c3fb27SDimitry Andric If this is non-empty, this will be used as the module filter in the 39306c3fb27SDimitry Andric SearchFilter created for this breakpoint. 39406c3fb27SDimitry Andric 39506c3fb27SDimitry Andric @param file_list 39606c3fb27SDimitry Andric If this is non-empty, this will be used as the comp unit filter in the 39706c3fb27SDimitry Andric SearchFilter created for this breakpoint. 39806c3fb27SDimitry Andric 39906c3fb27SDimitry Andric @return 40006c3fb27SDimitry Andric An SBBreakpoint that will set locations based on the logic in the 40106c3fb27SDimitry Andric resolver's search callback." 40206c3fb27SDimitry Andric ) lldb::SBTarget::BreakpointCreateFromScript; 40306c3fb27SDimitry Andric 40406c3fb27SDimitry Andric %feature("docstring", " 40506c3fb27SDimitry Andric Read breakpoints from source_file and return the newly created 40606c3fb27SDimitry Andric breakpoints in bkpt_list. 40706c3fb27SDimitry Andric 40806c3fb27SDimitry Andric @param[in] source_file 40906c3fb27SDimitry Andric The file from which to read the breakpoints 41006c3fb27SDimitry Andric 41106c3fb27SDimitry Andric @param[out] bkpt_list 41206c3fb27SDimitry Andric A list of the newly created breakpoints. 41306c3fb27SDimitry Andric 41406c3fb27SDimitry Andric @return 41506c3fb27SDimitry Andric An SBError detailing any errors in reading in the breakpoints." 41606c3fb27SDimitry Andric ) lldb::SBTarget::BreakpointsCreateFromFile; 41706c3fb27SDimitry Andric 41806c3fb27SDimitry Andric %feature("docstring", " 41906c3fb27SDimitry Andric Read breakpoints from source_file and return the newly created 42006c3fb27SDimitry Andric breakpoints in bkpt_list. 42106c3fb27SDimitry Andric 42206c3fb27SDimitry Andric @param[in] source_file 42306c3fb27SDimitry Andric The file from which to read the breakpoints 42406c3fb27SDimitry Andric 42506c3fb27SDimitry Andric @param[in] matching_names 42606c3fb27SDimitry Andric Only read in breakpoints whose names match one of the names in this 42706c3fb27SDimitry Andric list. 42806c3fb27SDimitry Andric 42906c3fb27SDimitry Andric @param[out] bkpt_list 43006c3fb27SDimitry Andric A list of the newly created breakpoints. 43106c3fb27SDimitry Andric 43206c3fb27SDimitry Andric @return 43306c3fb27SDimitry Andric An SBError detailing any errors in reading in the breakpoints." 43406c3fb27SDimitry Andric ) lldb::SBTarget::BreakpointsCreateFromFile; 43506c3fb27SDimitry Andric 43606c3fb27SDimitry Andric %feature("docstring", " 43706c3fb27SDimitry Andric Write breakpoints to dest_file. 43806c3fb27SDimitry Andric 43906c3fb27SDimitry Andric @param[in] dest_file 44006c3fb27SDimitry Andric The file to which to write the breakpoints. 44106c3fb27SDimitry Andric 44206c3fb27SDimitry Andric @return 44306c3fb27SDimitry Andric An SBError detailing any errors in writing in the breakpoints." 44406c3fb27SDimitry Andric ) lldb::SBTarget::BreakkpointsWriteToFile; 44506c3fb27SDimitry Andric 44606c3fb27SDimitry Andric %feature("docstring", " 44706c3fb27SDimitry Andric Write breakpoints listed in bkpt_list to dest_file. 44806c3fb27SDimitry Andric 44906c3fb27SDimitry Andric @param[in] dest_file 45006c3fb27SDimitry Andric The file to which to write the breakpoints. 45106c3fb27SDimitry Andric 45206c3fb27SDimitry Andric @param[in] bkpt_list 45306c3fb27SDimitry Andric Only write breakpoints from this list. 45406c3fb27SDimitry Andric 45506c3fb27SDimitry Andric @param[in] append 45606c3fb27SDimitry Andric If true, append the breakpoints in bkpt_list to the others 45706c3fb27SDimitry Andric serialized in dest_file. If dest_file doesn't exist, then a new 45806c3fb27SDimitry Andric file will be created and the breakpoints in bkpt_list written to it. 45906c3fb27SDimitry Andric 46006c3fb27SDimitry Andric @return 46106c3fb27SDimitry Andric An SBError detailing any errors in writing in the breakpoints." 46206c3fb27SDimitry Andric ) lldb::SBTarget::BreakpointsWriteToFile; 46306c3fb27SDimitry Andric 46406c3fb27SDimitry Andric %feature("docstring", " 46506c3fb27SDimitry Andric Create an SBValue with the given name by treating the memory starting at addr as an entity of type. 46606c3fb27SDimitry Andric 46706c3fb27SDimitry Andric @param[in] name 46806c3fb27SDimitry Andric The name of the resultant SBValue 46906c3fb27SDimitry Andric 47006c3fb27SDimitry Andric @param[in] addr 47106c3fb27SDimitry Andric The address of the start of the memory region to be used. 47206c3fb27SDimitry Andric 47306c3fb27SDimitry Andric @param[in] type 47406c3fb27SDimitry Andric The type to use to interpret the memory starting at addr. 47506c3fb27SDimitry Andric 47606c3fb27SDimitry Andric @return 47706c3fb27SDimitry Andric An SBValue of the given type, may be invalid if there was an error reading 47806c3fb27SDimitry Andric the underlying memory." 47906c3fb27SDimitry Andric ) lldb::SBTarget::CreateValueFromAddress; 48006c3fb27SDimitry Andric 48106c3fb27SDimitry Andric %feature("docstring", " 48206c3fb27SDimitry Andric Disassemble a specified number of instructions starting at an address. 48306c3fb27SDimitry Andric 48406c3fb27SDimitry Andric :param base_addr: the address to start disassembly from. 48506c3fb27SDimitry Andric :param count: the number of instructions to disassemble. 48606c3fb27SDimitry Andric :param flavor_string: may be 'intel' or 'att' on x86 targets to specify that style of disassembly. 48706c3fb27SDimitry Andric :rtype: SBInstructionList 48806c3fb27SDimitry Andric " 48906c3fb27SDimitry Andric ) lldb::SBTarget::ReadInstructions; 49006c3fb27SDimitry Andric 49106c3fb27SDimitry Andric %feature("docstring", " 49206c3fb27SDimitry Andric Disassemble the bytes in a buffer and return them in an SBInstructionList. 49306c3fb27SDimitry Andric 49406c3fb27SDimitry Andric :param base_addr: used for symbolicating the offsets in the byte stream when disassembling. 49506c3fb27SDimitry Andric :param buf: bytes to be disassembled. 49606c3fb27SDimitry Andric :param size: (C++) size of the buffer. 49706c3fb27SDimitry Andric :rtype: SBInstructionList 49806c3fb27SDimitry Andric " 49906c3fb27SDimitry Andric ) lldb::SBTarget::GetInstructions; 50006c3fb27SDimitry Andric 50106c3fb27SDimitry Andric %feature("docstring", " 50206c3fb27SDimitry Andric Disassemble the bytes in a buffer and return them in an SBInstructionList, with a supplied flavor. 50306c3fb27SDimitry Andric 50406c3fb27SDimitry Andric :param base_addr: used for symbolicating the offsets in the byte stream when disassembling. 50506c3fb27SDimitry Andric :param flavor: may be 'intel' or 'att' on x86 targets to specify that style of disassembly. 50606c3fb27SDimitry Andric :param buf: bytes to be disassembled. 50706c3fb27SDimitry Andric :param size: (C++) size of the buffer. 50806c3fb27SDimitry Andric :rtype: SBInstructionList 50906c3fb27SDimitry Andric " 51006c3fb27SDimitry Andric ) lldb::SBTarget::GetInstructionsWithFlavor; 51106c3fb27SDimitry Andric 51206c3fb27SDimitry Andric %feature("docstring", " 51306c3fb27SDimitry Andric Returns true if the module has been loaded in this `SBTarget`. 51406c3fb27SDimitry Andric A module can be loaded either by the dynamic loader or by being manually 51506c3fb27SDimitry Andric added to the target (see `SBTarget.AddModule` and the ``target module add`` command). 51606c3fb27SDimitry Andric 51706c3fb27SDimitry Andric :rtype: bool 51806c3fb27SDimitry Andric " 51906c3fb27SDimitry Andric ) lldb::SBTarget::IsLoaded; 520