mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 12:04:19 +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'.
|
if it extends beyond 'end'.
|
||||||
"""
|
"""
|
||||||
func = idaapi.get_func(start)
|
func = idaapi.get_func(start)
|
||||||
|
if not func:
|
||||||
|
func = idaapi.get_next_func(start)
|
||||||
while func and func.startEA < end:
|
while func and func.startEA < end:
|
||||||
yield func.startEA
|
yield func.startEA
|
||||||
func = idaapi.get_next_func(func.startEA)
|
func = idaapi.get_next_func(func.startEA)
|
||||||
|
Loading…
Reference in New Issue
Block a user