22 #ifndef OTAWA_PROG_FILE_H
23 #define OTAWA_PROG_FILE_H
25 #include <elm/inhstruct/DLList.h>
32 #include <elm/genstruct/Vector.h>
33 #include <elm/genstruct/HashTable.h>
37 using namespace elm::genstruct;
90 #endif // OTAWA_PROG_FILE_H
Inst * findByAddress(address_t address)
Definition: File.h:77
CString name(void)
Get the name of the file.
Definition: File.h:52
elm::io::IntFormat address(Address addr)
Build a format to display addresses.
Definition: base.cpp:213
String _name
Definition: File.h:44
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
void addSegment(Segment *seg)
Add the given segment to the file.
Definition: File.h:57
SymIter(const File *file)
Build a symbol iterator on the given file.
Definition: File.h:72
Identifier< String > FUNCTION_LABEL
This property is put on instruction.
SegIter(const SegIter &iter)
Copy constructor.
Definition: File.h:62
void addSymbol(Symbol *sym)
Add the given symbol to the file.
Definition: File.h:66
A process is the realization of a program on a platform.
Definition: Process.h:136
The representation of an address in OTAWA.
Definition: base.h:54
Identifier< String > LABEL
Property with this identifier is put on instructions or basic blocks which a symbol is known for...
SegIter(const File *file)
Build a segment iterator on the given file.
Definition: File.h:61
File(String name)
Build a file with the given name.
Definition: File.h:51
HashTable< String, Symbol * > syms_t
Definition: File.h:46
syms_t syms
Definition: File.h:47
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
cstring name
Definition: odisasm.cpp:107
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
This a list of properties.
Definition: PropList.h:63
Vector< Segment * > segs
Definition: File.h:45
SymIter(const SymIter &iter)
Copy constructor.
Definition: File.h:73
const String & name(void) const
Get the name of the symbol.
Definition: Symbol.h:36
Base class of the components of a program file segment.
Definition: ProgItem.h:23
A symbol is a name of a location in a program.
Definition: Symbol.h:21
void removeSymbol(Symbol *sym)
Definition: File.h:67