Ghidra is a software reverse engineering (SRE) framework
minor cleanup
ghidra1eae51274e8e0
diff --git a/GPL/DemanglerGnu/build.gradle b/GPL/DemanglerGnu/build.gradleindex a2eea61048..6244215680 100644--- a/GPL/DemanglerGnu/build.gradle+++ b/GPL/DemanglerGnu/build.gradle@@ -142,7 +142,6 @@ model {all{ b ->def version = b.getApplication().getName()- println "have binary: " + bif (version.equals(v33_1)) {if (toolChain in Gcc) {diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/UndefinedFunction.java b/Ghidra/Features/Base/src/main/java/ghidra/util/UndefinedFunction.javaindex 0457390a59..a262b816f2 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/util/UndefinedFunction.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/util/UndefinedFunction.java@@ -170,20 +170,23 @@ public class UndefinedFunction implements Function {while (iterator.hasNext() && !monitor.isCancelled()) {CodeBlockReference blockReference = iterator.next();FlowType flowType = blockReference.getFlowType();- if (flowType.isCall())- continue; // Don't follow call edges for within-function analysis- if (flowType.isIndirect() || flowType.isData()) {- continue;+ if (flowType.isCall()) {+ continue; // Don't follow call edges for within-function analysis}- count += 1; // Count the existence of source that is NOT a call+ if (flowType.isIndirect()) {+ continue; // Don't follow improper use of Indirect reference+ }+ count += 1; // Count the existence of source that is NOT a callAddress sourceAddr = blockReference.getSourceAddress();- if (visitedAddresses.contains(sourceAddr))- continue; // Already visited this block+ if (visitedAddresses.contains(sourceAddr)) {+ continue; // Already visited this block+ }visitedAddresses.addRange(sourceAddr, sourceAddr);worklist.add(blockReference.getSourceBlock());}- if (count == 0) // We found a block with no incoming edges, a likely function start+ if (count == 0) {return curblock;+ }}return null;}@@ -472,8 +475,9 @@ public class UndefinedFunction implements Function {@Overridepublic void setReturnType(DataType type, SourceType source) {- if (type == DataType.DEFAULT)+ if (type == DataType.DEFAULT) {return;+ }throw new UnsupportedOperationException();}