frysk.debuginfo
Class TypeFactory
java.lang.Object
frysk.debuginfo.TypeFactory
public class TypeFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fine
protected static Log fine
finest
protected static Log finest
byteorder
private final ByteOrder byteorder
dieHash
private final HashMap dieHash
TypeFactory
public TypeFactory(ISA isa)
getByteSize
private int getByteSize(DwarfDie die)
dumpDie
private void dumpDie(String s,
DwarfDie die)
getArrayType
public ArrayType getArrayType(DwarfDie dieType,
DwarfDie subrange)
- Parameters:
dieType
- An array diesubrange
- Die for the array's first index
- Returns:
- ArrayType for the array
addMembers
private void addMembers(DwarfDie classDie,
CompositeType classType)
getGccStructOrClassType
public CompositeType getGccStructOrClassType(DwarfDie classDie,
String name)
- Parameters:
classDie
- A struct diename
- Name of the struct
- Returns:
- GccStructOrClassType for the struct
getClassType
public ClassType getClassType(DwarfDie classDie,
String name)
- Parameters:
classDie
- A class diename
- Name of the class
- Returns:
- ClassType for the class.
getInterfaceType
public InterfaceType getInterfaceType(DwarfDie classDie,
String name)
hasArtificialParameter
private boolean hasArtificialParameter(DwarfDie die)
- Return true of the given die represents a subprogram or inlined
subroutine
- Parameters:
die
-
- Returns:
getUnionType
public UnionType getUnionType(DwarfDie classDie,
String name)
getSubprogramValue
public Value getSubprogramValue(DwarfDie varDie)
- Parameters:
varDie
- The die for a symbol corresponding to a function
- Returns:
- The value of a subprogram die
getType
public Type getType(DwarfDie typeDie)
- Parameters:
varDie
- This symbol's die
- Returns:
- a frysk.type for this varDie