def by_address(ea):
'''Return the function containing the address ``ea``.'''
ea = interface.address.within(ea)
res = idaapi.get_func(ea)
if res is None:
raise LookupError("{:s}.by_address({:x}) : Unable to locate function".format(__name__, ea))
return res
评论列表
文章目录