Exemple #1
0
 def addPosterior(self, markup_ea, logged_api_name, called_api_name, args):
     log.debug("Adding posterior lines")
     idc.MakeComm(markup_ea, str(called_api_name))
     idc.ExtLinB(markup_ea, 0, "api: {}".format(logged_api_name))
     ln = 1
     for arg in re.split("\r?\n", args.strip()):
         idc.ExtLinB(markup_ea, ln, str(arg.strip()))
         ln += 1
Exemple #2
0
    def posterior(self, comment):
        index = 0

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

        idc.DelExtLnB(self._ea, index + 1)