ecos-wtf / recos

Reverse engineering resources for the eCOS platform.
https://ecos.wtf
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

Errors in BcmDebugLogsRenameFunctions.java and BcmRenameLabelVTable.java scripts #2

Open mediotex opened 1 month ago

mediotex commented 1 month ago

Two scripts for Ghidra, BcmDebugLogsRenameFunctions.java and BcmRenameLabelVTable.java don't work because they contains an error. When trying to add these scripts to Ghidra using Script Manager, Ghidra marks them in red, showing an error and doesn't allow to add them. The same error for both scripts:

BcmDebugLogsRenameFunctions.java:34: error: class DebugLogsAnnotateFunctions is public, should be declared in a file named DebugLogsAnnotateFunctions.java
public class DebugLogsAnnotateFunctions extends GhidraScript {
       ^
BcmRenameLabelVTable.java:25: error: class RenameLabelVTable is public, should be declared in a file named RenameLabelVTable.java
public class RenameLabelVTable extends GhidraScript {
       ^
skipping /home/teknos/ghidra_scripts/BcmRenameLabelVTable.java
skipping /home/teknos/ghidra_scripts/BcmDebugLogsRenameFunctions.java

Name of public class must match the name of .java file in which it is placed (like public class Foo{} must be placed in Foo.java file). So either:

Ghidra build 11.1.1