def loadcmt(self):
total = 0
count = 0
for line in self.sym_file:
total+=1
sm = re.search("C[\s]+([\dA-F]+)[\s]+(.+)", line)
if sm:
if is_printable(sm.group(2)) is False:
continue
if idaapi.set_cmt(int(sm.group(1), 16), sm.group(2), 0):
count += 1
else:
print "set comment %s:%s failed" % (sm.group(1), sm.group(2))
print "total %d applied %d comments" % (total,count)
评论列表
文章目录