hint_calls.py 文件源码

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

项目:idawilli 作者: williballenthin 项目源码 文件源码
def enum_function_addrs(fva):
    '''
    yield the effective addresses of each instruction in the given function.
    these addresses are not guaranteed to be in any order.

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

    Returns:
      sequence[int]: the addresses of each instruction
    '''
    f = idaapi.get_func(fva)
    if not f:
        raise ValueError('not a function')

    for block in idaapi.FlowChart(f):
        ea = block.startEA
        while ea <= block.endEA:
            yield ea
            ea = idc.NextHead(ea)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号