SamL98 / xap2

XAP2 Ghidra Processor Moule
Other
1 stars 0 forks source link

Update for Ghidra 11 #1

Open mirh opened 1 month ago

mirh commented 1 month ago

https://github.com/NationalSecurityAgency/ghidra/issues/6477

Exception reading xap2:LE:16:default/default(xap2.cspec:50): Unknown type class: long
ghidra.program.model.lang.CompilerSpecNotFoundException: Exception reading xap2:LE:16:default/default(xap2.cspec:50): Unknown type class: long
    at ghidra.program.model.lang.BasicCompilerSpec.<init>(BasicCompilerSpec.java:153)
    at ghidra.app.plugin.processors.sleigh.SleighLanguage.getCompilerSpecByID(SleighLanguage.java:1158)
    at ghidra.app.util.opinion.BinaryLoader.loadProgram(BinaryLoader.java:279)
    at ghidra.app.util.opinion.AbstractProgramLoader.load(AbstractProgramLoader.java:129)
    at ghidra.plugin.importer.ImporterUtilities.importSingleFile(ImporterUtilities.java:396)
    at ghidra.plugin.importer.ImporterDialog.lambda$okCallback$7(ImporterDialog.java:338)
    at ghidra.util.task.TaskBuilder$TaskBuilderTask.run(TaskBuilder.java:306)
    at ghidra.util.task.Task.monitoredRun(Task.java:134)
    at ghidra.util.task.TaskRunner.lambda$startTaskThread$0(TaskRunner.java:106)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: ghidra.xml.XmlParseException: Unknown type class: long
    at ghidra.program.model.lang.StorageClass.getClass(StorageClass.java:74)
    at ghidra.program.model.lang.ParamEntry.restoreXml(ParamEntry.java:554)
    at ghidra.program.model.lang.ParamListStandard.parsePentry(ParamListStandard.java:269)
    at ghidra.program.model.lang.ParamListStandard.restoreXml(ParamListStandard.java:345)
    at ghidra.program.model.lang.PrototypeModel.restoreXml(PrototypeModel.java:624)
    at ghidra.program.model.lang.BasicCompilerSpec.addPrototypeModel(BasicCompilerSpec.java:1078)
    at ghidra.program.model.lang.BasicCompilerSpec.restoreXml(BasicCompilerSpec.java:630)
    at ghidra.program.model.lang.BasicCompilerSpec.initialize(BasicCompilerSpec.java:249)
    at ghidra.program.model.lang.BasicCompilerSpec.<init>(BasicCompilerSpec.java:131)
    ... 11 more
SamL98 commented 1 month ago

Hi, I'm not really maintaining this repo. Though if you want to submit a pull request, I'll merge it.