Class GoModuledata
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.GoModuledata
- All Implemented Interfaces:
StructureMarkup<GoModuledata>
Represents a golang moduledata structure, which contains a lot of invaluable bootstrapping
data for RTTI and function data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
additionalMarkup
(MarkupSession session) Called to allow the implementor to perform custom markup of itself.boolean
containsFuncDataInstance
(long offset) getFuncDataInstance
(long offset) Returns an artificial slice of the functab entries that are valid.getItabs()
getText()
long
long
boolean
isValid()
boolean
matchesPclntab
(GoPcHeader pclntab) Compares the data in this structure to fields in a GoPcHeader and returns true if they match.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.app.util.bin.format.golang.structmapping.StructureMarkup
getExternalInstancesToMarkup, getStructureLabel, getStructureName
-
Constructor Details
-
GoModuledata
public GoModuledata()
-
-
Method Details
-
matchesPclntab
Compares the data in this structure to fields in a GoPcHeader and returns true if they match.- Parameters:
pclntab
- GoPcHeader instance- Returns:
- boolean true if match, false if no match
-
getPcHeader
- Throws:
IOException
-
getText
-
getTypesOffset
public long getTypesOffset() -
getTypesEndOffset
public long getTypesEndOffset() -
getFuncDataInstance
- Throws:
IOException
-
containsFuncDataInstance
public boolean containsFuncDataInstance(long offset) -
getFunctabEntriesSlice
Returns an artificial slice of the functab entries that are valid.- Returns:
- artificial slice of the functab entries that are valid
-
isValid
public boolean isValid() -
getFuncnametab
-
getAllFunctionData
- Throws:
IOException
-
getStructureContext
- Specified by:
getStructureContext
in interfaceStructureMarkup<GoModuledata>
-
additionalMarkup
Description copied from interface:StructureMarkup
Called to allow the implementor to perform custom markup of itself.- Specified by:
additionalMarkup
in interfaceStructureMarkup<GoModuledata>
- Parameters:
session
- state and methods to assist marking up the program- Throws:
IOException
- if error during markup
-
getItabs
- Throws:
IOException
-
iterateTypes
- Throws:
IOException
-
getTypeList
- Throws:
IOException
-