respect the recursive flag

We may need this to do some kind of "quick analysis" where functions
that are in the trace are processed first without recursing.
This commit is contained in:
Ned Williamson 2015-03-09 19:40:21 -04:00
parent e0da2f9201
commit 78395b7301
1 changed files with 4 additions and 3 deletions

View File

@ -80,6 +80,7 @@ def make_function_at(static, address, recurse = True):
static['blocks'].add(this_block)
# find more functions
for f in function_starts:
if static[f]['function'] == None:
make_function_at(static, f)
if recurse:
for f in function_starts:
if static[f]['function'] == None:
make_function_at(static, f)