xref: /llvm-project/lldb/test/API/commands/command/script/mysto.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2
3
4def StepOver(debugger, args, result, dict):
5    """
6    Step over a given number of times instead of only just once
7    """
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.eOnlyThisThread
14        )
15        print("step<%d>" % i)
16
17
18def __lldb_init_module(debugger, session_dict):
19    # by default, --synchronicity is set to synchronous
20    debugger.HandleCommand("command script add -f mysto.StepOver mysto")
21    return None
22