def customnames():
'''Add all custom names defined in the database to the tagcache as "__name__"'''
# FIXME: first delete all the custom names '__name__' tag
left, right = db.range()
for ea in db.iterate(left, right-1):
fn = idaapi.get_func(ea)
ctx = internal.comment.globals if not fn or fn.startEA == ea else internal.comment.contents
if db.type.has_customname(ea):
ctx.inc(ea, '__name__')
continue
return
评论列表
文章目录