#include <addrtranslate.h>
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 |
| SymReader * | symreader |
| SymbolReaderFactory * | symreader_factory |
| void * | up_ptr |
Friends | |
| class | AddressTranslate |
| class | AddressTranslateSysV |
Definition at line 49 of file addrtranslate.h.
| 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.
| void LoadedLib::add_mapped_region | ( | Address | addr, | |
| unsigned long | size | |||
| ) |
Definition at line 182 of file addrtranslate.C.
References mapped_regions.
Referenced by Dyninst::AddressTranslateWin::refresh(), and Dyninst::AddressTranslateAIX::refresh().
Reimplemented in Dyninst::LoadedLibAIX.
Definition at line 223 of file addrtranslate.C.
References getCodeLoadAddr().
Referenced by Dyninst::SymtabAPI::AddressLookup::getOffset(), and Dyninst::SymtabAPI::AddressLookup::getSymbol().
| Address LoadedLib::getCodeLoadAddr | ( | ) | const [virtual] |
Reimplemented in Dyninst::LoadedLibAIX.
Definition at line 228 of file addrtranslate.C.
References load_addr.
Referenced by addrToOffset(), Dyninst::SymtabAPI::AddressLookup::getLoadAddress(), Dyninst::SymtabAPI::AddressLookup::getOffset(), offToAddress(), Dyninst::LoadedLibCmp::operator()(), Dyninst::AddressTranslateSysV::refresh(), and Dyninst::SymtabAPI::AddressLookup::symToAddress().
| Address LoadedLib::getDataLoadAddr | ( | ) | const [virtual] |
Reimplemented in Dyninst::LoadedLibAIX.
Definition at line 233 of file addrtranslate.C.
References data_load_addr.
Referenced by Dyninst::SymtabAPI::AddressLookup::getDataLoadAddress(), and Dyninst::SymtabAPI::AddressLookup::getOffset().
| 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 |
Definition at line 178 of file addrtranslate.C.
References name.
Referenced by Dyninst::SymtabAPI::AddressLookup::getLoadedLib(), Dyninst::SymtabAPI::AddressLookup::getOffset(), Dyninst::SymtabAPI::AddressLookup::getSymsVector(), Dyninst::SymtabAPI::AddressLookup::getSymtab(), Dyninst::LoadedLibCmp::operator()(), and Dyninst::AddressTranslateSysV::refresh().
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.
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 | ) |
Definition at line 187 of file addrtranslate.C.
References should_clean.
Referenced by Dyninst::AddressTranslateSysV::getLoadedLibByNameAddr(), and Dyninst::AddressTranslateSysV::refresh().
| 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.
friend class AddressTranslate [friend] |
Definition at line 50 of file addrtranslate.h.
friend class AddressTranslateSysV [friend] |
Definition at line 51 of file addrtranslate.h.
Address Dyninst::LoadedLib::data_load_addr [protected] |
Definition at line 55 of file addrtranslate.h.
Referenced by getDataLoadAddr(), Dyninst::LoadedLibAIX::getOutputs(), and setDataLoadAddr().
Address Dyninst::LoadedLib::dynamic_addr [protected] |
Definition at line 56 of file addrtranslate.h.
Referenced by getDynamicAddr(), and Dyninst::AddressTranslateSysV::refresh().
Address Dyninst::LoadedLib::load_addr [protected] |
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] |
Definition at line 58 of file addrtranslate.h.
Referenced by add_mapped_region(), Dyninst::LoadedLibAIX::addrToOffset(), and getMappedRegions().
string Dyninst::LoadedLib::name [protected] |
Definition at line 53 of file addrtranslate.h.
Referenced by getName(), getOutputs(), Dyninst::LoadedLibAIX::getOutputs(), and Dyninst::LoadedLibAIX::setReals().
bool Dyninst::LoadedLib::should_clean [protected] |
Definition at line 57 of file addrtranslate.h.
Referenced by setShouldClean(), and shouldClean().
SymReader* Dyninst::LoadedLib::symreader [protected] |
Definition at line 59 of file addrtranslate.h.
SymbolReaderFactory* Dyninst::LoadedLib::symreader_factory [protected] |
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().
1.6.1