mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
FunctionID: Add Rust and Swift demanglers to headless Prescript
This commit is contained in:
@@ -34,6 +34,8 @@ public class FunctionIDHeadlessPrescript extends GhidraScript {
|
||||
private static final String LIBRARY_IDENTIFICATION = "Library Identification";
|
||||
private static final String DEMANGLER_MS_ANALYZER = "Demangler Microsoft";
|
||||
private static final String DEMANGLER_GNU_ANALYZER = "Demangler GNU";
|
||||
private static final String DEMANGLER_RUST_ANALYZER = "Demangler Rust";
|
||||
private static final String DEMANGLER_SWIFT_ANALYZER = "Demangler Swift";
|
||||
private static final String SCALAR_OPERAND_ANALYZER = "Scalar Operand References";
|
||||
|
||||
@Override
|
||||
@@ -51,6 +53,12 @@ public class FunctionIDHeadlessPrescript extends GhidraScript {
|
||||
if (options.containsKey(DEMANGLER_GNU_ANALYZER)) {
|
||||
setAnalysisOption(currentProgram, DEMANGLER_GNU_ANALYZER, "false");
|
||||
}
|
||||
if (options.containsKey(DEMANGLER_RUST_ANALYZER)) {
|
||||
setAnalysisOption(currentProgram, DEMANGLER_RUST_ANALYZER, "false");
|
||||
}
|
||||
if (options.containsKey(DEMANGLER_SWIFT_ANALYZER)) {
|
||||
setAnalysisOption(currentProgram, DEMANGLER_SWIFT_ANALYZER, "false");
|
||||
}
|
||||
if (options.containsKey(SCALAR_OPERAND_ANALYZER)) {
|
||||
setAnalysisOption(currentProgram, SCALAR_OPERAND_ANALYZER, "true");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user