OpenASIP
2.0
|
#include <DebugElement.hh>
Public Types | |
enum | ElementType { DE_STAB = 0x1 } |
Public Member Functions | |
DebugElement () | |
virtual | ~DebugElement () |
virtual ElementType | type () const =0 |
Chunk * | debugString () const |
void | setDebugString (const ReferenceManager::SafePointer *aString) |
void | setDebugString (Chunk *aString) |
virtual Byte | byte (Word index) const =0 |
Returns one byte of additional data. More... | |
virtual Word | length () const =0 |
Returns the length of additional data of debug element. More... | |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Protected Attributes | |
const ReferenceManager::SafePointer * | debugString_ |
String of debug element. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Base class for all kinds of TPEF elements that belong to debug sections.
Allows representing data of any debug element. All types of TPEF debug elements share a common property: a string that defines (part of) the information stored in the element.
Definition at line 56 of file DebugElement.hh.
TPEF::DebugElement::DebugElement | ( | ) |
|
virtual |
|
pure virtual |
Returns one byte of additional data.
Implemented in TPEF::DebugStabElem.
Referenced by TPEF::TPEFDebugSectionWriter::actualWriteData(), and TPEFDumper::section().
Chunk * TPEF::DebugElement::debugString | ( | ) | const |
Returns the debug string.
Definition at line 58 of file DebugElement.cc.
References debugString_, and TPEF::ReferenceManager::SafePointer::pointer().
Referenced by TPEF::TPEFDebugSectionWriter::actualWriteData(), and TPEFDumper::section().
|
pure virtual |
Returns the length of additional data of debug element.
Implemented in TPEF::DebugStabElem.
Referenced by TPEF::TPEFDebugSectionWriter::actualWriteData(), and TPEFDumper::section().
void TPEF::DebugElement::setDebugString | ( | Chunk * | aString | ) |
Sets the debug string.
aString | The debug string. |
Definition at line 78 of file DebugElement.cc.
References debugString_, and TPEF::ReferenceManager::SafePointer::replaceReference().
void TPEF::DebugElement::setDebugString | ( | const ReferenceManager::SafePointer * | aString | ) |
Sets the debug string.
aString | Debug string to set. |
Definition at line 68 of file DebugElement.cc.
References debugString_.
Referenced by TPEF::AOutSymbolSectionReader::initializeSymbol(), and TPEF::TPEFDebugSectionReader::readData().
|
pure virtual |
Implemented in TPEF::DebugStabElem.
Referenced by TPEF::TPEFDebugSectionWriter::actualWriteData(), and TPEFDumper::section().
|
protected |
String of debug element.
Definition at line 78 of file DebugElement.hh.
Referenced by debugString(), and setDebugString().