21 #ifndef OTAWA_PROG_SEGMENT_H
22 #define OTAWA_PROG_SEGMENT_H
24 #include <elm/types.h>
25 #include <elm/PreIterator.h>
26 #include <elm/inhstruct/DLList.h>
53 inline bool isExecutable(
void)
const {
return _flags & EXECUTABLE; }
54 inline bool isWritable(
void)
const {
return _flags & WRITABLE; }
71 inline bool ended(
void)
const {
return cur == 0; }
72 inline void next(
void) { cur = cur->next(); }
92 #endif // OTAWA_PROG_SEGMENT_H
ItemIter(Segment *seg)
Definition: Segment.h:67
bool isInitialized(void) const
Test if the segment is initialized.
Definition: Segment.h:55
bool isWritable(void) const
Test if the segment is writable.
Definition: Segment.h:54
address_t topAddress(void) const
Definition: Segment.h:58
ProgItem ** map
Definition: Segment.h:87
CString _name
Definition: Segment.h:83
Address _address
Definition: Segment.h:84
elm::io::IntFormat address(Address addr)
Build a format to display addresses.
Definition: base.cpp:213
ot::size _size
Definition: Segment.h:85
In usual file format like ELF, COFF and so on, the program file is divided in segment according platf...
Definition: Segment.h:40
This class represents a file involved in the building of a process.
Definition: File.h:43
bool isExecutable(void) const
Test if the segment is executable.
Definition: Segment.h:53
t::uint32 size
Definition: base.h:46
flags_t flags(void) const
Get flag information about the segment.
Definition: Segment.h:52
The representation of an address in OTAWA.
Definition: base.h:54
bool ended(void) const
Definition: Segment.h:71
t::uint32 flags_t
Definition: Segment.h:42
inhstruct::DLList items
Definition: Segment.h:86
bool contains(const Address &addr) const
Definition: Segment.h:61
ProgItem * item(void) const
Definition: Segment.h:70
ot::size size(void) const
Get the size of the segment.
Definition: Segment.h:57
cstring name
Definition: odisasm.cpp:107
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
void next(void)
Definition: Segment.h:72
This a list of properties.
Definition: PropList.h:63
Base class of the components of a program file segment.
Definition: ProgItem.h:23
ProgItem * cur
Definition: Segment.h:65
ItemIter(const ItemIter &iter)
Definition: Segment.h:69
address_t address(void) const
Get the base address of the segment.
Definition: Segment.h:56
CString name(void) const
Get tne name of the segment.
Definition: Segment.h:51
flags_t _flags
Definition: Segment.h:82