OpenASIP  2.0
Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
TPEF::DebugSection Class Reference

#include <DebugSection.hh>

Inheritance diagram for TPEF::DebugSection:
Inheritance graph
Collaboration diagram for TPEF::DebugSection:
Collaboration graph

Public Member Functions

virtual ~DebugSection ()
 
virtual SectionType type () const
 
- Public Member Functions inherited from TPEF::Section
virtual ~Section ()
 
virtual bool isChunkable () const
 
virtual Chunkchunk (SectionOffset offset) const
 
bool isProgramSection () const
 
bool isAuxSection () const
 
virtual void addElement (SectionElement *element)
 
virtual void setElement (Word index, SectionElement *element)
 
SectionElementelement (Word index) const
 
Word elementCount () const
 
void setFlagNoBits ()
 
void unsetFlagNoBits ()
 
bool noBits () const
 
bool vLen () const
 
Byte flags () const
 
void setFlags (Byte flagByte)
 
void setStartingAddress (AddressImage address)
 
AddressImage startingAddress () const
 
void setLink (const ReferenceManager::SafePointer *aLink)
 
void setLink (Section *aLink)
 
Sectionlink () const
 
void setASpace (const ReferenceManager::SafePointer *addrSpace)
 
void setASpace (ASpaceElement *addrSpace)
 
ASpaceElementaSpace () const
 
void setName (const ReferenceManager::SafePointer *sectionName)
 
void setName (Chunk *sectionName)
 
Chunkname () const
 
virtual bool isDataSection () const
 
virtual bool isCodeSection () const
 
- Public Member Functions inherited from TPEF::SafePointable
virtual ~SafePointable ()
 

Protected Member Functions

 DebugSection (bool init)
 
virtual Sectionclone () const
 
- Protected Member Functions inherited from TPEF::Section
 Section ()
 
void setFlagVLen ()
 
void unsetFlagVLen ()
 
- Protected Member Functions inherited from TPEF::SafePointable
 SafePointable ()
 

Static Private Attributes

static DebugSection proto_
 Prototype instance of section. More...
 

Additional Inherited Members

- Public Types inherited from TPEF::Section
enum  SectionType {
  ST_NULL = 0x00, ST_STRTAB = 0x01, ST_SYMTAB = 0x02, ST_DEBUG = 0x03,
  ST_RELOC = 0x04, ST_LINENO = 0x05, ST_NOTE = 0x06, ST_ADDRSP = 0x07,
  ST_MR = 0x0A, ST_CODE = 0x81, ST_DATA = 0x82, ST_UDATA = 0x83,
  ST_LEDATA = 0x84, ST_DUMMY = 0xff
}
 
enum  SectionFlag { SF_VLEN = 0x40, SF_NOBITS = 0x80 }
 
- Static Public Member Functions inherited from TPEF::Section
static SectioncreateSection (SectionType type)
 
static bool isProgramSection (SectionType type)
 
- Static Protected Member Functions inherited from TPEF::Section
static void registerSection (const Section *section)
 

Detailed Description

Debug section.

Definition at line 44 of file DebugSection.hh.

Constructor & Destructor Documentation

◆ ~DebugSection()

TPEF::DebugSection::~DebugSection ( )
virtual

Destructor.

Definition at line 56 of file DebugSection.cc.

56  {
57 }

◆ DebugSection()

TPEF::DebugSection::DebugSection ( bool  init)
protected

Constructor.

Parameters
initTrue if registeration is wanted.

Definition at line 45 of file DebugSection.cc.

45  : Section() {
46  if (init) {
48  }
49  setFlagVLen();
51 }

References TPEF::Section::registerSection(), TPEF::Section::setFlagVLen(), and TPEF::Section::unsetFlagNoBits().

Referenced by clone().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

Section * TPEF::DebugSection::clone ( ) const
protectedvirtual

Creates an instance of class.

Returns
Newly created section.

Implements TPEF::Section.

Definition at line 75 of file DebugSection.cc.

75  {
76  return new DebugSection(false);
77 }

References DebugSection().

Here is the call graph for this function:

◆ type()

Section::SectionType TPEF::DebugSection::type ( ) const
virtual

Returns section's type.

Returns
Type of section.

Implements TPEF::Section.

Definition at line 65 of file DebugSection.cc.

65  {
66  return ST_DEBUG;
67 }

References TPEF::Section::ST_DEBUG.

Member Data Documentation

◆ proto_

DebugSection TPEF::DebugSection::proto_
staticprivate

Prototype instance of section.

Definition at line 56 of file DebugSection.hh.


The documentation for this class was generated from the following files:
TPEF::Section::ST_DEBUG
@ ST_DEBUG
Debug section.
Definition: Section.hh:73
TPEF::Section::setFlagVLen
void setFlagVLen()
TPEF::Section::Section
Section()
Definition: Section.cc:64
TPEF::Section::unsetFlagNoBits
void unsetFlagNoBits()
TPEF::Section::registerSection
static void registerSection(const Section *section)
Definition: Section.cc:114
TPEF::DebugSection::DebugSection
DebugSection(bool init)
Definition: DebugSection.cc:45