Skip to content

Commit

Permalink
Add a couple missing failed method tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Byass committed Oct 19, 2021
1 parent c8c0c6a commit 5bed6ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cpp2IL.Core/Analysis/AsmAnalyzerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public void BuildMethodFunctionality()
catch (Exception e)
{
Logger.WarnNewline($"Failed to generate synopsis for method {MethodDefinition?.FullName}, action of type {action.GetType().Name} for instruction {action.AssociatedInstruction} at 0x{action.AssociatedInstruction.GetInstructionAddress():X} - got exception {e}");
AsmAnalyzerX86.FAILED_METHODS++;
throw new AnalysisExceptionRaisedException("Exception generating synopsis entry", e);
}

Expand Down Expand Up @@ -354,6 +355,7 @@ public void AnalyzeMethod()
catch (Exception e)
{
Logger.WarnNewline($"Failed to perform analysis on method {MethodDefinition?.FullName}\nWhile analysing instruction {instruction} at 0x{instruction.GetInstructionAddress():X}\nGot exception: {e}\n", "Analyze");
AsmAnalyzerX86.FAILED_METHODS++;
throw new AnalysisExceptionRaisedException("Internal analysis exception", e);
}
}
Expand Down

0 comments on commit 5bed6ee

Please sign in to comment.