#include <Module.h>
Public Member Functions | |
| SYMTAB_EXPORT | Module () |
| SYMTAB_EXPORT | Module (supportedLanguages lang, Offset adr, std::string fullNm, Symtab *img) |
| SYMTAB_EXPORT | Module (const Module &mod) |
| SYMTAB_EXPORT bool | operator== (Module &mod) |
| SYMTAB_EXPORT Serializable * | serialize_impl (SerializerBase *sb, const char *tag="Module") THROW_SPEC(SerializerError) |
| SYMTAB_EXPORT const std::string & | fileName () const |
| SYMTAB_EXPORT const std::string & | fullName () const |
| SYMTAB_EXPORT bool | setName (std::string newName) |
| SYMTAB_EXPORT supportedLanguages | language () const |
| SYMTAB_EXPORT void | setLanguage (supportedLanguages lang) |
| SYMTAB_EXPORT Offset | addr () const |
| SYMTAB_EXPORT Symtab * | exec () const |
| SYMTAB_EXPORT bool | isShared () const |
| SYMTAB_EXPORT | ~Module () |
| virtual SYMTAB_EXPORT bool | findSymbol (std::vector< Symbol * > &ret, const std::string &name, Symbol::SymbolType sType=Symbol::ST_UNKNOWN, NameType nameType=anyName, bool isRegex=false, bool checkCase=false, bool includeUndefined=false) |
| virtual SYMTAB_EXPORT bool | getAllSymbolsByType (std::vector< Symbol * > &ret, Symbol::SymbolType sType) |
| virtual SYMTAB_EXPORT bool | getAllSymbols (std::vector< Symbol * > &ret) |
| SYMTAB_EXPORT bool | getAllFunctions (std::vector< Function * > &ret) |
| SYMTAB_EXPORT bool | findFunctionByEntryOffset (Function *&ret, const Offset offset) |
| SYMTAB_EXPORT bool | findFunctionsByName (std::vector< Function * > &ret, const std::string &name, NameType nameType=anyName, bool isRegex=false, bool checkCase=true) |
| SYMTAB_EXPORT bool | findVariableByOffset (Variable *&ret, const Offset offset) |
| SYMTAB_EXPORT bool | findVariablesByName (std::vector< Variable * > &ret, const std::string &name, NameType nameType=anyName, bool isRegex=false, bool checkCase=true) |
| SYMTAB_EXPORT bool | getAllVariables (std::vector< Variable * > &ret) |
| virtual SYMTAB_EXPORT bool | findType (Type *&type, std::string name) |
| virtual SYMTAB_EXPORT bool | findVariableType (Type *&type, std::string name) |
| SYMTAB_EXPORT std::vector < Type * > * | getAllTypes () |
| SYMTAB_EXPORT std::vector < std::pair< std::string, Type * > > * | getAllGlobalVars () |
| SYMTAB_EXPORT typeCollection * | getModuleTypes () |
| SYMTAB_EXPORT bool | findLocalVariable (std::vector< localVar * > &vars, std::string name) |
| SYMTAB_EXPORT bool | getAddressRanges (std::vector< std::pair< Offset, Offset > > &ranges, std::string lineSource, unsigned int LineNo) |
| SYMTAB_EXPORT bool | getSourceLines (std::vector< Statement * > &lines, Offset addressInRange) |
| SYMTAB_EXPORT bool | getSourceLines (std::vector< LineNoTuple > &lines, Offset addressInRange) |
| SYMTAB_EXPORT bool | getStatements (std::vector< Statement * > &statements) |
| SYMTAB_EXPORT LineInformation * | getLineInformation () |
| SYMTAB_EXPORT bool | hasLineInformation () |
| SYMTAB_EXPORT bool | setDefaultNamespacePrefix (std::string str) |
| SYMTAB_EXPORT typeCollection * | getModuleTypesPrivate () |
Private Member Functions | |
| bool | setLineInfo (Dyninst::SymtabAPI::LineInformation *lineInfo) |
Private Attributes | |
| std::string | fileName_ |
| std::string | fullName_ |
| supportedLanguages | language_ |
| Offset | addr_ |
| Symtab * | exec_ |
Friends | |
| class | Symtab |
Definition at line 105 of file Module.h.
| Module::Module | ( | supportedLanguages | lang, | |
| Offset | adr, | |||
| std::string | fullNm, | |||
| Symtab * | img | |||
| ) |
Definition at line 390 of file Module.C.
References extract_pathname_tail(), and fileName_.
| Module::~Module | ( | ) |
Definition at line 422 of file Module.C.
References FILE__, fprintf, ModuleLineInfoAnno, and ModuleTypeInfoAnno.
| Offset Module::addr | ( | ) | const |
Definition at line 558 of file Module.C.
References addr_.
Referenced by Dyninst::SymtabAPI::Symtab::findModuleByOffset().
| Symtab * Module::exec | ( | ) | const |
Definition at line 109 of file Module.C.
References exec_.
Referenced by Dyninst::SymtabAPI::Symtab::addSymbol(), Dyninst::SymtabAPI::Aggregate::changeSymbolOffset(), Dyninst::SymtabAPI::Symtab::createFunction(), Dyninst::SymtabAPI::Function::expandLocation(), Dyninst::SymtabAPI::Function::findLocalVariable(), findSymbol(), findVariablesByName(), getAllFunctions(), getAllSymbols(), getAllSymbolsByType(), Dyninst::SymtabAPI::Function::getLocalVariables(), Dyninst::SymtabAPI::Function::getParams(), Dyninst::SymtabAPI::Symbol::getSymtab(), Dyninst::SymtabAPI::Variable::getType(), mangledNameMatchKLUDGE(), parseCPlusPlusInfo(), Dyninst::SymtabAPI::parseStabString(), Dyninst::SymtabAPI::Variable::removeSymbol(), Dyninst::SymtabAPI::Function::removeSymbol(), Dyninst::SymtabAPI::Symbol::setSymbolType(), and vectorNameMatchKLUDGE().
| const std::string & Module::fileName | ( | ) | const |
Definition at line 99 of file Module.C.
References fileName_.
Referenced by add_type_info(), addBaseClassToClass(), Dyninst::SymtabAPI::Aggregate::addSymbol(), Dyninst::SymtabAPI::Symtab::createDefaultModule(), Dyninst::SymtabAPI::Symtab::createFunction(), enumLocalSymbols(), Dyninst::SymtabAPI::DwarfWalker::parseModule(), Dyninst::SymtabAPI::parseStabString(), print_symbols(), Dyninst::SymtabAPI::Symtab::rebuild_module_hashes(), Dyninst::SymtabAPI::Symtab::setModuleLanguages(), and Dyninst::SymtabAPI::Symtab::Symtab().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::findFunctionByEntryOffset | ( | Function *& | ret, | |
| const Offset | offset | |||
| ) |
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::findFunctionsByName | ( | std::vector< Function * > & | ret, | |
| const std::string & | name, | |||
| NameType | nameType = anyName, |
|||
| bool | isRegex = false, |
|||
| bool | checkCase = true | |||
| ) |
| bool Module::findLocalVariable | ( | std::vector< localVar * > & | vars, | |
| std::string | name | |||
| ) |
Definition at line 368 of file Module.C.
References exec_, and Dyninst::SymtabAPI::Symtab::getAllFunctions().
| bool Module::findSymbol | ( | std::vector< Symbol * > & | ret, | |
| const std::string & | name, | |||
| Symbol::SymbolType | sType = Symbol::ST_UNKNOWN, |
|||
| NameType | nameType = anyName, |
|||
| bool | isRegex = false, |
|||
| bool | checkCase = false, |
|||
| bool | includeUndefined = false | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 53 of file Module.C.
References exec().
| bool Module::findType | ( | Type *& | type, | |
| std::string | name | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 273 of file Module.C.
References Dyninst::SymtabAPI::typeCollection::findType(), and getModuleTypes().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::findVariableByOffset | ( | Variable *& | ret, | |
| const Offset | offset | |||
| ) |
| bool Module::findVariablesByName | ( | std::vector< Variable * > & | ret, | |
| const std::string & | name, | |||
| NameType | nameType = anyName, |
|||
| bool | isRegex = false, |
|||
| bool | checkCase = true | |||
| ) |
Definition at line 568 of file Module.C.
References exec().
Referenced by Dyninst::SymtabAPI::parseStabString().
| bool Module::findVariableType | ( | Type *& | type, | |
| std::string | name | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 286 of file Module.C.
References Dyninst::SymtabAPI::typeCollection::findVariableType(), and getModuleTypes().
| const std::string & Module::fullName | ( | ) | const |
Definition at line 104 of file Module.C.
References fullName_.
Referenced by Dyninst::SymtabAPI::Symtab::createDefaultModule(), operator<<(), Dyninst::SymtabAPI::Symbol::operator==(), Dyninst::SymtabAPI::Aggregate::operator==(), Dyninst::SymtabAPI::Symtab::rebuild_module_hashes(), and Dyninst::SymtabAPI::Symtab::Symtab().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::getAddressRanges | ( | std::vector< std::pair< Offset, Offset > > & | ranges, | |
| std::string | lineSource, | |||
| unsigned int | LineNo | |||
| ) |
| bool Module::getAllFunctions | ( | std::vector< Function * > & | ret | ) |
Definition at line 485 of file Module.C.
References exec(), and Dyninst::SymtabAPI::Symtab::getAllFunctions().
| vector< pair< string, Type * > > * Module::getAllGlobalVars | ( | ) |
Definition at line 238 of file Module.C.
References exec_, FILE__, fprintf, Dyninst::SymtabAPI::typeCollection::getAllGlobalVariables(), ModuleTypeInfoAnno, and Dyninst::SymtabAPI::Symtab::parseTypesNow().
| bool Module::getAllSymbols | ( | std::vector< Symbol * > & | ret | ) | [virtual] |
| bool Module::getAllSymbolsByType | ( | std::vector< Symbol * > & | ret, | |
| Symbol::SymbolType | sType | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 462 of file Module.C.
References exec(), Dyninst::SymtabAPI::No_Such_Symbol, and serr.
| vector< Type * > * Module::getAllTypes | ( | ) |
Definition at line 220 of file Module.C.
References exec_, FILE__, fprintf, Dyninst::SymtabAPI::typeCollection::getAllTypes(), ModuleTypeInfoAnno, and Dyninst::SymtabAPI::Symtab::parseTypesNow().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::getAllVariables | ( | std::vector< Variable * > & | ret | ) |
| LineInformation * Module::getLineInformation | ( | ) |
Definition at line 334 of file Module.C.
References exec_, FILE__, fprintf, Dyninst::SymtabAPI::LineInformation::getSize(), Dyninst::SymtabAPI::Symtab::isLineInfoValid_, ModuleLineInfoAnno, and Dyninst::SymtabAPI::Symtab::parseLineInformation().
Referenced by Dyninst::SymtabAPI::Symtab::addAddressRange(), Dyninst::SymtabAPI::Symtab::addLine(), getSourceLines(), getStatements(), and Dyninst::SymtabAPI::Symtab::parseLineInformation().
| typeCollection * Module::getModuleTypes | ( | ) |
Definition at line 256 of file Module.C.
References exec_, getModuleTypesPrivate(), and Dyninst::SymtabAPI::Symtab::parseTypesNow().
Referenced by findType(), and findVariableType().
| typeCollection * Module::getModuleTypesPrivate | ( | ) |
Definition at line 262 of file Module.C.
References ModuleTypeInfoAnno.
Referenced by getModuleTypes().
| bool Module::getSourceLines | ( | std::vector< LineNoTuple > & | lines, | |
| Offset | addressInRange | |||
| ) |
Definition at line 169 of file Module.C.
References getLineInformation(), and Dyninst::SymtabAPI::LineInformation::getSourceLines().
Definition at line 155 of file Module.C.
References getLineInformation(), and Dyninst::SymtabAPI::LineInformation::getSourceLines().
| bool Module::getStatements | ( | std::vector< Statement * > & | statements | ) |
Definition at line 183 of file Module.C.
References Dyninst::SymtabAPI::LineInformation::begin(), Dyninst::SymtabAPI::LineInformation::end(), getLineInformation(), and Dyninst::SymtabAPI::LineInformation::getSize().
| bool Module::hasLineInformation | ( | ) |
Definition at line 119 of file Module.C.
References FILE__, fprintf, Dyninst::SymtabAPI::LineInformation::getSize(), and ModuleLineInfoAnno.
| bool Module::isShared | ( | ) | const |
Definition at line 457 of file Module.C.
References exec_, Dyninst::SymtabAPI::Symtab::getObjectType(), and Dyninst::SymtabAPI::obj_SharedLib.
Referenced by Dyninst::SymtabAPI::Symtab::setModuleLanguages().
| supportedLanguages Module::language | ( | ) | const |
Definition at line 114 of file Module.C.
References language_.
Referenced by Dyninst::SymtabAPI::Symtab::demangleSymbol(), mangledNameMatchKLUDGE(), and Dyninst::SymtabAPI::DwarfWalker::removeFortranUnderscore().
| bool Module::operator== | ( | Module & | mod | ) |
Definition at line 490 of file Module.C.
References addr_, exec_, Dyninst::SymtabAPI::Symtab::file(), FILE__, fileName_, fprintf, fullName_, Dyninst::SymtabAPI::LineInformation::getSize(), language_, ModuleLineInfoAnno, and Dyninst::SymtabAPI::Symtab::name().
| Serializable * Module::serialize_impl | ( | SerializerBase * | sb, | |
| const char * | tag = "Module" | |||
| ) |
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Module::setDefaultNamespacePrefix | ( | std::string | str | ) |
Referenced by Dyninst::SymtabAPI::parseStabString().
| void Module::setLanguage | ( | supportedLanguages | lang | ) |
Definition at line 553 of file Module.C.
References language_.
Referenced by Dyninst::SymtabAPI::Symtab::setModuleLanguages().
| bool Module::setLineInfo | ( | Dyninst::SymtabAPI::LineInformation * | lineInfo | ) | [private] |
Definition at line 300 of file Module.C.
References FILE__, fprintf, and ModuleLineInfoAnno.
Referenced by Dyninst::SymtabAPI::Symtab::parseLineInformation().
| bool Module::setName | ( | std::string | newName | ) |
Definition at line 546 of file Module.C.
References extract_pathname_tail(), fileName_, and fullName_.
Offset Dyninst::SymtabAPI::Module::addr_ [private] |
Definition at line 200 of file Module.h.
Referenced by addr(), and operator==().
Symtab* Dyninst::SymtabAPI::Module::exec_ [private] |
Definition at line 201 of file Module.h.
Referenced by exec(), findLocalVariable(), Dyninst::SymtabAPI::Symtab::fixup_relocation_symbols(), getAllGlobalVars(), getAllTypes(), getLineInformation(), getModuleTypes(), isShared(), operator==(), and Dyninst::SymtabAPI::Symtab::setup_module_up_ptrs().
std::string Dyninst::SymtabAPI::Module::fileName_ [private] |
Definition at line 197 of file Module.h.
Referenced by fileName(), Module(), operator==(), and setName().
std::string Dyninst::SymtabAPI::Module::fullName_ [private] |
Definition at line 198 of file Module.h.
Referenced by fullName(), operator==(), and setName().
Definition at line 199 of file Module.h.
Referenced by language(), operator==(), and setLanguage().
1.6.1