mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 05:35:02 +08:00
GP-5343: Importer filesystem mirroring
This commit is contained in:
+3
-3
@@ -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(() -> {
|
||||
|
||||
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user