Ghidra Decompiler Analysis Engine
|
Go to the documentation of this file.
19 #ifndef __CPUI_LOADIMAGE__
20 #define __CPUI_LOADIMAGE__
103 void attachToSpace(
AddrSpace *
id) { spaceid = id; }
string filename
Name of the loadimage.
Definition: loadimage.hh:73
RawLoadImage(const string &f)
RawLoadImage constructor.
Definition: loadimage.cc:37
A region where processor data is stored.
Definition: space.hh:73
@ noload
uninitialized section
Definition: loadimage.hh:48
The lowest level error generated by the decompiler.
Definition: error.hh:44
const string & getFileName(void) const
Get the name of the LoadImage.
Definition: loadimage.hh:125
virtual void getReadonly(RangeList &list) const
Return list of readonly address ranges.
Definition: loadimage.hh:184
LoadImage(const string &f)
LoadImage constructor.
Definition: loadimage.hh:114
virtual void loadFill(uint1 *ptr, int4 size, const Address &addr)=0
Get data from the LoadImage.
virtual void adjustVma(long adjust)
Adjust load addresses with a global offset.
Definition: loadimage.cc:75
virtual string getArchType(void) const =0
Get a string indicating the architecture type.
string name
Name of function.
Definition: loadimage.hh:38
@ readonly
read only section
Definition: loadimage.hh:51
virtual void adjustVma(long adjust)=0
Adjust load addresses with a global offset.
uint1 * load(int4 size, const Address &addr)
Load a chunk of image.
Definition: loadimage.cc:27
Exception indicating data was not available.
Definition: loadimage.hh:29
An interface into a particular binary executable image.
Definition: loadimage.hh:71
virtual void loadFill(uint1 *ptr, int4 size, const Address &addr)
Get data from the LoadImage.
Definition: loadimage.cc:82
uint4 flags
Properties of the section.
Definition: loadimage.hh:55
A disjoint set of Ranges, possibly across multiple address spaces.
Definition: address.hh:203
virtual ~LoadImage(void)
LoadImage destructor.
Definition: loadimage.hh:119
A record indicating a function symbol.
Definition: loadimage.hh:36
virtual bool getNextSection(LoadImageSection &sec) const
Get info on the next section.
Definition: loadimage.hh:174
virtual void openSectionInfo(void) const
Prepare to read section info.
Definition: loadimage.hh:159
A low-level machine address for labelling bytes and data.
Definition: address.hh:46
virtual string getArchType(void) const
Get a string indicating the architecture type.
Definition: loadimage.cc:69
LowlevelError(const string &s)
Initialize the error with an explanatory string.
Definition: error.hh:47
virtual ~RawLoadImage(void)
RawLoadImage destructor.
Definition: loadimage.cc:46
virtual void closeSymbols(void) const
Stop reading symbols.
Definition: loadimage.hh:140
@ data
data only
Definition: loadimage.hh:50
A record describing a section bytes in the executable.
Definition: loadimage.hh:44
virtual void openSymbols(void) const
Prepare to read symbols.
Definition: loadimage.hh:133
Address address
Start of function.
Definition: loadimage.hh:37
virtual bool getNextSymbol(LoadImageFunc &record) const
Get the next symbol record.
Definition: loadimage.hh:151
Classes for specifying addresses and other low-level constants.
uintb size
Number of bytes in section.
Definition: loadimage.hh:54
virtual void closeSectionInfo(void) const
Stop reading section info.
Definition: loadimage.hh:165
A simple raw binary loadimage.
Definition: loadimage.hh:96
void open(void)
Open the raw file for reading.
Definition: loadimage.cc:56
@ code
code only
Definition: loadimage.hh:49
@ unalloc
Not allocated in memory (debug info)
Definition: loadimage.hh:47
Address address
Starting address of section.
Definition: loadimage.hh:53