def __init__(self, x): self.map = mapper() x(self.map) self.name = str(x) self.address = x self.length = 0 self.misc = defaultdict(lambda: 0) doc = x.stub(x.ref).func_doc if doc: for (k, v) in tag.list(): if (k in doc) or (v in doc): self.misc[v] = 1 self.view = xfuncView(self)
def __init__(self, x): self.map = mapper() x(self.map) self.name = str(x) self.address = x self.instr = [] self.length = 0 self.misc = defaultdict(_code_misc_default) doc = x.stub(x.ref).__doc__ if doc: for (k,v) in tag.list(): if (k in doc) or (v in doc): self.misc[v] = 1 self.view = xfuncView(self)
def __setstate__(self, state): self._map, self.name, self.address, self.misc = state self.instr = [] self.view = xfuncView(self)