Package ghidra.app.util.demangler
Class DemanglerOptions
- java.lang.Object
-
- ghidra.app.util.demangler.DemanglerOptions
-
public class DemanglerOptions extends java.lang.Object
A simple class to contain the various settings for demangling
-
-
Constructor Summary
Constructors Constructor Description DemanglerOptions()
DemanglerOptions(DemanglerOptions copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applySignature()
Checks if the apply signature option is currently setboolean
demangleOnlyKnownPatterns()
Checks if the option to only demangle known mangled patterns is setboolean
doDisassembly()
Checks if the option to perform disassembly for known data structures (like functions) when demangling is setvoid
setApplySignature(boolean applySignature)
Set the option to apply function signatures that are demangledvoid
setDemangleOnlyKnownPatterns(boolean demangleOnlyKnownPatterns)
Sets the option to only demangle known mangled patterns.void
setDoDisassembly(boolean doDisassembly)
Sets the option to perform disassembly for known data structures (like functions) when demanglingjava.lang.String
toString()
-
-
-
Constructor Detail
-
DemanglerOptions
public DemanglerOptions()
-
DemanglerOptions
public DemanglerOptions(DemanglerOptions copy)
-
-
Method Detail
-
applySignature
public boolean applySignature()
Checks if the apply signature option is currently set- Returns:
- true if set to apply function signatures that are demangled
-
setApplySignature
public void setApplySignature(boolean applySignature)
Set the option to apply function signatures that are demangled- Parameters:
applySignature
- true to apply function signatures that are demangled
-
doDisassembly
public boolean doDisassembly()
Checks if the option to perform disassembly for known data structures (like functions) when demangling is set- Returns:
- true if the option is set
-
setDoDisassembly
public void setDoDisassembly(boolean doDisassembly)
Sets the option to perform disassembly for known data structures (like functions) when demangling- Parameters:
doDisassembly
- true to perform disassembly when demangling
-
demangleOnlyKnownPatterns
public boolean demangleOnlyKnownPatterns()
Checks if the option to only demangle known mangled patterns is set- Returns:
- true if only known mangled patterns will be demangled
-
setDemangleOnlyKnownPatterns
public void setDemangleOnlyKnownPatterns(boolean demangleOnlyKnownPatterns)
Sets the option to only demangle known mangled patterns. Setting this to false causes most symbols to be demangled, which may result in some symbols getting demangled that were not actually mangled symbols.Generally, a demangler will report an error if a symbol fails to demangle. Hence, clients can use this flag to prevent such errors, signalling to the demangler to only attempt those symbols that have a known start pattern. If the known start pattern list becomes comprehensive, then this flag can go away.
- Parameters:
demangleOnlyKnownPatterns
- true to only demangle known mangled patterns
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-