4 from lldb
.plugins
.scripted_platform
import ScriptedPlatform
7 class MyScriptedPlatform(ScriptedPlatform
):
8 def __init__(self
, exe_ctx
, args
):
12 proc
["name"] = "a.out"
13 proc
["arch"] = "arm64-apple-macosx"
18 self
.processes
[420] = proc
20 def list_processes(self
):
23 def get_process_info(self
, pid
):
24 return self
.processes
[pid
]
26 def launch_process(self
, launch_info
):
29 def kill_process(self
, pid
):
33 def __lldb_init_module(debugger
, dict):
34 if not "SKIP_SCRIPTED_PLATFORM_SELECT" in os
.environ
:
35 debugger
.HandleCommand(
36 "platform select scripted-platform -C %s.%s"
37 % (__name__
, MyScriptedPlatform
.__name
__)
41 "Name of the class that will manage the scripted platform: '%s.%s'"
42 % (__name__
, MyScriptedPlatform
.__name
__)