def make_comments(comments, base, remote_base): if not comments: return ptrdiff = remote_base - base for cmt in comments: oa.Insertname(cmt.ea + ptrdiff, oa.NM_COMMENT, str(cmt.name)) oa.Redrawdisassembler()
def make_comments(comments, base, remote_base): if not comments: return ptrdiff = remote_base - base for cmt in comments: if not is_valid_addr(cmt.ea + ptrdiff): continue api.Insertname(cmt.ea + ptrdiff, api.NM_COMMENT, str(cmt.name)) api.Redrawdisassembler()
def make_names(names, base, remote_base): if not names: return ptrdiff = 0 if base != remote_base: ptrdiff = remote_base - base for n in names: oa.Insertname(n.ea + ptrdiff, oa.NM_LABEL, str(n.name)) oa.Redrawdisassembler()
def make_comments(comments, base, remote_base): if not comments: return ptrdiff = remote_base - base for cmt in comments: if not is_valid_addr(cmt.ea + ptrdiff): continue api.Insertname(cmt.ea + ptrdiff, api.NM_COMMENT, truncate_text_to_max(cmt.name.encode('mbcs'))) api.Redrawdisassembler()
def make_names(names, base, remote_base): if not names: return ptrdiff = 0 if base != remote_base: ptrdiff = remote_base - base for n in names: if not is_valid_addr(n.ea + ptrdiff): continue api.Insertname(n.ea + ptrdiff, api.NM_LABEL, str(n.name)) api.Redrawdisassembler()
def make_names(names, base, remote_base): if not names: return ptrdiff = 0 if base != remote_base: ptrdiff = remote_base - base for n in names: if not is_valid_addr(n.ea + ptrdiff): continue api.Insertname(n.ea + ptrdiff, api.NM_LABEL, truncate_text_to_max(n.name.encode('mbcs'))) api.Redrawdisassembler()