mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
idautils.py: Functions() now work properly if start is not inside a defined function
This commit is contained in:
parent
dadf628feb
commit
b5f3edf5fc
@ -201,6 +201,8 @@ def Functions(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA):
|
||||
if it extends beyond 'end'.
|
||||
"""
|
||||
func = idaapi.get_func(start)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user