From 49a1b2d7d5cc01ecb0264fb389d3d795b7fd0142 Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:24:22 -0400 Subject: [PATCH] Disabled test debug output --- .../finder/DecompilerDataTypeReferenceFinder.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerDataTypeReferenceFinder.java b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerDataTypeReferenceFinder.java index 176e12263b..96911b14fd 100644 --- a/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerDataTypeReferenceFinder.java +++ b/Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/extension/datatype/finder/DecompilerDataTypeReferenceFinder.java @@ -301,6 +301,10 @@ public class DecompilerDataTypeReferenceFinder implements DataTypeReferenceFinde else { debugWriter = new NullPrintWriter(); } + + // TODO Disabling the debug output for now, as we have not seen the sporadic test + // failure. This code can be deleted if the test failures do not reappear. + debugWriter = new NullPrintWriter(); } List findUsage() { @@ -445,9 +449,8 @@ public class DecompilerDataTypeReferenceFinder implements DataTypeReferenceFinde else { if (access == null || access.getVariable() != null) { - debugWriter - .println("f: " + function + "\n\t\tcreating variable access: " + - line); + debugWriter.println( + "f: " + function + "\n\t\tcreating variable access: " + line); access = new VariableAccessDR(line); results.add(access); @@ -480,9 +483,8 @@ public class DecompilerDataTypeReferenceFinder implements DataTypeReferenceFinde ClangFieldToken field = (ClangFieldToken) token; if (typesDoNotMatch(access, field)) { - debugWriter.println( - "f: " + function + "\n\t\tcreating an anonymous variable access: " + - line); + debugWriter.println("f: " + function + + "\n\t\tcreating an anonymous variable access: " + line); // this can happen when a field is used anonymously, such as directly // after a nested array index operation