def addProcess(self, pid, is_attached, parent=None):
if pid in self.dict:
raise KeyError("Process % is already registered!" % pid)
process = PtraceProcess(self, pid, is_attached, parent=parent)
info("Attach %s to debugger" % process)
self.dict[pid] = process
self.list.append(process)
process.waitSignals(SIGTRAP, SIGSTOP)
if HAS_PTRACE_EVENTS and self.options:
process.setoptions(self.options)
return process
评论列表
文章目录