GP-5343: Importer filesystem mirroring

This commit is contained in:
Ryan Kurtz
2025-07-10 14:35:04 -04:00
parent 8c4e368fb2
commit c0fe84f0bd
68 changed files with 1494 additions and 1359 deletions
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -80,7 +80,7 @@ public class ImporterPluginScreenShots extends GhidraScreenShotGenerator {
loadSpecs.add(new LoadSpec(peLoader, 0,
new LanguageCompilerSpecPair("x86:LE:32:default", "gcc"), false));
loadSpecs.add(new LoadSpec(peLoader, 0,
new LanguageCompilerSpecPair("x86:LE:32:default", "borland"), false));
new LanguageCompilerSpecPair("x86:LE:32:default", "borlandcpp"), false));
loadSpecs.add(new LoadSpec(peLoader, 0,
new LanguageCompilerSpecPair("x86:LE:32:System Management Mode", "default"), false));
runSwing(() -> {
@@ -38,6 +38,7 @@ import ghidra.program.model.listing.CodeUnit;
import ghidra.program.model.listing.Program;
import ghidra.program.model.mem.Memory;
import ghidra.program.model.mem.MemoryAccessException;
import ghidra.util.InvalidNameException;
import ghidra.util.exception.CancelledException;
import ghidra.util.exception.VersionException;
import ghidra.util.task.TaskMonitor;
@@ -300,7 +301,8 @@ public class ReferencesPluginScreenShots extends GhidraScreenShotGenerator {
}
private void importFile(File file) throws CancelledException, VersionException, IOException {
private void importFile(File file)
throws CancelledException, VersionException, IOException, InvalidNameException {
Project project = env.getProject();
try (LoadResults<Program> loadResults = ProgramLoader.builder()
.source(file)