hint_calls.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:idawilli 作者: williballenthin 项目源码 文件源码
def enum_calls_in_function(fva):
    '''
    yield the call instructions in the given function.

    Args:
      fva (int): the starting address of a function

    Returns:
      sequence[tuple[int, str]]: the address of a call instruction, and the disassembly line at that address
    '''
    for ea in enum_function_addrs(fva):
        if idaapi.is_call_insn(ea):
            disasm = ida_lines.generate_disassembly(ea, 16, True, False)[1][0]
            # replace consequent whitespaces by a single whitespaces
            disasm = re.sub("\s\s+", " ", disasm)
            yield ea, disasm
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号