diff --git a/shell/a.cpp b/shell/a.cpp index c0834a9..bd26ace 100644 --- a/shell/a.cpp +++ b/shell/a.cpp @@ -115,7 +115,7 @@ static void af_analyze(Session &session, Binary &binary, _af_args const &args) std::set TEST_knownErrors; - int done = 0, successes = 0, skipped = 0, errors = 0; + int done = 0, created = 0, successes = 0, skipped = 0, errors = 0; int total = functionQueue.size(); int unresolvedCalls = 0; @@ -144,6 +144,7 @@ static void af_analyze(Session &session, Binary &binary, _af_args const &args) binary.addObject(std::move(f)); existing = binary.functionAt(entry); successes++; + created++; } else { FxOS_log(ERR, "... while analyzing 0x%08x", entry); @@ -175,7 +176,7 @@ static void af_analyze(Session &session, Binary &binary, _af_args const &args) if(args.recursive) printf("There were %d unresolved call sites.\n", unresolvedCalls); - if(successes > 0) + if(created > 0) session.project().setDirty(); // _af_consistency(binary);