19 #ifndef __CPUI_LOADIMAGE__ 20 #define __CPUI_LOADIMAGE__ 77 const string &getFileName(
void)
const;
78 virtual void loadFill(uint1 *ptr,int4 size,
const Address &addr)=0;
79 virtual void openSymbols(
void)
const;
80 virtual void closeSymbols(
void)
const;
82 virtual void openSectionInfo(
void)
const;
83 virtual void closeSectionInfo(
void)
const;
85 virtual void getReadonly(
RangeList &list)
const;
86 virtual string getArchType(
void)
const=0;
87 virtual void adjustVma(
long adjust)=0;
88 uint1 *load(int4 size,
const Address &addr);
106 virtual void loadFill(uint1 *ptr,int4 size,
const Address &addr);
107 virtual string getArchType(
void)
const;
108 virtual void adjustVma(
long adjust);
Address address
Starting address of section.
Definition: loadimage.hh:53
virtual void openSymbols(void) const
Prepare to read symbols.
Definition: loadimage.hh:133
A region where processor data is stored.
Definition: space.hh:73
A record indicating a function symbol.
Definition: loadimage.hh:36
DataUnavailError(const string &s)
Instantiate with an explanatory string.
Definition: loadimage.hh:30
An interface into a particular binary executable image.
Definition: loadimage.hh:71
A disjoint set of Ranges, possibly across multiple address spaces.
Definition: address.hh:203
virtual void closeSectionInfo(void) const
Stop reading section info.
Definition: loadimage.hh:165
string filename
Name of the loadimage.
Definition: loadimage.hh:73
const string & getFileName(void) const
Get the name of the LoadImage.
Definition: loadimage.hh:125
A low-level machine address for labelling bytes and data.
Definition: address.hh:46
Exception indicating data was not available.
Definition: loadimage.hh:29
Classes for specifying addresses and other low-level constants.
uint4 flags
Properties of the section.
Definition: loadimage.hh:55
The lowest level error generated by the decompiler.
Definition: error.hh:44
void attachToSpace(AddrSpace *id)
Attach the raw image to a particular space.
Definition: loadimage.hh:103
virtual void getReadonly(RangeList &list) const
Return list of readonly address ranges.
Definition: loadimage.hh:184
virtual void openSectionInfo(void) const
Prepare to read section info.
Definition: loadimage.hh:159
virtual bool getNextSymbol(LoadImageFunc &record) const
Get the next symbol record.
Definition: loadimage.hh:151
Address address
Start of function.
Definition: loadimage.hh:37
virtual ~LoadImage(void)
LoadImage destructor.
Definition: loadimage.hh:119
A record describing a section bytes in the executable.
Definition: loadimage.hh:44
string name
Name of function.
Definition: loadimage.hh:38
uintb size
Number of bytes in section.
Definition: loadimage.hh:54
LoadImage(const string &f)
LoadImage constructor.
Definition: loadimage.hh:114
virtual void closeSymbols(void) const
Stop reading symbols.
Definition: loadimage.hh:140
virtual bool getNextSection(LoadImageSection &sec) const
Get info on the next section.
Definition: loadimage.hh:174
A simple raw binary loadimage.
Definition: loadimage.hh:96