brintos

brintos / llvm-project-archived public Read only

0
0
Text · 605 B · ed83f9f Raw
22 lines · python
1import lldb2 3 4def StepOver(debugger, args, result, dict):5    """6    Step over a given number of times instead of only just once7    """8    arg_split = args.split(" ")9    print(type(arg_split))10    count = int(arg_split[0])11    for i in range(0, count):12        debugger.GetSelectedTarget().GetProcess().GetSelectedThread().StepOver(13            lldb.eOnlyThisThread14        )15        print("step<%d>" % i)16 17 18def __lldb_init_module(debugger, session_dict):19    # by default, --synchronicity is set to synchronous20    debugger.HandleCommand("command script add -f mysto.StepOver mysto")21    return None22