def platformExec(self, cmdline): import mach pid = v_posix.PtraceMixin.platformExec(self, cmdline) self.task = mach.task_for_pid(pid) return pid
def platformAttach(self, pid): import mach #FIXME setMeta("ExeName", stuff) self.task = mach.task_for_pid(pid) v_posix.PtraceMixin.platformAttach(self, pid)
def __init__(self, pid): self.pid = pid self.task = mach.task_for_pid(pid)