Dyninst::LoadedLib Class Reference

#include <addrtranslate.h>

Inheritance diagram for Dyninst::LoadedLib:
Dyninst::LoadedLibAIX

Public Member Functions

COMMON_EXPORT LoadedLib (string name, Address load_addr)
virtual COMMON_EXPORT ~LoadedLib ()
COMMON_EXPORT void add_mapped_region (Address addr, unsigned long size)
COMMON_EXPORT string getName () const
COMMON_EXPORT void setDataLoadAddr (Address a)
COMMON_EXPORT vector< pair
< Address, unsigned long > > * 
getMappedRegions ()
virtual COMMON_EXPORT Address offToAddress (Offset off)
virtual COMMON_EXPORT Offset addrToOffset (Address addr)
virtual COMMON_EXPORT Address getCodeLoadAddr () const
virtual COMMON_EXPORT Address getDataLoadAddr () const
virtual COMMON_EXPORT Address getDynamicAddr () const
virtual COMMON_EXPORT void getOutputs (string &filename, Address &code, Address &data)
COMMON_EXPORT void * getUpPtr ()
COMMON_EXPORT void setUpPtr (void *v)
COMMON_EXPORT void setShouldClean (bool b)
COMMON_EXPORT bool shouldClean ()
COMMON_EXPORT void setFactory (SymbolReaderFactory *factory)

Protected Attributes

string name
Address load_addr
Address data_load_addr
Address dynamic_addr
bool should_clean
vector< pair< Address,
unsigned long > > 
mapped_regions
SymReadersymreader
SymbolReaderFactorysymreader_factory
void * up_ptr

Friends

class AddressTranslate
class AddressTranslateSysV

Detailed Description

Definition at line 49 of file addrtranslate.h.


Constructor & Destructor Documentation

LoadedLib::LoadedLib ( string  name,
Address  load_addr 
)

Definition at line 197 of file addrtranslate.C.

LoadedLib::~LoadedLib (  )  [virtual]

Definition at line 209 of file addrtranslate.C.


Member Function Documentation

void LoadedLib::add_mapped_region ( Address  addr,
unsigned long  size 
)
Offset LoadedLib::addrToOffset ( Address  addr  )  [virtual]
Address LoadedLib::getCodeLoadAddr (  )  const [virtual]
Address LoadedLib::getDataLoadAddr (  )  const [virtual]
Address LoadedLib::getDynamicAddr (  )  const [virtual]

Definition at line 238 of file addrtranslate.C.

References dynamic_addr.

Referenced by Dyninst::AddressTranslate::getLibAtAddress().

vector< pair< Address, unsigned long > > * LoadedLib::getMappedRegions (  ) 

Definition at line 238 of file addrtranslate-aix.C.

References mapped_regions.

Referenced by Dyninst::AddressTranslate::getLibAtAddress().

string LoadedLib::getName (  )  const
void LoadedLib::getOutputs ( string &  filename,
Address code,
Address data 
) [virtual]

Reimplemented in Dyninst::LoadedLibAIX.

Definition at line 248 of file addrtranslate.C.

References load_addr, and name.

Referenced by Dyninst::SymtabAPI::AddressLookup::getExecutable().

void * LoadedLib::getUpPtr (  ) 

Definition at line 255 of file addrtranslate.C.

References up_ptr.

Address LoadedLib::offToAddress ( Offset  off  )  [virtual]

Reimplemented in Dyninst::LoadedLibAIX.

Definition at line 218 of file addrtranslate.C.

References getCodeLoadAddr().

Referenced by Dyninst::SymtabAPI::AddressLookup::getAddress().

void LoadedLib::setDataLoadAddr ( Address  a  ) 

Definition at line 213 of file addrtranslate.C.

References data_load_addr.

Referenced by Dyninst::AddressTranslateAIX::refresh().

void LoadedLib::setFactory ( SymbolReaderFactory factory  ) 

Definition at line 243 of file addrtranslate.C.

References symreader_factory.

Referenced by Dyninst::AddressTranslateSysV::getLoadedLibByNameAddr().

void LoadedLib::setShouldClean ( bool  b  ) 
void LoadedLib::setUpPtr ( void *  v  ) 

Definition at line 260 of file addrtranslate.C.

References up_ptr.

bool LoadedLib::shouldClean (  ) 

Definition at line 192 of file addrtranslate.C.

References should_clean.


Friends And Related Function Documentation

friend class AddressTranslate [friend]

Definition at line 50 of file addrtranslate.h.

friend class AddressTranslateSysV [friend]

Definition at line 51 of file addrtranslate.h.


Field Documentation

Definition at line 56 of file addrtranslate.h.

Referenced by getDynamicAddr(), and Dyninst::AddressTranslateSysV::refresh().

Definition at line 54 of file addrtranslate.h.

Referenced by getCodeLoadAddr(), getOutputs(), and Dyninst::LoadedLibAIX::getOutputs().

vector< pair<Address, unsigned long> > Dyninst::LoadedLib::mapped_regions [protected]
string Dyninst::LoadedLib::name [protected]

Definition at line 57 of file addrtranslate.h.

Referenced by setShouldClean(), and shouldClean().

Definition at line 59 of file addrtranslate.h.

Definition at line 60 of file addrtranslate.h.

Referenced by setFactory(), and Dyninst::LoadedLibAIX::setReals().

void* Dyninst::LoadedLib::up_ptr [protected]

Definition at line 61 of file addrtranslate.h.

Referenced by getUpPtr(), and setUpPtr().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1