def is_call(ea):
'''Returns True if the instruction at ``ea`` is a call instruction.'''
# MASK_TYPE = 0x0300
# T_BRANCH = 0x0100
#
# MASK_BRTYPE = 0b111
# CF_JMPIMM = 0b001
# CF_JMPCOND = 0b000
# CF_CALL = 0b010
#
# F = feature(ea)
# return database.is_code(ea) and (feature(ea) & MASK_TYPE == T_BRANCH) and (feature(ea) & idaapi.CF_CALL == idaapi.CF_CALL)
idaapi.decode_insn(ea)
return idaapi.is_call_insn(ea)
评论列表
文章目录