1from __future__ import print_function 2 3import lldb 4 5 6def StepOver(debugger, args, result, dict): 7 """ 8 Step over a given number of times instead of only just once 9 """ 10 arg_split = args.split(" ") 11 print(type(arg_split)) 12 count = int(arg_split[0]) 13 for i in range(0, count): 14 debugger.GetSelectedTarget().GetProcess( 15 ).GetSelectedThread().StepOver(lldb.eOnlyThisThread) 16 print("step<%d>" % i) 17 18 19def __lldb_init_module(debugger, session_dict): 20 # by default, --synchronicity is set to synchronous 21 debugger.HandleCommand("command script add -f mysto.StepOver mysto") 22 return None 23