Go to the documentation of this file.
48 using ReferenceManager::SafePointer;
49 using ReferenceManager::SectionOffsetKey;
50 using ReferenceManager::SectionIndexKey;
98 assert(codeSection != NULL);
100 bool nextIsBeginning =
true;
101 Word sectionIndex = 0;
113 sOffsetKey(
header().sectionId,
132 for (
Byte i = 0; i < size; i++) {
162 std::cerr <<
"field types: "
163 << std::hex << (int)fieldTypes
164 << std::dec << std::endl;
176 std::cerr <<
"field types: "
177 << std::hex << (int)fieldTypes
178 << std::dec << std::endl;
196 std::cerr <<
"field types: " << std::hex
198 << std::dec << std::endl;
224 newInstrElement->
setBegin(nextIsBeginning);
234 if (newInstrElement->
begin()) {
236 sIndexKey(
header().sectionId, sectionIndex);
247 parent())->addSectionSize(section, sectionIndex);
287 bool continuation =
true;
289 while (continuation) {
294 continuation =
false;
308 for (
int i = 0; i < payloadSize; i++) {
void setGuardInverted(bool flag)
virtual void addElement(SectionElement *element)
static TPEFCodeSectionReader proto_
Prototype instance of TPEFCodeSectionReader to be registered to SectionReader.
unsigned int readPosition()
void addAnnotation(InstructionAnnotation *anAnnotation)
void setDestinationUnit(HalfWord aDestinationUnit)
virtual ~TPEFCodeSectionReader()
void setGuarded(bool flag)
void setDestinationType(FieldType aType)
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
void setBus(HalfWord aBus)
#define assert(condition)
void setGuardIndex(HalfWord aGuardIndex)
virtual void readData(BinaryStream &stream, Section *section) const
virtual HalfWord readId(BinaryStream &stream) const
static void registerSectionReader(const SectionReader *sReader)
void setDestinationIndex(HalfWord aDestinationIndex)
void setGuardType(FieldType gType)
virtual BinaryReader * parent() const
void setBegin(bool isBegin)
virtual void readInfo(BinaryStream &stream, Section *sect) const
virtual void readData(BinaryStream &stream, Section *section) const
void setSourceUnit(HalfWord aSourceUnit)
virtual Section::SectionType type() const
void setSourceIndex(HalfWord aSourceIndex)
TPEFHeaders::TPEFVersion TPEFVersion() const
void readAnnotations(BinaryStream &stream, InstructionElement *elem) const
static const Header & header()
void setSourceType(FieldType aType)
void setGuardUnit(HalfWord aGuardUnit)