ext¶
Modules of this package implements the build function that allows
to create an instance of an “external” object from a given type definition.
The package currently supports building ctypes
, and amoco
objects and
also allows to export chosen types to a running ghidra
DataTypeManager.
- ext.amoco.to_ccore(ax, identifier, **kargs)[source]¶
Translate an amoco StructCore type to a ccrawl.ccore object, thus allowing to export this object to any supported format.
The interface to amoco’s StructCore uses its ‘.typedef’ and ‘.union’ attributes as well as its fields attribute list, where each field must have:
a typename attribute
a subnames/subsizes attribute(s) for bitfields
a comment attribute
a count attribute
a name attribute