idautils.py: Functions() will return the correct list of functions even in large binaries

This commit is contained in:
gergely.erdelyi 2010-02-04 20:29:50 +00:00
parent ea4cd26a6a
commit 5ec97ef3aa

View File

@ -219,8 +219,9 @@ def Functions(start=None, end=None):
if not func:
func = idaapi.get_next_func(start)
while func and func.startEA < end:
yield func.startEA
func = idaapi.get_next_func(func.startEA)
startea = func.startEA
yield startea
func = idaapi.get_next_func(startea)
def Chunks(start):
@ -546,4 +547,4 @@ class _cpu(object):
return idc.SetRegValue(value, name)
cpu = _cpu()
procregs = _procregs()
procregs = _procregs()