OpenASIP
2.0
|
#include <DebugStabElem.hh>
Public Member Functions | |
DebugStabElem (std::vector< Byte > &data) | |
DebugStabElem (Byte stabType, Byte other, HalfWord description, Word value) | |
virtual | ~DebugStabElem () |
virtual ElementType | type () const |
virtual Byte | byte (Word index) const |
virtual Word | length () const |
Byte | stabType () const |
Byte | other () const |
HalfWord | description () const |
Word | value () const |
Public Member Functions inherited from TPEF::DebugElement | |
DebugElement () | |
virtual | ~DebugElement () |
Chunk * | debugString () const |
void | setDebugString (const ReferenceManager::SafePointer *aString) |
void | setDebugString (Chunk *aString) |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Private Attributes | |
Byte | stabType_ |
a.out stab type. More... | |
Byte | other_ |
a.out stab other field. More... | |
HalfWord | description_ |
a.out stab description field. More... | |
Word | value_ |
a.out stab value field. More... | |
Additional Inherited Members | |
Public Types inherited from TPEF::DebugElement | |
enum | ElementType { DE_STAB = 0x1 } |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Protected Attributes inherited from TPEF::DebugElement | |
const ReferenceManager::SafePointer * | debugString_ |
String of debug element. More... | |
Stab debug element type.
Definition at line 48 of file DebugStabElem.hh.
TPEF::DebugStabElem::DebugStabElem | ( | std::vector< Byte > & | data | ) |
Constructor.
Creates debug element out of data vector, where all the data is stored in big endian format.
This constructor is used when additional data part of debug element is read from data is read from TPEF file to table.
data | Data vector that is used to initialize a.out stab element. |
Definition at line 49 of file DebugStabElem.cc.
References BYTE_BITWIDTH, description_, other_, stabType_, and value_.
Constructor.
stabType | A.out stab's type field. |
other | A.out stab's other field. |
desscription | A.out stab's description field. |
value | A.out stab's value field. |
Definition at line 72 of file DebugStabElem.cc.
|
virtual |
|
virtual |
Returns one byte of debug element's additional data field.
index | Which data byte is wanted. |
Implements TPEF::DebugElement.
Definition at line 92 of file DebugStabElem.cc.
References __func__, BYTE_BITWIDTH, description_, other_, stabType_, and value_.
HalfWord TPEF::DebugStabElem::description | ( | ) | const |
Returns description field of stored a.out stab symbol.
Definition at line 170 of file DebugStabElem.cc.
References description_.
|
virtual |
Returns additional data length of TPEF debug element.
TPEF debug element for sotring a.out stab symbols contains always 8 bytes of additional data. This element is described in TPEF specification.
Implements TPEF::DebugElement.
Definition at line 126 of file DebugStabElem.cc.
Byte TPEF::DebugStabElem::other | ( | ) | const |
Returns other field of stored a.out stab symbol.
Definition at line 159 of file DebugStabElem.cc.
References other_.
Byte TPEF::DebugStabElem::stabType | ( | ) | const |
Returns type of stored a.out stab symbol.
Definition at line 148 of file DebugStabElem.cc.
References stabType_.
|
virtual |
Returns type of TPEF debug element.
Implements TPEF::DebugElement.
Definition at line 137 of file DebugStabElem.cc.
References TPEF::DebugElement::DE_STAB.
Word TPEF::DebugStabElem::value | ( | ) | const |
Returns value field of stored a.out stab symbol.
Definition at line 181 of file DebugStabElem.cc.
References value_.
|
private |
a.out stab description field.
Definition at line 76 of file DebugStabElem.hh.
Referenced by byte(), DebugStabElem(), and description().
|
private |
a.out stab other field.
Definition at line 74 of file DebugStabElem.hh.
Referenced by byte(), DebugStabElem(), and other().
|
private |
a.out stab type.
Definition at line 72 of file DebugStabElem.hh.
Referenced by byte(), DebugStabElem(), and stabType().
|
private |
a.out stab value field.
Definition at line 78 of file DebugStabElem.hh.
Referenced by byte(), DebugStabElem(), and value().