Class GccAnalysisClass
- java.lang.Object
-
- ghidra.app.plugin.exceptionhandlers.gcc.GccAnalysisClass
-
- Direct Known Subclasses:
Cie
,FrameDescriptionEntry
,LSDAActionRecord
,LSDACallSiteRecord
,LSDACallSiteTable
,LSDAHeader
,LSDATypeTable
public abstract class GccAnalysisClass extends java.lang.Object
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
Fields Modifier and Type Field Description protected DWordDataType
dwordDT
protected TaskMonitor
monitor
static java.lang.String
NEWLINE
protected Program
program
protected Pointer
ptrDT
protected int
ptrSize
-
Constructor Summary
Constructors Constructor Description GccAnalysisClass(TaskMonitor monitor, Program program)
Creates an abstract GccAnalysisClass object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
createAndCommentData(Program program, Address addr, DataType dt, java.lang.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
init(Program program)
Method that initializes the various pieces of information that are used throughout the program.
-
-
-
Field Detail
-
NEWLINE
public static final java.lang.String NEWLINE
-
monitor
protected TaskMonitor monitor
-
program
protected Program program
-
ptrSize
protected int ptrSize
-
ptrDT
protected Pointer ptrDT
-
dwordDT
protected DWordDataType dwordDT
-
-
Constructor Detail
-
GccAnalysisClass
public GccAnalysisClass(TaskMonitor monitor, Program program)
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 Detail
-
init
protected void init(Program program)
Method that initializes the various pieces of information that are used throughout the program.- Parameters:
program
- the program being analyzed
-
createData
protected static void createData(Program program, Address addr, DataType dt)
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, java.lang.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
)
-
-