diff --git a/python/idautils.py b/python/idautils.py index b8d110e..ed840dc 100644 --- a/python/idautils.py +++ b/python/idautils.py @@ -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() \ No newline at end of file +procregs = _procregs()