1import lldb 2import sys 3import os 4import time 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().GetSelectedThread().StepOver(lldb.eOnlyThisThread) 15 print "step<%d>"%i 16 17def __lldb_init_module(debugger, session_dict): 18 # by default, --synchronicity is set to synchronous 19 debugger.HandleCommand("command script add -f mysto.StepOver mysto") 20 return None 21 22