Class GccAnalysisClass
java.lang.Object
ghidra.app.plugin.exceptionhandlers.gcc.GccAnalysisClass
- Direct Known Subclasses:
Cie
,FrameDescriptionEntry
,LSDAActionRecord
,LSDACallSiteRecord
,LSDACallSiteTable
,LSDAHeader
,LSDATypeTable
An abstract class that can be extended by other classes that perform part of the gcc analysis.
It provides some basic data types and methods for use by the extending class.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGccAnalysisClass
(TaskMonitor monitor, Program program) Creates an abstract GccAnalysisClass object. -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
createAndCommentData
(Program program, Address addr, DataType dt, String comment, int commentType) Creates the specified DataType at the supplied address.protected static void
createData
(Program program, Address addr, DataType dt) Creates the specified DataType at the supplied address.protected void
Method that initializes the various pieces of information that are used throughout the program.
-
Field Details
-
NEWLINE
-
monitor
-
program
-
ptrSize
protected int ptrSize -
ptrDT
-
dwordDT
-
-
Constructor Details
-
GccAnalysisClass
Creates an abstract GccAnalysisClass object. Subclasses should call this constructor to initialize the program and task monitor.- Parameters:
monitor
- task monitor to see if the user has cancelled analysis.program
- the program being analyzed.
-
-
Method Details
-
init
Method that initializes the various pieces of information that are used throughout the program.- Parameters:
program
- the program being analyzed
-
createData
Creates the specified DataType at the supplied address.- Parameters:
program
- the program being analyzedaddr
- the address where data is createddt
- the type for the data
-
createAndCommentData
protected static void createAndCommentData(Program program, Address addr, DataType dt, String comment, int commentType) Creates the specified DataType at the supplied address. In addition, a comment of the specified type is also created at the address.- Parameters:
program
- the program being analyzedaddr
- the address where data is createddt
- the type for the datacomment
- the comment about the datacommentType
- the type of comment (CodeUnit.PLATE_COMMENT
,CodeUnit.PRE_COMMENT
,CodeUnit.EOL_COMMENT
,CodeUnit.POST_COMMENT
,CodeUnit.REPEATABLE_COMMENT
)
-