OpenASIP
2.0
src
base
tpef
DebugStabElem.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
/**
25
* @file DebugStabElem.hh
26
*
27
* Declaration of DebugStabElem class.
28
*
29
* @author Mikael Lepistö 2006 (tmlepist-no.spam-cs.tut.fi)
30
*
31
* @note rating: yellow
32
*/
33
34
#ifndef TTA_DEBUG_STAB_ELEMENT_HH
35
#define TTA_DEBUG_STAB_ELEMENT_HH
36
37
#include <vector>
38
39
#include "
TPEFBaseType.hh
"
40
#include "
Exception.hh
"
41
#include "
DebugElement.hh
"
42
43
namespace
TPEF
{
44
45
/**
46
* Stab debug element type.
47
*/
48
class
DebugStabElem
:
public
DebugElement
{
49
public
:
50
DebugStabElem
(std::vector<Byte>& data);
51
52
DebugStabElem
(
53
Byte
stabType
,
54
Byte
other
,
55
HalfWord
description
,
56
Word
value
);
57
58
virtual
~DebugStabElem
();
59
60
virtual
ElementType
type
()
const
;
61
62
virtual
Byte
byte
(Word index)
const
;
63
virtual
Word
length
()
const
;
64
65
Byte
stabType
()
const
;
66
Byte
other
()
const
;
67
HalfWord
description
()
const
;
68
Word
value
()
const
;
69
70
private
:
71
/// a.out stab type.
72
Byte
stabType_
;
73
/// a.out stab other field.
74
Byte
other_
;
75
/// a.out stab description field.
76
HalfWord
description_
;
77
/// a.out stab value field.
78
Word
value_
;
79
};
80
81
}
82
83
#endif
TPEF::DebugStabElem::other
Byte other() const
Definition:
DebugStabElem.cc:159
TPEF::DebugStabElem::length
virtual Word length() const
Definition:
DebugStabElem.cc:126
Exception.hh
Byte
unsigned char Byte
Definition:
BaseType.hh:116
TPEF::DebugStabElem::description
HalfWord description() const
Definition:
DebugStabElem.cc:170
TPEF::DebugStabElem
Definition:
DebugStabElem.hh:48
TPEF::DebugStabElem::description_
HalfWord description_
a.out stab description field.
Definition:
DebugStabElem.hh:76
TPEF::DebugStabElem::~DebugStabElem
virtual ~DebugStabElem()
Definition:
DebugStabElem.cc:82
TPEF::DebugStabElem::stabType_
Byte stabType_
a.out stab type.
Definition:
DebugStabElem.hh:72
TPEF::DebugStabElem::stabType
Byte stabType() const
Definition:
DebugStabElem.cc:148
TPEF::DebugStabElem::value_
Word value_
a.out stab value field.
Definition:
DebugStabElem.hh:78
TPEF::DebugStabElem::other_
Byte other_
a.out stab other field.
Definition:
DebugStabElem.hh:74
TPEF::DebugStabElem::DebugStabElem
DebugStabElem(std::vector< Byte > &data)
Definition:
DebugStabElem.cc:49
TPEF::DebugStabElem::type
virtual ElementType type() const
Definition:
DebugStabElem.cc:137
TPEF::DebugStabElem::value
Word value() const
Definition:
DebugStabElem.cc:181
TPEF::DebugElement
Definition:
DebugElement.hh:56
TPEF::DebugElement::ElementType
ElementType
Definition:
DebugElement.hh:58
DebugElement.hh
TPEFBaseType.hh
TPEF
Definition:
Assembler.hh:43
TPEF::DebugStabElem::byte
virtual Byte byte(Word index) const
Definition:
DebugStabElem.cc:92
Generated by
1.8.17