Skip to content

Commit

Permalink
NIDAnalyzer: use proper function for logging
Browse files Browse the repository at this point in the history
whoopsie
  • Loading branch information
CreepNT authored Aug 25, 2024
1 parent bbec4dc commit 66df331
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/vitaloaderredux/analyzer/NIDAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static enum DatabaseSource {
Environment //User-provided database, chosen via an environment variable
}

private MessageLog logger;
private NIDDatabase database;
private ProgramProcessingHelper helper;

Expand Down Expand Up @@ -167,8 +168,9 @@ private void analyzeFunction(IEType importOrExport, String libraryName, Address
//Set name for the thunk too
Function thunk = func.getThunkedFunction(true);
if (thunk == null) {
helper.logf("Import thunk for %s_%08X (%s) not found (bug?)",
libraryName, functionNID, databaseName);
log.appendMsg(String.format(
"Import thunk for %s_%08X (%s) not found (bug?)",
libraryName, functionNID, databaseName));
} else {
thunk.setName(databaseName, SourceType.ANALYSIS);
}
Expand Down Expand Up @@ -204,6 +206,7 @@ private void analyzeVariable(IEType importOrExport, String libraryName, Address
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
throws CancelledException {

logger = log;
helper = new ProgramProcessingHelper(program);
knownFunctionsList = new ArrayList<Long>();
knownVariablesList = new ArrayList<Long>();
Expand Down

0 comments on commit 66df331

Please sign in to comment.