47using ReferenceManager::SafePointer;
48using ReferenceManager::SectionIndexKey;
49using ReferenceManager::SectionOffsetKey;
50using ReferenceManager::SectionKey;
94 const std::size_t BASE_ELEM_SIZE = 10;
101 assert(debugSection != NULL);
110 while (currElement <
header().bodyOffset +
header().bodyLength) {
113 Word stringOffset = stream.
readWord();
116 std::vector<Byte> data;
118 for (
unsigned i = 0; i < size; i++) {
131 "Unknown debug element type: " +
141 currElement += size + BASE_ELEM_SIZE;
#define assert(condition)
static std::string toString(const T &source)
void setReadPosition(unsigned int position)
void setDebugString(const ReferenceManager::SafePointer *aString)
static void registerSectionReader(const SectionReader *sReader)
virtual void addElement(SectionElement *element)
static TPEFDebugSectionReader proto_
Prototype instance of TPEFDebugSectionReader to be registered to SectionReader.
virtual Section::SectionType type() const
virtual ~TPEFDebugSectionReader()
virtual void readData(BinaryStream &stream, Section *section) const
virtual void readData(BinaryStream &stream, Section *section) const
static const Header & header()
Word SectionOffset
Type for storing offsets relative to a given base offset value.