Class LSDATypeTable
java.lang.Object
ghidra.app.plugin.exceptionhandlers.gcc.GccAnalysisClass
ghidra.app.plugin.exceptionhandlers.gcc.structures.gccexcepttable.LSDATypeTable
Stores addresses of __type_info structures for thrown values. Used by the Unwind routines
to determine if a given catch block appropriately handles a given exception-of-type.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLSDATypeTable
(TaskMonitor monitor, Program program, RegionDescriptor region) Constructor for a table of references to types that are associated with catch actions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create a LSDA Type Table from the bytes betweenbottom
andtop
.Gets the address after this type table.getTypeInfoAddress
(int index) Gets the address of the type information from the reference record at the specified index in the table.Methods inherited from class ghidra.app.plugin.exceptionhandlers.gcc.GccAnalysisClass
createAndCommentData, createData, init
-
Constructor Details
-
LSDATypeTable
Constructor for a table of references to types that are associated with catch actions.
Note: Thecreate(Address, Address)
method must be called after constructing an LSDATypeTable to associate it with an address before any of its "get..." methods are called.- Parameters:
monitor
- task monitor to see if the user has cancelled analysis.program
- the program containing the type table.region
- the region of the program associated with this type table.
-
-
Method Details
-
create
Create a LSDA Type Table from the bytes betweenbottom
andtop
. This table is built from bottom-to-top.
Note: This method must get called before any of the "get..." methods.- Parameters:
bottom
- the bottom address of the type tabletop
- the top address of the type table
-
getTypeInfoAddress
Gets the address of the type information from the reference record at the specified index in the table.- Parameters:
index
- the index (1-based) of the type info table record.- Returns:
- the address of the type info.
-
getNextAddress
Gets the address after this type table.- Returns:
- the next address after this type table or null if this type table hasn't been created at any address yet.
-