Class GccExceptionAnalyzer
- java.lang.Object
-
- ghidra.app.services.AbstractAnalyzer
-
- ghidra.app.plugin.exceptionhandlers.gcc.GccExceptionAnalyzer
-
- All Implemented Interfaces:
Analyzer
,ExtensionPoint
public class GccExceptionAnalyzer extends AbstractAnalyzer
An analyzer for locating and marking up the GCC exception handling information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESCRIPTION
static java.lang.String
NAME
protected static java.lang.String
OPTION_NAME_CREATE_TRY_CATCH_COMMENTS
-
Constructor Summary
Constructors Constructor Description GccExceptionAnalyzer()
Creates an analyzer for marking up the GCC exception handling information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
added(Program program, AddressSetView addedLocationAddresses, TaskMonitor monitor, MessageLog log)
Called when the requested information type has been added.boolean
canAnalyze(Program program)
Can this analyzer work on this program.void
optionsChanged(Options options, Program program)
Analyzers should initialize their options from the values in the given Options, providing appropriate default values.void
registerOptions(Options options, Program program)
Analyzers should register their options with associated default value, help content and description-
Methods inherited from class ghidra.app.services.AbstractAnalyzer
analysisEnded, getAnalysisType, getDefaultEnablement, getDescription, getName, getPriority, isPrototype, removed, setDefaultEnablement, setPriority, setPrototype, setSupportsOneTimeAnalysis, setSupportsOneTimeAnalysis, supportsOneTimeAnalysis
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
- See Also:
- Constant Field Values
-
OPTION_NAME_CREATE_TRY_CATCH_COMMENTS
protected static final java.lang.String OPTION_NAME_CREATE_TRY_CATCH_COMMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
canAnalyze
public boolean canAnalyze(Program program)
Description copied from interface:Analyzer
Can this analyzer work on this program.- Specified by:
canAnalyze
in interfaceAnalyzer
- Overrides:
canAnalyze
in classAbstractAnalyzer
- Parameters:
program
- program to be analyzed- Returns:
- true if this analyzer can analyze this program
-
added
public boolean added(Program program, AddressSetView addedLocationAddresses, TaskMonitor monitor, MessageLog log) throws CancelledException
Description copied from interface:Analyzer
Called when the requested information type has been added. (ie: function added.)- Parameters:
program
- program to analyzeaddedLocationAddresses
- AddressSet of locations that have been addedmonitor
- monitor that indicates progress and indicates whether the user canceled the analysislog
- a message log to record analysis information- Returns:
- true if the analysis succeeded
- Throws:
CancelledException
-
registerOptions
public void registerOptions(Options options, Program program)
Description copied from interface:Analyzer
Analyzers should register their options with associated default value, help content and description- Specified by:
registerOptions
in interfaceAnalyzer
- Overrides:
registerOptions
in classAbstractAnalyzer
- Parameters:
options
- the program options/property list that contains the optionsprogram
- program to be analyzed
-
optionsChanged
public void optionsChanged(Options options, Program program)
Description copied from interface:Analyzer
Analyzers should initialize their options from the values in the given Options, providing appropriate default values.- Specified by:
optionsChanged
in interfaceAnalyzer
- Overrides:
optionsChanged
in classAbstractAnalyzer
- Parameters:
options
- the program options/property list that contains the optionsprogram
- program to be analyzed
-
-