示例#1
0
    def posterior(self, comment):
        if not comment:
            idc.DelExtLnB(self._ea, 0)
            return

        index = 0

        for index, line in enumerate(comment.splitlines()):
            idc.ExtLinB(self._ea, index, line)

        idc.DelExtLnB(self._ea, index + 1)
示例#2
0
文件: calls.py 项目: jjo-sec/idataco
 def removeMarkup(self, ea, force=False):
     if ea in self._marked_up or force:
         log.debug("Removing color")
         idc.SetColor(ea, idc.CIC_FUNC, 0xffffff)
         idc.SetColor(ea, idc.CIC_ITEM, 0xffffff)
         idc.MakeComm(ea, "")
         log.debug("Removing posterior lines")
         i = 0
         while idc.LineB(ea, i):
             idc.DelExtLnB(ea, i)
             i += 1