#include <Symtab.h>
Public Types | |
| enum | def_t { NotDefensive, Defensive } |
| typedef dyn_hash_map< void *, void *, void_ptr_hasher > | annos_by_type_t |
| typedef std::vector < annos_by_type_t * > | annos_t |
Public Member Functions | |
| SYMTAB_EXPORT | Symtab (MappedFile *) |
| SYMTAB_EXPORT | Symtab () |
| SYMTAB_EXPORT | Symtab (const Symtab &obj) |
| SYMTAB_EXPORT | Symtab (unsigned char *mem_image, size_t image_size, const std::string &name, bool defensive_binary, bool &err) |
| SYMTAB_EXPORT Serializable * | serialize_impl (SerializerBase *sb, const char *tag="Symtab") THROW_SPEC(SerializerError) |
| void | rebuild_symbol_hashes (SerializerBase *) |
| void | rebuild_funcvar_hashes (SerializerBase *) |
| void | rebuild_module_hashes (SerializerBase *) |
| void | rebuild_region_indexes (SerializerBase *) THROW_SPEC(SerializerError) |
| SYMTAB_EXPORT bool | exportXML (std::string filename) |
| SYMTAB_EXPORT bool | exportBin (std::string filename) |
| SYMTAB_EXPORT bool | getRegValueAtFrame (Address pc, Dyninst::MachRegister reg, Dyninst::MachRegisterVal ®_result, MemRegReader *reader) |
| SYMTAB_EXPORT bool | hasStackwalkDebugInfo () |
| 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 | getAllSymbols (std::vector< Symbol * > &ret) |
| virtual SYMTAB_EXPORT bool | getAllSymbolsByType (std::vector< Symbol * > &ret, Symbol::SymbolType sType) |
| std::vector< Symbol * > * | findSymbolByOffset (Offset) |
| SYMTAB_EXPORT bool | getAllUndefinedSymbols (std::vector< Symbol * > &ret) |
| SYMTAB_EXPORT bool | getAllDefinedSymbols (std::vector< Symbol * > &ret) |
| SYMTAB_EXPORT bool | findFuncByEntryOffset (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 | getAllFunctions (std::vector< Function * > &ret) |
| SYMTAB_EXPORT bool | getContainingFunction (Offset offset, Function *&func) |
| 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) |
| SYMTAB_EXPORT bool | getAllModules (std::vector< Module * > &ret) |
| SYMTAB_EXPORT bool | findModuleByOffset (Module *&ret, Offset off) |
| SYMTAB_EXPORT bool | findModuleByName (Module *&ret, const std::string name) |
| SYMTAB_EXPORT Module * | getDefaultModule () |
| SYMTAB_EXPORT bool | getCodeRegions (std::vector< Region * > &ret) |
| SYMTAB_EXPORT bool | getDataRegions (std::vector< Region * > &ret) |
| SYMTAB_EXPORT bool | getAllRegions (std::vector< Region * > &ret) |
| SYMTAB_EXPORT bool | getAllNewRegions (std::vector< Region * > &ret) |
| SYMTAB_EXPORT bool | findRegion (Region *&ret, std::string regname) |
| SYMTAB_EXPORT bool | findRegion (Region *&ret, const Offset addr, const unsigned long size) |
| SYMTAB_EXPORT bool | findRegionByEntry (Region *&ret, const Offset offset) |
| SYMTAB_EXPORT Region * | findEnclosingRegion (const Offset offset) |
| SYMTAB_EXPORT bool | findException (ExceptionBlock &excp, Offset addr) |
| SYMTAB_EXPORT bool | getAllExceptions (std::vector< ExceptionBlock * > &exceptions) |
| SYMTAB_EXPORT bool | findCatchBlock (ExceptionBlock &excp, Offset addr, unsigned size=0) |
| SYMTAB_EXPORT bool | getFuncBindingTable (std::vector< relocationEntry > &fbt) const |
| SYMTAB_EXPORT bool | updateFuncBindingTable (Offset stub_addr, Offset plt_addr) |
| SYMTAB_EXPORT bool | addSymbol (Symbol *newsym) |
| SYMTAB_EXPORT bool | addSymbol (Symbol *newSym, Symbol *referringSymbol) |
| SYMTAB_EXPORT Function * | createFunction (std::string name, Offset offset, size_t size, Module *mod=NULL) |
| SYMTAB_EXPORT Variable * | createVariable (std::string name, Offset offset, size_t size, Module *mod=NULL) |
| SYMTAB_EXPORT bool | deleteFunction (Function *func) |
| SYMTAB_EXPORT bool | deleteVariable (Variable *var) |
| SYMTAB_EXPORT bool | isExec () const |
| SYMTAB_EXPORT bool | isStripped () |
| SYMTAB_EXPORT ObjectType | getObjectType () const |
| SYMTAB_EXPORT Dyninst::Architecture | getArchitecture () |
| SYMTAB_EXPORT bool | isCode (const Offset where) const |
| SYMTAB_EXPORT bool | isData (const Offset where) const |
| SYMTAB_EXPORT bool | isValidOffset (const Offset where) const |
| SYMTAB_EXPORT bool | isNativeCompiler () const |
| SYMTAB_EXPORT bool | getMappedRegions (std::vector< Region * > &mappedRegs) const |
| 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 | addLine (std::string lineSource, unsigned int lineNo, unsigned int lineOffset, Offset lowInclAddr, Offset highExclAddr) |
| SYMTAB_EXPORT bool | addAddressRange (Offset lowInclAddr, Offset highExclAddr, std::string lineSource, unsigned int lineNo, unsigned int lineOffset=0) |
| SYMTAB_EXPORT void | setTruncateLinePaths (bool value) |
| SYMTAB_EXPORT bool | getTruncateLinePaths () |
| virtual SYMTAB_EXPORT bool | findType (Type *&type, std::string name) |
| virtual SYMTAB_EXPORT Type * | findType (unsigned type_id) |
| virtual SYMTAB_EXPORT bool | findVariableType (Type *&type, std::string name) |
| SYMTAB_EXPORT bool | addType (Type *typ) |
| SYMTAB_EXPORT void | parseTypesNow () |
| SYMTAB_EXPORT bool | findLocalVariable (std::vector< localVar * > &vars, std::string name) |
| SYMTAB_EXPORT bool | hasRel () const |
| SYMTAB_EXPORT bool | hasRela () const |
| SYMTAB_EXPORT bool | hasReldyn () const |
| SYMTAB_EXPORT bool | hasReladyn () const |
| SYMTAB_EXPORT bool | hasRelplt () const |
| SYMTAB_EXPORT bool | hasRelaplt () const |
| SYMTAB_EXPORT bool | isStaticBinary () const |
| SYMTAB_EXPORT bool | emitSymbols (Object *linkedFile, std::string filename, unsigned flag=0) |
| SYMTAB_EXPORT bool | addRegion (Offset vaddr, void *data, unsigned int dataSize, std::string name, Region::RegionType rType_, bool loadable=false, unsigned long memAlign=sizeof(unsigned), bool tls=false) |
| SYMTAB_EXPORT bool | addRegion (Region *newreg) |
| SYMTAB_EXPORT bool | emit (std::string filename, unsigned flag=0) |
| SYMTAB_EXPORT void | addDynLibSubstitution (std::string oldName, std::string newName) |
| SYMTAB_EXPORT std::string | getDynLibSubstitution (std::string name) |
| SYMTAB_EXPORT bool | getSegments (std::vector< Segment > &segs) const |
| SYMTAB_EXPORT void | fixup_code_and_data (Offset newImageOffset, Offset newImageLength, Offset newDataOffset, Offset newDataLength) |
| SYMTAB_EXPORT bool | fixup_RegionAddr (const char *name, Offset memOffset, long memSize) |
| SYMTAB_EXPORT bool | fixup_SymbolAddr (const char *name, Offset newOffset) |
| SYMTAB_EXPORT bool | updateRegion (const char *name, void *buffer, unsigned size) |
| SYMTAB_EXPORT bool | updateCode (void *buffer, unsigned size) |
| SYMTAB_EXPORT bool | updateData (void *buffer, unsigned size) |
| SYMTAB_EXPORT Offset | getFreeOffset (unsigned size) |
| SYMTAB_EXPORT bool | addLibraryPrereq (std::string libname) |
| SYMTAB_EXPORT bool | addSysVDynamic (long name, long value) |
| SYMTAB_EXPORT bool | addLinkingResource (Archive *library) |
| SYMTAB_EXPORT bool | getLinkingResources (std::vector< Archive * > &libs) |
| SYMTAB_EXPORT bool | addExternalSymbolReference (Symbol *externalSym, Region *localRegion, relocationEntry localRel) |
| SYMTAB_EXPORT bool | addTrapHeader_win (Address ptr) |
| SYMTAB_EXPORT bool | updateRelocations (Address start, Address end, Symbol *oldsym, Symbol *newsym) |
| SYMTAB_EXPORT std::string | file () const |
| SYMTAB_EXPORT std::string | name () const |
| SYMTAB_EXPORT std::string | memberName () const |
| SYMTAB_EXPORT char * | mem_image () const |
| SYMTAB_EXPORT Offset | imageOffset () const |
| SYMTAB_EXPORT Offset | dataOffset () const |
| SYMTAB_EXPORT Offset | dataLength () const |
| SYMTAB_EXPORT Offset | imageLength () const |
| SYMTAB_EXPORT Offset | getInitOffset () |
| SYMTAB_EXPORT Offset | getFiniOffset () |
| SYMTAB_EXPORT const char * | getInterpreterName () const |
| SYMTAB_EXPORT unsigned | getAddressWidth () const |
| SYMTAB_EXPORT Offset | getLoadOffset () const |
| SYMTAB_EXPORT Offset | getEntryOffset () const |
| SYMTAB_EXPORT Offset | getBaseOffset () const |
| SYMTAB_EXPORT Offset | getTOCoffset (Function *func=NULL) const |
| SYMTAB_EXPORT Offset | getTOCoffset (Offset off) const |
| SYMTAB_EXPORT Address | getLoadAddress () |
| SYMTAB_EXPORT bool | isDefensiveBinary () const |
| SYMTAB_EXPORT Offset | fileToDiskOffset (Dyninst::Offset) const |
| SYMTAB_EXPORT Offset | fileToMemOffset (Dyninst::Offset) const |
| SYMTAB_EXPORT std::string | getDefaultNamespacePrefix () const |
| SYMTAB_EXPORT unsigned | getNumberofRegions () const |
| SYMTAB_EXPORT unsigned | getNumberofSymbols () const |
| SYMTAB_EXPORT std::vector < std::string > & | getDependencies () |
| SYMTAB_EXPORT bool | removeLibraryDependency (std::string lib) |
| SYMTAB_EXPORT Archive * | getParentArchive () const |
| SYMTAB_EXPORT | ~Symtab () |
| bool | delSymbol (Symbol *sym) |
| bool | deleteSymbol (Symbol *sym) |
| Symbol * | getSymbolByIndex (unsigned) |
| SYMTAB_EXPORT bool | canBeShared () |
| SYMTAB_EXPORT Module * | getOrCreateModule (const std::string &modName, const Offset modAddr) |
| SYMTAB_EXPORT Offset | getElfDynamicOffset () |
| SYMTAB_EXPORT void | getSegmentsSymReader (std::vector< SymSegment > &segs) |
| Object * | getObject () |
| template<class T > | |
| AN_INLINE bool | addAnnotation (const T *a, AnnotationClass< T > &a_id) |
| bool | operator== (AnnotatableSparse &cmp) |
| template<class T > | |
| AN_INLINE bool | getAnnotation (T *&a, AnnotationClass< T > &a_id) const |
| template<class T > | |
| bool | removeAnnotation (AnnotationClass< T > &a_id) |
| void | serializeAnnotations (SerializerBase *sb, const char *) |
| void | annotationsReport () |
Static Public Member Functions | |
| static SYMTAB_EXPORT void | version (int &major, int &minor, int &maintenance) |
| static SYMTAB_EXPORT bool | openFile (Symtab *&obj, std::string filename, def_t defensive_binary=NotDefensive) |
| static SYMTAB_EXPORT bool | openFile (Symtab *&obj, void *mem_image, size_t size, std::string name, def_t defensive_binary=NotDefensive) |
| static SYMTAB_EXPORT Symtab * | findOpenSymtab (std::string filename) |
| static SYMTAB_EXPORT bool | closeSymtab (Symtab *) |
| static bool | setup_module_up_ptrs (SerializerBase *, Symtab *st) |
| static bool | fixup_relocation_symbols (SerializerBase *, Symtab *st) |
| static Symtab * | importBin (std::string filename) |
| static boost::shared_ptr < builtInTypeCollection > | builtInTypes () |
| static boost::shared_ptr < typeCollection > | stdTypes () |
| static SYMTAB_EXPORT std::vector< Type * > * | getAllstdTypes () |
| static SYMTAB_EXPORT std::vector< Type * > * | getAllbuiltInTypes () |
| static SYMTAB_EXPORT SymtabError | getLastSymtabError () |
| static SYMTAB_EXPORT std::string | printError (SymtabError serr) |
| static boost::shared_ptr< Type > | type_Error () |
| static boost::shared_ptr< Type > | type_Untyped () |
Protected Member Functions | |
| Symtab (std::string filename, std::string member_name, Offset offset, bool &err, void *base=NULL) | |
| Symtab (char *img, size_t size, std::string member_name, Offset offset, bool &err, void *base=NULL) | |
Private Member Functions | |
| SYMTAB_EXPORT | Symtab (std::string filename, bool defensive_bin, bool &err) |
| SYMTAB_EXPORT bool | extractInfo (Object *linkedFile) |
| bool | extractSymbolsFromFile (Object *linkedFile, std::vector< Symbol * > &raw_syms) |
| bool | fixSymRegion (Symbol *sym) |
| bool | fixSymModules (std::vector< Symbol * > &raw_syms) |
| bool | demangleSymbols (std::vector< Symbol * > &rawsyms) |
| bool | createIndices (std::vector< Symbol * > &raw_syms, bool undefined) |
| bool | createAggregates () |
| bool | fixSymModule (Symbol *&sym) |
| bool | demangleSymbol (Symbol *&sym) |
| bool | addSymbolToIndices (Symbol *&sym, bool undefined) |
| bool | addSymbolToAggregates (Symbol *&sym) |
| bool | doNotAggregate (Symbol *&sym) |
| bool | updateIndices (Symbol *sym, std::string newName, NameType nameType) |
| void | setModuleLanguages (dyn_hash_map< std::string, supportedLanguages > *mod_langs) |
| bool | buildDemangledName (const std::string &mangled, std::string &pretty, std::string &typed, bool nativeCompiler, supportedLanguages lang) |
| bool | changeType (Symbol *sym, Symbol::SymbolType oldType) |
| bool | changeSymbolOffset (Symbol *sym, Offset newOffset) |
| bool | deleteSymbolFromIndices (Symbol *sym) |
| bool | changeAggregateOffset (Aggregate *agg, Offset oldOffset, Offset newOffset) |
| bool | deleteAggregate (Aggregate *agg) |
| void | createDefaultModule () |
| Module * | newModule (const std::string &name, const Offset addr, supportedLanguages lang) |
| bool | addSymtabVariables () |
| void | checkPPC64DescriptorSymbols (Object *linkedFile) |
| void | parseLineInformation () |
| void | parseTypes () |
| bool | setDefaultNamespacePrefix (std::string &str) |
| bool | addUserRegion (Region *newreg) |
| bool | addUserType (Type *newtypeg) |
| void | setTOCOffset (Offset offset) |
| bool | getExplicitSymtabRefs (std::set< Symtab * > &refs) |
Static Private Member Functions | |
| static boost::shared_ptr < typeCollection > | setupStdTypes () |
| static boost::shared_ptr < builtInTypeCollection > | setupBuiltinTypes () |
Private Attributes | |
| std::string | member_name_ |
| Offset | member_offset_ |
| Archive * | parentArchive_ |
| MappedFile * | mf |
| MappedFile * | mfForDebugInfo |
| Offset | imageOffset_ |
| unsigned | imageLen_ |
| Offset | dataOffset_ |
| unsigned | dataLen_ |
| bool | is_a_out |
| Offset | main_call_addr_ |
| bool | nativeCompiler |
| unsigned | address_width_ |
| char * | code_ptr_ |
| char * | data_ptr_ |
| std::string | interpreter_name_ |
| Offset | entry_address_ |
| Offset | base_address_ |
| Offset | load_address_ |
| ObjectType | object_type_ |
| bool | is_eel_ |
| std::vector< Segment > | segments_ |
| std::string | defaultNamespacePrefix |
| unsigned | no_of_sections |
| std::vector< Region * > | regions_ |
| std::vector< Region * > | codeRegions_ |
| std::vector< Region * > | dataRegions_ |
| dyn_hash_map< Offset, Region * > | regionsByEntryAddr |
| unsigned | newSectionInsertPoint |
| unsigned | no_of_symbols |
| std::vector< Symbol * > | everyDefinedSymbol |
| std::vector< Symbol * > | undefDynSyms |
| std::map< std::string, std::vector< Symbol * > > | undefDynSymsByMangledName |
| std::map< std::string, std::vector< Symbol * > > | undefDynSymsByPrettyName |
| std::map< std::string, std::vector< Symbol * > > | undefDynSymsByTypedName |
| dyn_hash_map< Offset, std::vector< Symbol * > > | symsByOffset |
| dyn_hash_map< std::string, std::vector< Symbol * > > | symsByMangledName |
| dyn_hash_map< std::string, std::vector< Symbol * > > | symsByPrettyName |
| dyn_hash_map< std::string, std::vector< Symbol * > > | symsByTypedName |
| bool | sorted_everyFunction |
| std::vector< Function * > | everyFunction |
| dyn_hash_map< Offset, Function * > | funcsByOffset |
| std::vector< Variable * > | everyVariable |
| dyn_hash_map< Offset, Variable * > | varsByOffset |
| dyn_hash_map< std::string, Module * > | modsByFileName |
| dyn_hash_map< std::string, Module * > | modsByFullName |
| std::vector< Module * > | _mods |
| std::vector< relocationEntry > | relocation_table_ |
| std::vector< ExceptionBlock * > | excpBlocks |
| std::vector< std::string > | deps_ |
| std::vector< Archive * > | linkingResources_ |
| std::set< Symtab * > | explicitSymtabRefs_ |
| bool | isLineInfoValid_ |
| bool | isTypeInfoValid_ |
| int | nlines_ |
| unsigned long | fdptr_ |
| char * | lines_ |
| char * | stabstr_ |
| int | nstabs_ |
| void * | stabs_ |
| char * | stringpool_ |
| bool | hasRel_ |
| bool | hasRela_ |
| bool | hasReldyn_ |
| bool | hasReladyn_ |
| bool | hasRelplt_ |
| bool | hasRelaplt_ |
| bool | isStaticBinary_ |
| bool | isDefensiveBinary_ |
| Object * | obj_private |
| std::map< std::string, std::string > | dynLibSubs |
| unsigned | _ref_cnt |
Static Private Attributes | |
| static std::vector< Symtab * > | allSymtabs |
Friends | |
| class | Archive |
| class | Symbol |
| class | Function |
| class | Variable |
| class | Module |
| class | Region |
| class | emitElf |
| class | emitElf64 |
| class | emitElfStatic |
| class | emitWin |
| class | Aggregate |
| class | relocationEntry |
Definition at line 70 of file Symtab.h.
typedef dyn_hash_map<void *, void *, void_ptr_hasher> Dyninst::AnnotatableSparse::annos_by_type_t [inherited] |
Definition at line 505 of file Annotatable.h.
typedef std::vector<annos_by_type_t *> Dyninst::AnnotatableSparse::annos_t [inherited] |
Definition at line 508 of file Annotatable.h.
| SYMTAB_EXPORT Symtab::Symtab | ( | MappedFile * | mf_ | ) |
Definition at line 357 of file Symtab.C.
References base_address_, code_ptr_, createDefaultModule(), data_ptr_, dataLen_, dataOffset_, entry_address_, hasRel_, hasRela_, hasReladyn_, hasRelaplt_, hasReldyn_, hasRelplt_, imageLen_, imageOffset_, init_debug_symtabAPI(), is_a_out, is_eel_, isStaticBinary_, load_address_, Dyninst::SymtabAPI::obj_RelocatableFile, and object_type_.
| SYMTAB_EXPORT Symtab::Symtab | ( | ) |
Definition at line 399 of file Symtab.C.
References create_printf(), createDefaultModule(), FILE__, and init_debug_symtabAPI().
Referenced by openFile().
| Symtab::Symtab | ( | const Symtab & | obj | ) |
Definition at line 1612 of file Symtab.C.
References _mods, create_printf(), dataLen_, dataOffset_, defaultNamespacePrefix, deps_, excpBlocks, FILE__, Dyninst::SymtabAPI::Module::fileName(), fprintf, Dyninst::SymtabAPI::Module::fullName(), imageLen_, imageOffset_, is_a_out, isDefensiveBinary_, isLineInfoValid_, isTypeInfoValid_, main_call_addr_, member_name_, member_offset_, modsByFileName, modsByFullName, Module, nativeCompiler, no_of_sections, Region, regions_, regionsByEntryAddr, relocation_table_, and relocationEntry.
| Symtab::Symtab | ( | unsigned char * | mem_image, | |
| size_t | image_size, | |||
| const std::string & | name, | |||
| bool | defensive_binary, | |||
| bool & | err | |||
| ) |
Definition at line 1255 of file Symtab.C.
References create_printf(), MappedFile::createMappedFile(), defaultNamespacePrefix, extractInfo(), FILE__, MappedFile::filename(), Dyninst::SymtabAPI::AObject::hasError(), member_name_, mf, obj_private, and symtab_log_perror().
| Symtab::~Symtab | ( | ) |
Definition at line 1802 of file Symtab.C.
References _mods, allSymtabs, MappedFile::closeMappedFile(), codeRegions_, create_printf(), dataRegions_, deps_, everyDefinedSymbol, everyFunction, everyVariable, excpBlocks, FILE__, funcsByOffset, Dyninst::AnnotatableSparse::getAnnotation(), mf, modsByFileName, modsByFullName, obj_private, regions_, regionsByEntryAddr, symsByMangledName, symsByOffset, symsByPrettyName, symsByTypedName, undefDynSyms, undefDynSymsByMangledName, undefDynSymsByPrettyName, undefDynSymsByTypedName, UserRegionsAnno, and varsByOffset.
| Symtab::Symtab | ( | std::string | filename, | |
| std::string | member_name, | |||
| Offset | offset, | |||
| bool & | err, | |||
| void * | base = NULL | |||
| ) | [protected] |
| Symtab::Symtab | ( | char * | img, | |
| size_t | size, | |||
| std::string | member_name, | |||
| Offset | offset, | |||
| bool & | err, | |||
| void * | base = NULL | |||
| ) | [protected] |
| Symtab::Symtab | ( | std::string | filename, | |
| bool | defensive_bin, | |||
| bool & | err | |||
| ) | [private] |
Definition at line 1204 of file Symtab.C.
References create_printf(), MappedFile::createMappedFile(), defaultNamespacePrefix, extractInfo(), FILE__, MappedFile::filename(), fixup_filename(), Dyninst::SymtabAPI::AObject::hasError(), init_debug_symtabAPI(), member_name_, mf, obj_private, and symtab_log_perror().
| SYMTAB_EXPORT bool Symtab::addAddressRange | ( | Offset | lowInclAddr, | |
| Offset | highExclAddr, | |||
| std::string | lineSource, | |||
| unsigned int | lineNo, | |||
| unsigned int | lineOffset = 0 | |||
| ) |
Definition at line 2416 of file Symtab.C.
References Dyninst::SymtabAPI::LineInformation::addAddressRange(), extract_pathname_tail(), findModuleByName(), and Dyninst::SymtabAPI::Module::getLineInformation().
| AN_INLINE bool Dyninst::AnnotatableSparse::addAnnotation | ( | const T * | a, | |
| AnnotationClass< T > & | a_id | |||
| ) | [inline, inherited] |
Definition at line 754 of file Annotatable.h.
References Dyninst::annotatable_printf(), FILE__, fprintf, Dyninst::getExistingOutputSB(), Dyninst::AnnotationClassBase::getID(), Dyninst::AnnotationClassBase::getName(), Dyninst::AnnotationClassBase::getSerializeFunc(), Dyninst::ser_operation(), Dyninst::serialize_post_annotation(), Dyninst::sp_add_anno, and Dyninst::sparse.
Referenced by Dyninst::SymtabAPI::parseStabString().
| SYMTAB_EXPORT void Symtab::addDynLibSubstitution | ( | std::string | oldName, | |
| std::string | newName | |||
| ) |
Definition at line 2676 of file Symtab.C.
References dynLibSubs.
| SYMTAB_EXPORT bool Symtab::addExternalSymbolReference | ( | Symbol * | externalSym, | |
| Region * | localRegion, | |||
| relocationEntry | localRel | |||
| ) |
Definition at line 3770 of file Symtab.C.
References Dyninst::SymtabAPI::Region::addRelocationEntry(), addSymbol(), explicitSymtabRefs_, getDefaultModule(), Dyninst::SymtabAPI::Symbol::getMangledName(), getObject(), Dyninst::SymtabAPI::Symbol::getSize(), Dyninst::SymtabAPI::Symbol::getSymtab(), Dyninst::SymtabAPI::Symbol::getType(), Dyninst::SymtabAPI::relocationEntry::setRegionType(), Dyninst::SymtabAPI::Symbol::SL_GLOBAL, Dyninst::SymtabAPI::Symbol::SV_DEFAULT, and Symbol.
| SYMTAB_EXPORT bool Symtab::addLibraryPrereq | ( | std::string | libname | ) |
Definition at line 3695 of file Symtab.C.
References Dyninst::SymtabAPI::Object::addReference(), FILE__, findOpenSymtab(), fprintf, getAllSymbolsByType(), getObject(), Dyninst::SymtabAPI::Object::insertPrereqLibrary(), openFile(), and Dyninst::SymtabAPI::Symbol::ST_FUNCTION.
| SYMTAB_EXPORT bool Symtab::addLine | ( | std::string | lineSource, | |
| unsigned int | lineNo, | |||
| unsigned int | lineOffset, | |||
| Offset | lowInclAddr, | |||
| Offset | highExclAddr | |||
| ) |
Definition at line 2390 of file Symtab.C.
References Dyninst::SymtabAPI::LineInformation::addLine(), extract_pathname_tail(), findModuleByName(), Dyninst::SymtabAPI::Module::getLineInformation(), and MappedFile::pathname().
| SYMTAB_EXPORT bool Symtab::addLinkingResource | ( | Archive * | library | ) |
Definition at line 3821 of file Symtab.C.
References linkingResources_.
| bool Symtab::addRegion | ( | Region * | newreg | ) |
Definition at line 2278 of file Symtab.C.
References addUserRegion(), regions_, Dyninst::SymtabAPI::Region::setSymtab(), and sort_reg_by_addr().
| bool Symtab::addRegion | ( | Offset | vaddr, | |
| void * | data, | |||
| unsigned int | dataSize, | |||
| std::string | name, | |||
| Region::RegionType | rType_, | |||
| bool | loadable = false, |
|||
| unsigned long | memAlign = sizeof(unsigned), |
|||
| bool | tls = false | |||
| ) |
Definition at line 2182 of file Symtab.C.
References addUserRegion(), codeRegions_, dataRegions_, Dyninst::SymtabAPI::Region::getRegionType(), newSectionInsertPoint, Region, regions_, Dyninst::SymtabAPI::Region::RP_R, Dyninst::SymtabAPI::Region::RT_DATA, Dyninst::SymtabAPI::Region::RT_TEXT, Dyninst::SymtabAPI::Region::RT_TEXTDATA, Dyninst::SymtabAPI::Region::setSymtab(), and sort_reg_by_addr().
Referenced by Dyninst::SymtabAPI::emitElfStatic::addNewRegions(), Dyninst::SymtabAPI::emitElf::createSymbolTables(), and Dyninst::SymtabAPI::emitElf64::createSymbolTables().
Definition at line 232 of file Symtab-edit.C.
References addSymbol(), Dyninst::SymtabAPI::Module::exec(), FILE__, fprintf, Dyninst::SymtabAPI::Symbol::getModule(), Dyninst::SymtabAPI::Symbol::getSymtab(), Dyninst::SymtabAPI::Symbol::getVersionFileName(), Dyninst::SymtabAPI::Symbol::getVersions(), Dyninst::SymtabAPI::Symbol::isInDynSymtab(), isStaticBinary(), name(), Dyninst::SymtabAPI::Symbol::setReferringSymbol(), Dyninst::SymtabAPI::Symbol::setVersionFileName(), and Dyninst::SymtabAPI::Symbol::setVersions().
| bool Symtab::addSymbol | ( | Symbol * | newsym | ) |
Definition at line 265 of file Symtab-edit.C.
References addSymbolToAggregates(), addSymbolToIndices(), demangleSymbol(), getDefaultModule(), Dyninst::SymtabAPI::Symbol::getModule(), Dyninst::SymtabAPI::Symbol::getPrettyName(), and Dyninst::SymtabAPI::Symbol::setModule().
Referenced by addExternalSymbolReference(), addSymbol(), createFunction(), and createVariable().
| bool Symtab::addSymbolToAggregates | ( | Symbol *& | sym | ) | [private] |
Definition at line 878 of file Symtab.C.
References Dyninst::SymtabAPI::Aggregate::addSymbol(), everyFunction, everyVariable, findFuncByEntryOffset(), findVariableByOffset(), funcsByOffset, Function, getObjectType(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getRegion(), Dyninst::SymtabAPI::Aggregate::getRegion(), Dyninst::SymtabAPI::Symbol::getType(), Dyninst::SymtabAPI::obj_RelocatableFile, Dyninst::SymtabAPI::Symbol::setFunction(), Dyninst::SymtabAPI::Symbol::setVariable(), sorted_everyFunction, Dyninst::SymtabAPI::Symbol::ST_FUNCTION, Dyninst::SymtabAPI::Symbol::ST_OBJECT, Dyninst::SymtabAPI::Symbol::ST_TLS, Variable, and varsByOffset.
Referenced by addSymbol(), Dyninst::SymtabAPI::Aggregate::changeSymbolOffset(), changeType(), createAggregates(), and fixup_SymbolAddr().
| bool Symtab::addSymbolToIndices | ( | Symbol *& | sym, | |
| bool | undefined | |||
| ) | [private] |
Definition at line 855 of file Symtab.C.
References everyDefinedSymbol, Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getPrettyName(), Dyninst::SymtabAPI::Symbol::getTypedName(), symsByMangledName, symsByOffset, symsByPrettyName, symsByTypedName, undefDynSymsByMangledName, undefDynSymsByPrettyName, and undefDynSymsByTypedName.
Referenced by addSymbol(), changeType(), and createIndices().
| bool Dyninst::SymtabAPI::Symtab::addSymtabVariables | ( | ) | [private] |
| SYMTAB_EXPORT bool Symtab::addSysVDynamic | ( | long | name, | |
| long | value | |||
| ) |
Definition at line 3754 of file Symtab.C.
References FILE__, fprintf, getObject(), and Dyninst::SymtabAPI::Object::insertDynamicEntry().
| SYMTAB_EXPORT bool Symtab::addTrapHeader_win | ( | Address | ptr | ) |
Definition at line 3804 of file Symtab.C.
References getObject(), and Dyninst::SymtabAPI::Object::setTrapHeader().
| bool Symtab::addType | ( | Type * | typ | ) |
Definition at line 2480 of file Symtab.C.
References addUserType().
Referenced by Dyninst::SymtabAPI::typeRef::create(), Dyninst::SymtabAPI::typeTypedef::create(), Dyninst::SymtabAPI::typeScalar::create(), Dyninst::SymtabAPI::typeUnion::create(), Dyninst::SymtabAPI::typeStruct::create(), Dyninst::SymtabAPI::typeArray::create(), Dyninst::SymtabAPI::typeSubrange::create(), Dyninst::SymtabAPI::typeFunction::create(), Dyninst::SymtabAPI::typePointer::create(), and Dyninst::SymtabAPI::typeEnum::create().
| bool Symtab::addUserRegion | ( | Region * | newreg | ) | [private] |
Definition at line 2227 of file Symtab.C.
References Dyninst::AnnotatableSparse::addAnnotation(), FILE__, fprintf, Dyninst::AnnotatableSparse::getAnnotation(), and UserRegionsAnno.
Referenced by addRegion().
| bool Symtab::addUserType | ( | Type * | newtypeg | ) | [private] |
Definition at line 2252 of file Symtab.C.
References Dyninst::AnnotatableSparse::addAnnotation(), FILE__, fprintf, Dyninst::AnnotatableSparse::getAnnotation(), and UserTypesAnno.
Referenced by addType().
| void Dyninst::AnnotatableSparse::annotationsReport | ( | ) | [inline, inherited] |
Definition at line 932 of file Annotatable.h.
References FILE__, Dyninst::AnnotationClassBase::findAnnotationClass(), fprintf, and getTypeName().
| bool Symtab::buildDemangledName | ( | const std::string & | mangled, | |
| std::string & | pretty, | |||
| std::string & | typed, | |||
| bool | nativeCompiler, | |||
| supportedLanguages | lang | |||
| ) | [private] |
Definition at line 518 of file Symtab.C.
References Dyninst::SymtabAPI::lang_CMFortran, Dyninst::SymtabAPI::lang_Fortran, Dyninst::SymtabAPI::lang_Fortran_with_pretty_debug, P_cplus_demangle(), and P_strdup().
Referenced by demangleSymbol().
| boost::shared_ptr< builtInTypeCollection > Symtab::builtInTypes | ( | ) | [static] |
Definition at line 156 of file Symtab.C.
References setupBuiltinTypes().
Referenced by Dyninst::SymtabAPI::typeCollection::doDeferredLookups(), Dyninst::SymtabAPI::typeCollection::findOrCreateType(), findType(), Dyninst::SymtabAPI::typeCollection::findType(), getAllbuiltInTypes(), and setupBuiltinTypes().
| SYMTAB_EXPORT bool Symtab::canBeShared | ( | ) |
Definition at line 3846 of file Symtab.C.
References MappedFile::canBeShared().
| bool Symtab::changeAggregateOffset | ( | Aggregate * | agg, | |
| Offset | oldOffset, | |||
| Offset | newOffset | |||
| ) | [private] |
Definition at line 209 of file Symtab-edit.C.
References funcsByOffset, and varsByOffset.
Referenced by Dyninst::SymtabAPI::Aggregate::changeSymbolOffset().
Definition at line 182 of file Symtab-edit.C.
References Dyninst::SymtabAPI::Symbol::aggregate_, Dyninst::SymtabAPI::Aggregate::changeSymbolOffset(), Dyninst::SymtabAPI::Symbol::offset_, and symsByOffset.
| bool Symtab::changeType | ( | Symbol * | sym, | |
| Symbol::SymbolType | oldType | |||
| ) | [private] |
Definition at line 65 of file Symtab-edit.C.
References addSymbolToAggregates(), addSymbolToIndices(), findFuncByEntryOffset(), findVariableByOffset(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Variable::removeSymbol(), Dyninst::SymtabAPI::Function::removeSymbol(), Dyninst::SymtabAPI::Symbol::ST_FUNCTION, Dyninst::SymtabAPI::Symbol::ST_MODULE, Dyninst::SymtabAPI::Symbol::ST_OBJECT, and Dyninst::SymtabAPI::Symbol::ST_TLS.
Referenced by Dyninst::SymtabAPI::Symbol::setSymbolType().
| void Dyninst::SymtabAPI::Symtab::checkPPC64DescriptorSymbols | ( | Object * | linkedFile | ) | [private] |
| bool Symtab::closeSymtab | ( | Symtab * | st | ) | [static] |
Definition at line 2049 of file Symtab.C.
References _ref_cnt, and allSymtabs.
Referenced by Dyninst::SymtabAPI::SymtabReader::~SymtabReader().
| bool Symtab::createAggregates | ( | ) | [private] |
Definition at line 741 of file Symtab.C.
References addSymbolToAggregates(), doNotAggregate(), and everyDefinedSymbol.
Referenced by extractInfo().
| void Symtab::createDefaultModule | ( | ) | [private] |
Definition at line 1101 of file Symtab.C.
References _mods, Dyninst::SymtabAPI::Module::fileName(), Dyninst::SymtabAPI::Module::fullName(), getObjectType(), imageOffset_, Dyninst::SymtabAPI::lang_Unknown, modsByFileName, modsByFullName, Module, name(), and Dyninst::SymtabAPI::obj_SharedLib.
Referenced by extractInfo(), and Symtab().
| Function * Symtab::createFunction | ( | std::string | name, | |
| Offset | offset, | |||
| size_t | size, | |||
| Module * | mod = NULL | |||
| ) |
Definition at line 292 of file Symtab-edit.C.
References _mods, addSymbol(), Dyninst::SymtabAPI::Module::exec(), FILE__, Dyninst::SymtabAPI::Module::fileName(), findEnclosingRegion(), findRegion(), fprintf, getDefaultModule(), Dyninst::SymtabAPI::Symbol::getFunction(), isDefensiveBinary(), Dyninst::SymtabAPI::Symbol::SL_GLOBAL, Dyninst::SymtabAPI::Symbol::ST_FUNCTION, Dyninst::SymtabAPI::Symbol::SV_DEFAULT, and Symbol.
| bool Symtab::createIndices | ( | std::vector< Symbol * > & | raw_syms, | |
| bool | undefined | |||
| ) | [private] |
Definition at line 726 of file Symtab.C.
References addSymbolToIndices().
Referenced by extractInfo().
| Variable * Symtab::createVariable | ( | std::string | name, | |
| Offset | offset, | |||
| size_t | size, | |||
| Module * | mod = NULL | |||
| ) |
Definition at line 381 of file Symtab-edit.C.
References _mods, addSymbol(), FILE__, findRegion(), fprintf, getDefaultModule(), Dyninst::SymtabAPI::Symbol::getVariable(), Dyninst::SymtabAPI::Symbol::setModule(), Dyninst::SymtabAPI::Symbol::SL_GLOBAL, Dyninst::SymtabAPI::Symbol::ST_OBJECT, Dyninst::SymtabAPI::Symbol::SV_DEFAULT, and Symbol.
| SYMTAB_EXPORT Offset Symtab::dataLength | ( | ) | const |
| SYMTAB_EXPORT Offset Symtab::dataOffset | ( | ) | const |
Definition at line 435 of file Symtab.C.
References dataOffset_.
Referenced by Dyninst::SymtabAPI::SymtabReader::dataOffset().
| bool Symtab::deleteAggregate | ( | Aggregate * | agg | ) | [private] |
Definition at line 125 of file Symtab-edit.C.
References deleteSymbolFromIndices(), and Dyninst::SymtabAPI::Aggregate::getSymbols().
Referenced by deleteFunction(), and deleteVariable().
| bool Symtab::deleteFunction | ( | Function * | func | ) |
Definition at line 101 of file Symtab-edit.C.
References deleteAggregate(), everyFunction, funcsByOffset, and Dyninst::SymtabAPI::Aggregate::getOffset().
Referenced by Dyninst::SymtabAPI::Function::removeSymbol().
| bool Symtab::deleteSymbol | ( | Symbol * | sym | ) |
Definition at line 173 of file Symtab-edit.C.
References Dyninst::SymtabAPI::Symbol::aggregate_, deleteSymbolFromIndices(), and Dyninst::SymtabAPI::Aggregate::removeSymbol().
Referenced by delSymbol().
| bool Symtab::deleteSymbolFromIndices | ( | Symbol * | sym | ) | [private] |
Definition at line 137 of file Symtab-edit.C.
References deletedSymbol(), everyDefinedSymbol, Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getPrettyName(), Dyninst::SymtabAPI::Symbol::getTypedName(), symsByMangledName, symsByOffset, symsByPrettyName, symsByTypedName, undefDynSyms, undefDynSymsByMangledName, undefDynSymsByPrettyName, and undefDynSymsByTypedName.
Referenced by deleteAggregate(), and deleteSymbol().
| bool Symtab::deleteVariable | ( | Variable * | var | ) |
Definition at line 117 of file Symtab-edit.C.
References deleteAggregate(), everyVariable, Dyninst::SymtabAPI::Aggregate::getOffset(), and varsByOffset.
Referenced by Dyninst::SymtabAPI::Variable::removeSymbol().
| bool Dyninst::SymtabAPI::Symtab::delSymbol | ( | Symbol * | sym | ) | [inline] |
Definition at line 354 of file Symtab.h.
References deleteSymbol().
| bool Symtab::demangleSymbol | ( | Symbol *& | sym | ) | [private] |
Definition at line 798 of file Symtab.C.
References buildDemangledName(), Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getModule(), Dyninst::SymtabAPI::Symbol::getRegion(), Dyninst::SymtabAPI::Symbol::getType(), Dyninst::SymtabAPI::Symbol::isAbsolute(), Dyninst::SymtabAPI::Symbol::isCommonStorage(), Dyninst::SymtabAPI::lang_Unknown, Dyninst::SymtabAPI::Module::language(), nativeCompiler, P_cplus_demangle(), Dyninst::SymtabAPI::prettyName, Dyninst::SymtabAPI::Symbol::prettyName_, Dyninst::SymtabAPI::Symbol::ST_FUNCTION, and Dyninst::SymtabAPI::Symbol::typedName_.
Referenced by addSymbol(), and demangleSymbols().
| bool Symtab::demangleSymbols | ( | std::vector< Symbol * > & | rawsyms | ) | [private] |
| bool Symtab::doNotAggregate | ( | Symbol *& | sym | ) | [private] |
Definition at line 972 of file Symtab.C.
References Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getRegion(), and Dyninst::SymtabAPI::Region::getRegionName().
Referenced by createAggregates(), findFunctionsByName(), findVariablesByName(), and fixup_SymbolAddr().
| SYMTAB_EXPORT bool Symtab::emit | ( | std::string | filename, | |
| unsigned | flag = 0 | |||
| ) |
Definition at line 2662 of file Symtab.C.
References emitSymbols(), FILE__, fprintf, getObject(), Dyninst::SymtabAPI::AObject::mf, and MappedFile::setSharing().
| SYMTAB_EXPORT bool Symtab::emitSymbols | ( | Object * | linkedFile, | |
| std::string | filename, | |||
| unsigned | flag = 0 | |||
| ) |
Definition at line 2646 of file Symtab.C.
References Dyninst::SymtabAPI::Object::emitDriver(), everyDefinedSymbol, and undefDynSyms.
Referenced by emit().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Symtab::exportBin | ( | std::string | filename | ) |
Referenced by openFile().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Symtab::exportXML | ( | std::string | filename | ) |
| bool Symtab::extractInfo | ( | Object * | linkedFile | ) | [private] |
Definition at line 1375 of file Symtab.C.
References address_width_, base_address_, Dyninst::SymtabAPI::AObject::clearSymsToMods(), Dyninst::SymtabAPI::AObject::code_len(), Dyninst::SymtabAPI::AObject::code_off(), Dyninst::SymtabAPI::AObject::code_ptr(), code_ptr_, Dyninst::SymtabAPI::AObject::code_ptr_, codeRegions_, createAggregates(), createDefaultModule(), createIndices(), Dyninst::SymtabAPI::AObject::data_len(), Dyninst::SymtabAPI::AObject::data_off(), Dyninst::SymtabAPI::AObject::data_ptr(), data_ptr_, dataLen_, dataOffset_, dataRegions_, demangleSymbols(), deps_, entry_address_, excpBlocks, extractSymbolsFromFile(), fdptr_, FILE__, fixSymModules(), fprintf, Dyninst::SymtabAPI::Object::get_func_binding_table(), Dyninst::SymtabAPI::Object::get_line_info(), Dyninst::SymtabAPI::Object::get_stab_info(), Dyninst::SymtabAPI::AObject::getAddressWidth(), Dyninst::SymtabAPI::AObject::getAllExceptions(), Dyninst::SymtabAPI::AObject::getAllRegions(), Dyninst::SymtabAPI::AObject::getAllSymbols(), Dyninst::SymtabAPI::Object::getBaseAddress(), Dyninst::SymtabAPI::Object::getDependencies(), Dyninst::SymtabAPI::Object::getEntryAddress(), Dyninst::SymtabAPI::Object::getLoadAddress(), Dyninst::SymtabAPI::Object::getModuleLanguageInfo(), getObject(), getRegionType(), Dyninst::SymtabAPI::AObject::getSegments(), gettimeofday(), hasRel_, hasRela_, Dyninst::SymtabAPI::Object::hasReladyn(), hasReladyn_, Dyninst::SymtabAPI::Object::hasRelaplt(), hasRelaplt_, Dyninst::SymtabAPI::Object::hasReldyn(), hasReldyn_, Dyninst::SymtabAPI::Object::hasRelplt(), hasRelplt_, imageLen_, imageOffset_, Dyninst::SymtabAPI::Object::interpreter_name(), interpreter_name_, is_a_out, Dyninst::SymtabAPI::AObject::is_aout(), is_eel_, isDefensiveBinary_, Dyninst::SymtabAPI::Object::isEEL(), Dyninst::SymtabAPI::AObject::isStaticBinary(), isStaticBinary_, lines_, load_address_, nativeCompiler, newSectionInsertPoint, nlines_, Dyninst::SymtabAPI::AObject::no_of_sections(), no_of_sections, Dyninst::SymtabAPI::AObject::no_of_symbols(), no_of_symbols, nstabs_, Dyninst::SymtabAPI::Obj_Parsing, Dyninst::SymtabAPI::obj_RelocatableFile, object_type_, Dyninst::SymtabAPI::Object::objType(), parseCompilerType(), print_symbol_map(), regions_, regionsByEntryAddr, relocation_table_, Dyninst::SymtabAPI::Region::RP_RW, Dyninst::SymtabAPI::Region::RP_RWX, Dyninst::SymtabAPI::Region::RP_RX, Dyninst::SymtabAPI::Region::RT_REL, Dyninst::SymtabAPI::Region::RT_RELA, segments_, serr, setModuleLanguages(), sort_reg_by_addr(), stabs_, stabstr_, stringpool_, Dyninst::SymtabAPI::Syms_To_Functions, and undefDynSyms.
Referenced by Symtab().
| bool Symtab::extractSymbolsFromFile | ( | Object * | linkedFile, | |
| std::vector< Symbol * > & | raw_syms | |||
| ) | [private] |
Definition at line 625 of file Symtab.C.
References FILE__, fixSymRegion(), fprintf, Dyninst::SymtabAPI::Symbol::getRegion(), Dyninst::SymtabAPI::Symbol::isAbsolute(), Dyninst::SymtabAPI::Symbol::isCommonStorage(), and undefDynSyms.
Referenced by extractInfo().
| SYMTAB_EXPORT std::string Symtab::file | ( | ) | const |
Definition at line 2985 of file Symtab.C.
References MappedFile::pathname().
Referenced by findOpenSymtab(), Dyninst::SymtabAPI::AddressLookup::getLoadedLib(), Dyninst::SymtabAPI::Module::operator==(), Dyninst::SymtabAPI::DwarfWalker::parse(), Dyninst::SymtabAPI::DwarfWalker::parseModule(), and Dyninst::SymtabAPI::Object::parseTypeInfo().
| Dyninst::Offset Symtab::fileToDiskOffset | ( | Dyninst::Offset | fileOffset | ) | const |
Definition at line 769 of file Symtab-lookup.C.
References regions_.
| Dyninst::Offset Symtab::fileToMemOffset | ( | Dyninst::Offset | fileOffset | ) | const |
Definition at line 779 of file Symtab-lookup.C.
References regions_.
| bool Symtab::findCatchBlock | ( | ExceptionBlock & | excp, | |
| Offset | addr, | |||
| unsigned | size = 0 | |||
| ) |
Returns true if the Address range addr -> addr+size contains a catch block, with excp pointing to the appropriate block
Definition at line 455 of file Symtab-lookup.C.
References excpBlocks.
Definition at line 507 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getMemSize(), and regions_.
Referenced by createFunction(), fixSymRegion(), Dyninst::SymtabAPI::SymtabReader::getSectionByAddress(), and Dyninst::SymtabAPI::emitElfUtils::updateRelocation().
| bool Symtab::findException | ( | ExceptionBlock & | excp, | |
| Offset | addr | |||
| ) |
Definition at line 437 of file Symtab-lookup.C.
References excpBlocks.
Definition at line 214 of file Symtab-lookup.C.
References funcsByOffset, Dyninst::SymtabAPI::No_Such_Function, and serr.
Referenced by add_type_info(), addSymbolToAggregates(), and changeType().
| bool Symtab::findFunctionsByName | ( | std::vector< Function * > & | ret, | |
| const std::string | name, | |||
| NameType | nameType = anyName, |
|||
| bool | isRegex = false, |
|||
| bool | checkCase = true | |||
| ) |
Definition at line 234 of file Symtab-lookup.C.
References doNotAggregate(), FILE__, findSymbol(), fprintf, sort_by_func_ptr(), and Dyninst::SymtabAPI::Symbol::ST_FUNCTION.
Referenced by mangledNameMatchKLUDGE(), Dyninst::SymtabAPI::Object::parseStabFileLineInfo(), and Dyninst::SymtabAPI::parseStabString().
| SYMTAB_EXPORT bool Symtab::findLocalVariable | ( | std::vector< localVar * > & | vars, | |
| std::string | name | |||
| ) |
Definition at line 2589 of file Symtab.C.
References everyFunction, and parseTypesNow().
| bool Symtab::findModuleByName | ( | Module *& | ret, | |
| const std::string | name | |||
| ) |
Definition at line 347 of file Symtab-lookup.C.
References extract_pathname_tail(), modsByFileName, modsByFullName, Dyninst::SymtabAPI::No_Such_Module, and serr.
Referenced by addAddressRange(), addLine(), getDefaultModule(), getOrCreateModule(), newModule(), parseLineInformation(), and Dyninst::SymtabAPI::Object::parseStabTypes().
Definition at line 331 of file Symtab-lookup.C.
References _mods, and Dyninst::SymtabAPI::Module::addr().
| Symtab * Symtab::findOpenSymtab | ( | std::string | filename | ) | [static] |
Definition at line 2073 of file Symtab.C.
References allSymtabs, MappedFile::canBeShared(), and file().
Referenced by addLibraryPrereq(), and openFile().
Definition at line 544 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getMemSize(), Dyninst::SymtabAPI::Region::getRegionName(), getRegionType(), Dyninst::SymtabAPI::Region::getRegionType(), Dyninst::SymtabAPI::Multiple_Region_Matches, Dyninst::SymtabAPI::No_Such_Region, regions_, Dyninst::SymtabAPI::Region::regionType2Str(), Dyninst::SymtabAPI::Region::RT_BSS, and serr.
| bool Symtab::findRegion | ( | Region *& | ret, | |
| std::string | regname | |||
| ) |
Definition at line 529 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::No_Such_Region, regions_, and serr.
Referenced by Dyninst::SymtabAPI::emitElfStatic::allocateRelocationSection(), Dyninst::SymtabAPI::emitElfStatic::buildRela(), createFunction(), Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), createVariable(), fixup_RegionAddr(), Dyninst::SymtabAPI::SymtabReader::getSectionByName(), isStripped(), and updateRegion().
Definition at line 488 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::No_Such_Region, regionsByEntryAddr, and serr.
| bool Symtab::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 75 of file Symtab-lookup.C.
References everyDefinedSymbol, Dyninst::SymtabAPI::mangledName, Dyninst::SymtabAPI::No_Such_Symbol, Dyninst::SymtabAPI::prettyName, regexEquiv(), serr, Dyninst::SymtabAPI::Symbol::ST_NOTYPE, Dyninst::SymtabAPI::Symbol::ST_UNKNOWN, symsByMangledName, symsByPrettyName, symsByTypedName, Dyninst::SymtabAPI::typedName, undefDynSymsByMangledName, undefDynSymsByPrettyName, and undefDynSymsByTypedName.
Referenced by findFunctionsByName(), findVariablesByName(), Dyninst::SymtabAPI::SymtabReader::getSymbolByName(), Dyninst::SymtabAPI::DwarfWalker::parseCommonBlock(), Dyninst::SymtabAPI::parseStabString(), Dyninst::SymtabAPI::Object::parseStabTypes(), Dyninst::SymtabAPI::emitElfStatic::resolveSymbols(), and Dyninst::SymtabAPI::emitElfUtils::updateHeapVariables().
Definition at line 66 of file Symtab-lookup.C.
References symsByOffset.
Referenced by fixup_SymbolAddr().
| SYMTAB_EXPORT Type * Symtab::findType | ( | unsigned | type_id | ) | [virtual] |
Definition at line 2520 of file Symtab.C.
References _mods, builtInTypes(), Dyninst::SymtabAPI::typeCollection::findType(), parseTypesNow(), and stdTypes().
| SYMTAB_EXPORT bool Symtab::findType | ( | Type *& | type, | |
| std::string | name | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 2499 of file Symtab.C.
References _mods, Dyninst::SymtabAPI::typeCollection::findType(), and parseTypesNow().
Definition at line 271 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::No_Such_Variable, serr, and varsByOffset.
Referenced by add_type_info(), addSymbolToAggregates(), changeType(), and Dyninst::SymtabAPI::DwarfWalker::parseVariable().
| bool Symtab::findVariablesByName | ( | std::vector< Variable * > & | ret, | |
| const std::string | name, | |||
| NameType | nameType = anyName, |
|||
| bool | isRegex = false, |
|||
| bool | checkCase = true | |||
| ) |
Definition at line 290 of file Symtab-lookup.C.
References doNotAggregate(), findSymbol(), sort_by_var_ptr(), and Dyninst::SymtabAPI::Symbol::ST_OBJECT.
| SYMTAB_EXPORT bool Symtab::findVariableType | ( | Type *& | type, | |
| std::string | name | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 2567 of file Symtab.C.
References _mods, Dyninst::SymtabAPI::typeCollection::findVariableType(), and parseTypesNow().
| bool Symtab::fixSymModule | ( | Symbol *& | sym | ) | [private] |
Definition at line 757 of file Symtab.C.
References FILE__, Dyninst::SymtabAPI::AObject::findModuleForSym(), fprintf, getDefaultModule(), getObject(), getObjectType(), Dyninst::SymtabAPI::Symbol::getOffset(), getOrCreateModule(), Dyninst::SymtabAPI::obj_SharedLib, and Dyninst::SymtabAPI::Symbol::setModule().
Referenced by fixSymModules().
| bool Symtab::fixSymModules | ( | std::vector< Symbol * > & | raw_syms | ) | [private] |
Definition at line 685 of file Symtab.C.
References FILE__, fixSymModule(), fprintf, getObject(), getOrCreateModule(), and Dyninst::SymtabAPI::AObject::modules_.
Referenced by extractInfo().
| bool Symtab::fixSymRegion | ( | Symbol * | sym | ) | [private] |
Definition at line 664 of file Symtab.C.
References findEnclosingRegion(), Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getMemSize(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getRegion(), Dyninst::SymtabAPI::Symbol::getType(), Dyninst::SymtabAPI::Symbol::setRegion(), Dyninst::SymtabAPI::Symbol::ST_FUNCTION, and Dyninst::SymtabAPI::Symbol::ST_OBJECT.
Referenced by extractSymbolsFromFile().
| SYMTAB_EXPORT void Symtab::fixup_code_and_data | ( | Offset | newImageOffset, | |
| Offset | newImageLength, | |||
| Offset | newDataOffset, | |||
| Offset | newDataLength | |||
| ) |
Definition at line 450 of file Symtab.C.
References dataLen_, dataOffset_, imageLen_, and imageOffset_.
| SYMTAB_EXPORT bool Symtab::fixup_RegionAddr | ( | const char * | name, | |
| Offset | memOffset, | |||
| long | memSize | |||
| ) |
Definition at line 2729 of file Symtab.C.
References codeRegions_, dataRegions_, findRegion(), Dyninst::SymtabAPI::Object::get_func_binding_table(), Dyninst::SymtabAPI::Region::getMemOffset(), getObject(), Dyninst::SymtabAPI::Region::getRelocations(), regions_, regionsByEntryAddr, relocation_table_, Dyninst::SymtabAPI::Region::setMemOffset(), Dyninst::SymtabAPI::Region::setMemSize(), and sort_reg_by_addr().
| bool Symtab::fixup_relocation_symbols | ( | SerializerBase * | , | |
| Symtab * | st | |||
| ) | [static] |
Definition at line 3024 of file Symtab.C.
References _mods, and Dyninst::SymtabAPI::Module::exec_.
| SYMTAB_EXPORT bool Symtab::fixup_SymbolAddr | ( | const char * | name, | |
| Offset | newOffset | |||
| ) |
Definition at line 2787 of file Symtab.C.
References addSymbolToAggregates(), doNotAggregate(), findSymbolByOffset(), fprintf, Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::setOffset(), symsByMangledName, and symsByOffset.
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Symtab::getAddressRanges | ( | std::vector< std::pair< Offset, Offset > > & | ranges, | |
| std::string | lineSource, | |||
| unsigned int | LineNo | |||
| ) |
| SYMTAB_EXPORT unsigned Symtab::getAddressWidth | ( | ) | const |
Definition at line 347 of file Symtab.C.
References address_width_.
Referenced by Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), Dyninst::SymtabAPI::emitWin::driver(), Dyninst::SymtabAPI::SymtabReader::getAddressWidth(), Dyninst::SymtabAPI::emitElfStatic::resolveSymbols(), Dyninst::SymtabAPI::emitElfUtils::updateRelocation(), and Dyninst::SymtabAPI::emitWin::writeImpTable().
| SYMTAB_EXPORT vector< Type * > * Symtab::getAllbuiltInTypes | ( | ) | [static] |
Definition at line 2494 of file Symtab.C.
References builtInTypes().
| bool Symtab::getAllDefinedSymbols | ( | std::vector< Symbol * > & | ret | ) |
Definition at line 195 of file Symtab-lookup.C.
References everyDefinedSymbol, Dyninst::SymtabAPI::No_Such_Symbol, and serr.
Referenced by Dyninst::SymtabAPI::emitElfStatic::createLinkMap().
| bool Symtab::getAllExceptions | ( | std::vector< ExceptionBlock * > & | exceptions | ) |
Definition at line 425 of file Symtab-lookup.C.
References excpBlocks.
| bool Symtab::getAllFunctions | ( | std::vector< Function * > & | ret | ) |
Definition at line 266 of file Symtab-lookup.C.
References everyFunction.
Referenced by Dyninst::SymtabAPI::Module::findLocalVariable(), and Dyninst::SymtabAPI::Module::getAllFunctions().
| bool Symtab::getAllModules | ( | std::vector< Module * > & | ret | ) |
Definition at line 319 of file Symtab-lookup.C.
References _mods, Dyninst::SymtabAPI::No_Such_Module, and serr.
Referenced by add_type_info().
| bool Symtab::getAllNewRegions | ( | std::vector< Region * > & | ret | ) |
Definition at line 406 of file Symtab-lookup.C.
References Dyninst::AnnotatableSparse::getAnnotation(), and UserRegionsAnno.
Referenced by Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), and Dyninst::SymtabAPI::emitElfStatic::linkStatic().
| bool Symtab::getAllRegions | ( | std::vector< Region * > & | ret | ) |
Definition at line 373 of file Symtab-lookup.C.
References regions_.
Referenced by Dyninst::SymtabAPI::emitElfStatic::applyRelocations(), Dyninst::SymtabAPI::emitElfStatic::createLinkMap(), getDyninstSection(), and Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| SYMTAB_EXPORT vector< Type * > * Symtab::getAllstdTypes | ( | ) | [static] |
Definition at line 2489 of file Symtab.C.
References stdTypes().
| bool Symtab::getAllSymbols | ( | std::vector< Symbol * > & | ret | ) | [virtual] |
Definition at line 150 of file Symtab-lookup.C.
References everyDefinedSymbol, getAllUndefinedSymbols(), Dyninst::SymtabAPI::No_Such_Symbol, and serr.
Referenced by getAllSymbolsByType().
| bool Symtab::getAllSymbolsByType | ( | std::vector< Symbol * > & | ret, | |
| Symbol::SymbolType | sType | |||
| ) | [virtual] |
Implements Dyninst::SymtabAPI::LookupInterface.
Definition at line 167 of file Symtab-lookup.C.
References everyDefinedSymbol, getAllSymbols(), getAllUndefinedSymbols(), getType(), Dyninst::SymtabAPI::No_Such_Symbol, serr, and Dyninst::SymtabAPI::Symbol::ST_UNKNOWN.
Referenced by addLibraryPrereq(), and Dyninst::SymtabAPI::AddressLookup::getSymsVector().
| bool Symtab::getAllUndefinedSymbols | ( | std::vector< Symbol * > & | ret | ) |
Definition at line 205 of file Symtab-lookup.C.
References Dyninst::SymtabAPI::No_Such_Symbol, serr, and undefDynSyms.
Referenced by findDotOs(), getAllSymbols(), getAllSymbolsByType(), and Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| bool Symtab::getAllVariables | ( | std::vector< Variable * > & | ret | ) |
Definition at line 313 of file Symtab-lookup.C.
References everyVariable.
| AN_INLINE bool Dyninst::AnnotatableSparse::getAnnotation | ( | T *& | a, | |
| AnnotationClass< T > & | a_id | |||
| ) | const [inline, inherited] |
Definition at line 818 of file Annotatable.h.
Referenced by Dyninst::SymtabAPI::Function::addLocalVar(), Dyninst::SymtabAPI::Function::addParam(), addUserRegion(), addUserType(), Dyninst::SymtabAPI::Function::findLocalVariable(), getAllNewRegions(), Dyninst::SymtabAPI::Function::getLocalVariables(), Dyninst::SymtabAPI::Function::getParams(), Dyninst::SymtabAPI::Symbol::getVersionFileName(), Dyninst::SymtabAPI::Symbol::getVersions(), Dyninst::SymtabAPI::parseStabString(), Dyninst::SymtabAPI::Function::setupParams(), Dyninst::SymtabAPI::Symbol::setVersionFileName(), Dyninst::SymtabAPI::Symbol::setVersions(), Dyninst::SymtabAPI::Function::~Function(), Dyninst::SymtabAPI::Symbol::~Symbol(), and ~Symtab().
| SYMTAB_EXPORT Dyninst::Architecture Symtab::getArchitecture | ( | ) |
Definition at line 2975 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getArch(), and getObject().
| SYMTAB_EXPORT Offset Symtab::getBaseOffset | ( | ) | const |
Definition at line 486 of file Symtab.C.
References base_address_.
| bool Symtab::getCodeRegions | ( | std::vector< Region * > & | ret | ) |
Definition at line 384 of file Symtab-lookup.C.
References codeRegions_.
Definition at line 660 of file Symtab-lookup.C.
References everyFunction, isCode(), and sorted_everyFunction.
Referenced by Dyninst::SymtabAPI::SymtabReader::getContainingSymbol().
| bool Symtab::getDataRegions | ( | std::vector< Region * > & | ret | ) |
Definition at line 395 of file Symtab-lookup.C.
References dataRegions_.
| Module * Symtab::getDefaultModule | ( | ) |
Definition at line 708 of file Symtab-lookup.C.
References _mods, and findModuleByName().
Referenced by addExternalSymbolReference(), addSymbol(), createFunction(), createVariable(), fixSymModule(), parseLineInformation(), Dyninst::SymtabAPI::DwarfWalker::parseModule(), Dyninst::SymtabAPI::parseStabString(), and Dyninst::SymtabAPI::Object::parseStabTypes().
| SYMTAB_EXPORT string Symtab::getDefaultNamespacePrefix | ( | ) | const |
Definition at line 511 of file Symtab.C.
References defaultNamespacePrefix.
| SYMTAB_EXPORT std::vector< std::string > & Symtab::getDependencies | ( | ) |
| SYMTAB_EXPORT std::string Symtab::getDynLibSubstitution | ( | std::string | name | ) |
Definition at line 2681 of file Symtab.C.
References dynLibSubs, and MappedFile::filename().
| SYMTAB_EXPORT Offset Symtab::getElfDynamicOffset | ( | ) |
Definition at line 3666 of file Symtab.C.
References FILE__, fprintf, Dyninst::SymtabAPI::Object::getDynamicAddr(), and getObject().
| SYMTAB_EXPORT Offset Symtab::getEntryOffset | ( | ) | const |
Definition at line 481 of file Symtab.C.
References entry_address_.
| bool Symtab::getExplicitSymtabRefs | ( | std::set< Symtab * > & | refs | ) | [private] |
Definition at line 3816 of file Symtab.C.
References explicitSymtabRefs_.
Referenced by Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| SYMTAB_EXPORT Offset Symtab::getFiniOffset | ( | ) |
Definition at line 3861 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getFiniAddr(), and getObject().
| SYMTAB_EXPORT Offset Symtab::getFreeOffset | ( | unsigned | size | ) |
Definition at line 2849 of file Symtab.C.
References FILE__, fprintf, getObject(), Dyninst::SymtabAPI::Object::getSecAlign(), Dyninst::SymtabAPI::Object::hasNoteSection(), Dyninst::SymtabAPI::Object::isBlueGeneP(), Dyninst::SymtabAPI::Object::isBlueGeneQ(), isBlueGeneQ, Dyninst::SymtabAPI::AObject::isStaticBinary(), isStaticBinary(), Dyninst::SymtabAPI::Object::mem_image(), newSectionInsertPoint, P_getpagesize(), and regions_.
Referenced by Dyninst::SymtabAPI::emitElfUtils::orderLoadableSections().
| SYMTAB_EXPORT bool Symtab::getFuncBindingTable | ( | std::vector< relocationEntry > & | fbt | ) | const |
Definition at line 1768 of file Symtab.C.
References relocation_table_.
| SYMTAB_EXPORT Offset Symtab::getInitOffset | ( | ) |
Definition at line 3851 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getInitAddr(), and getObject().
| SYMTAB_EXPORT const char * Symtab::getInterpreterName | ( | ) | const |
Definition at line 474 of file Symtab.C.
References interpreter_name_.
Referenced by Dyninst::SymtabAPI::SymtabReader::getInterpreterName().
| SymtabError Symtab::getLastSymtabError | ( | ) | [static] |
| SYMTAB_EXPORT bool Symtab::getLinkingResources | ( | std::vector< Archive * > & | libs | ) |
Definition at line 3827 of file Symtab.C.
References linkingResources_.
Referenced by Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| SYMTAB_EXPORT Address Symtab::getLoadAddress | ( | ) |
Definition at line 3832 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getLoadAddress(), and getObject().
| SYMTAB_EXPORT Offset Symtab::getLoadOffset | ( | ) | const |
Definition at line 491 of file Symtab.C.
References load_address_.
| SYMTAB_EXPORT bool Symtab::getMappedRegions | ( | std::vector< Region * > & | mappedRegs | ) | const |
| SYMTAB_EXPORT unsigned Symtab::getNumberofRegions | ( | ) | const |
Definition at line 3001 of file Symtab.C.
References no_of_sections.
| SYMTAB_EXPORT unsigned Symtab::getNumberofSymbols | ( | ) | const |
Definition at line 3006 of file Symtab.C.
References no_of_symbols.
| Object * Symtab::getObject | ( | ) |
Definition at line 3590 of file Symtab.C.
References FILE__, fprintf, and obj_private.
Referenced by addExternalSymbolReference(), addLibraryPrereq(), addSysVDynamic(), addTrapHeader_win(), Dyninst::SymtabAPI::emitElfStatic::allocateRelocationSection(), Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), Dyninst::SymtabAPI::emitWin::driver(), emit(), Dyninst::SymtabAPI::Function::expandLocation(), extractInfo(), fixSymModule(), fixSymModules(), fixup_RegionAddr(), getArchitecture(), getElfDynamicOffset(), Dyninst::SymtabAPI::SymtabReader::getElfHandle(), getFiniOffset(), getFreeOffset(), getInitOffset(), getLoadAddress(), getRegValueAtFrame(), getTruncateLinePaths(), hasStackwalkDebugInfo(), Dyninst::SymtabAPI::DwarfWalker::obj(), parseLineInformation(), parseTypes(), removeLibraryDependency(), and setTruncateLinePaths().
| SYMTAB_EXPORT ObjectType Symtab::getObjectType | ( | ) | const |
Definition at line 2970 of file Symtab.C.
References object_type_.
Referenced by addSymbolToAggregates(), createDefaultModule(), fixSymModule(), and Dyninst::SymtabAPI::Module::isShared().
Definition at line 1128 of file Symtab.C.
References findModuleByName(), Dyninst::SymtabAPI::lang_Unknown, and newModule().
Referenced by fixSymModule(), and fixSymModules().
| SYMTAB_EXPORT Archive * Symtab::getParentArchive | ( | ) | const |
Definition at line 1798 of file Symtab.C.
References parentArchive_.
Referenced by Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| bool Symtab::getRegValueAtFrame | ( | Address | pc, | |
| Dyninst::MachRegister | reg, | |||
| Dyninst::MachRegisterVal & | reg_result, | |||
| MemRegReader * | reader | |||
| ) |
Definition at line 3576 of file Symtab.C.
References FILE__, fprintf, getObject(), and Dyninst::SymtabAPI::Object::getRegValueAtFrame().
| SYMTAB_EXPORT bool Dyninst::SymtabAPI::Symtab::getSegments | ( | std::vector< Segment > & | segs | ) | const |
| void Symtab::getSegmentsSymReader | ( | std::vector< SymSegment > & | segs | ) |
Definition at line 3871 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getSegmentsSymReader(), and obj_private.
Referenced by Dyninst::SymtabAPI::SymtabReader::buildSegments().
| SYMTAB_EXPORT bool Symtab::getSourceLines | ( | std::vector< LineNoTuple > & | lines, | |
| Offset | addressInRange | |||
| ) |
Definition at line 2370 of file Symtab.C.
References _mods, and Dyninst::SymtabAPI::LineInformation::getSourceLines().
| SYMTAB_EXPORT bool Symtab::getSourceLines | ( | std::vector< Statement * > & | lines, | |
| Offset | addressInRange | |||
| ) |
Definition at line 2349 of file Symtab.C.
References _mods, and Dyninst::SymtabAPI::LineInformation::getSourceLines().
| Symbol* Dyninst::SymtabAPI::Symtab::getSymbolByIndex | ( | unsigned | ) |
Definition at line 501 of file Symtab.C.
References Dyninst::SymtabAPI::Object::getTOCoffset(), and obj_private.
Definition at line 496 of file Symtab.C.
References Dyninst::SymtabAPI::Aggregate::getOffset().
Referenced by Dyninst::SymtabAPI::emitElfStatic::calculateTOCs(), and Dyninst::SymtabAPI::SymtabReader::getSymbolTOC().
| bool Symtab::getTruncateLinePaths | ( | ) |
Definition at line 2444 of file Symtab.C.
References getObject(), and Dyninst::SymtabAPI::Object::getTruncateLinePaths().
| SYMTAB_EXPORT bool Symtab::hasRel | ( | ) | const |
| SYMTAB_EXPORT bool Symtab::hasRela | ( | ) | const |
| SYMTAB_EXPORT bool Symtab::hasReladyn | ( | ) | const |
Definition at line 2620 of file Symtab.C.
References hasReladyn_.
| SYMTAB_EXPORT bool Symtab::hasRelaplt | ( | ) | const |
Definition at line 2630 of file Symtab.C.
References hasRelaplt_.
| SYMTAB_EXPORT bool Symtab::hasReldyn | ( | ) | const |
Definition at line 2615 of file Symtab.C.
References hasReldyn_.
| SYMTAB_EXPORT bool Symtab::hasRelplt | ( | ) | const |
Definition at line 2625 of file Symtab.C.
References hasRelplt_.
| bool Symtab::hasStackwalkDebugInfo | ( | ) |
Definition at line 3564 of file Symtab.C.
References FILE__, fprintf, getObject(), and Dyninst::SymtabAPI::Object::hasFrameDebugInfo().
| SYMTAB_EXPORT Offset Symtab::imageLength | ( | ) | const |
| SYMTAB_EXPORT Offset Symtab::imageOffset | ( | ) | const |
Definition at line 430 of file Symtab.C.
References imageOffset_.
Referenced by Dyninst::SymtabAPI::SymtabReader::imageOffset().
| Symtab * Symtab::importBin | ( | std::string | filename | ) | [static] |
Definition at line 2010 of file Symtab.C.
Referenced by openFile().
| bool Symtab::isCode | ( | const Offset | where | ) | const |
Definition at line 1684 of file Symtab.C.
References codeRegions_, MappedFile::filename(), fprintf, Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getMemSize(), Dyninst::SymtabAPI::Region::getRegionType(), mf, and Dyninst::SymtabAPI::Region::RT_BSS.
Referenced by getContainingFunction(), and isValidOffset().
| bool Symtab::isData | ( | const Offset | where | ) | const |
Definition at line 1734 of file Symtab.C.
References dataRegions_, MappedFile::filename(), fprintf, Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getMemSize(), and mf.
Referenced by isValidOffset().
| SYMTAB_EXPORT bool Symtab::isDefensiveBinary | ( | ) | const |
Definition at line 3841 of file Symtab.C.
References isDefensiveBinary_.
Referenced by createFunction().
| SYMTAB_EXPORT bool Symtab::isExec | ( | ) | const |
Definition at line 415 of file Symtab.C.
References is_a_out.
Referenced by add_type_info(), Dyninst::SymtabAPI::emitElf::createElfSymbol(), and Dyninst::SymtabAPI::emitElf64::createElfSymbol().
| SYMTAB_EXPORT bool Symtab::isNativeCompiler | ( | ) | const |
Definition at line 352 of file Symtab.C.
References nativeCompiler.
Referenced by mangledNameMatchKLUDGE(), parseCPlusPlusInfo(), Dyninst::SymtabAPI::parseStabString(), and vectorNameMatchKLUDGE().
| SYMTAB_EXPORT bool Symtab::isStaticBinary | ( | ) | const |
Definition at line 2635 of file Symtab.C.
References isStaticBinary_.
Referenced by addSymbol(), Dyninst::SymtabAPI::emitElfStatic::createLinkMap(), Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), and getFreeOffset().
| SYMTAB_EXPORT bool Symtab::isStripped | ( | ) |
Definition at line 420 of file Symtab.C.
References findRegion(), and no_of_symbols.
| bool Symtab::isValidOffset | ( | const Offset | where | ) | const |
| SYMTAB_EXPORT char * Symtab::mem_image | ( | ) | const |
Definition at line 2980 of file Symtab.C.
References MappedFile::base_addr().
| SYMTAB_EXPORT std::string Symtab::memberName | ( | ) | const |
Definition at line 2996 of file Symtab.C.
References member_name_.
Referenced by Dyninst::SymtabAPI::emitElfStatic::resolveSymbols().
| SYMTAB_EXPORT std::string Symtab::name | ( | ) | const |
Definition at line 2991 of file Symtab.C.
References MappedFile::filename().
Referenced by addSymbol(), createDefaultModule(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), Dyninst::SymtabAPI::AddressLookup::getLoadedLib(), Dyninst::SymtabAPI::Module::operator==(), and Dyninst::SymtabAPI::Object::parseStabTypes().
| Module * Symtab::newModule | ( | const std::string & | name, | |
| const Offset | addr, | |||
| supportedLanguages | lang | |||
| ) | [private] |
Definition at line 1154 of file Symtab.C.
References _mods, create_printf(), extract_pathname_tail(), FILE__, findModuleByName(), modsByFileName, modsByFullName, and Module.
Referenced by getOrCreateModule().
| bool Symtab::openFile | ( | Symtab *& | obj, | |
| void * | mem_image, | |||
| size_t | size, | |||
| std::string | name, | |||
| def_t | defensive_binary = NotDefensive | |||
| ) | [static] |
Definition at line 2016 of file Symtab.C.
References allSymtabs, Defensive, gettimeofday(), and Symtab().
| bool Symtab::openFile | ( | Symtab *& | obj, | |
| std::string | filename, | |||
| def_t | defensive_binary = NotDefensive | |||
| ) | [static] |
Definition at line 2090 of file Symtab.C.
References allSymtabs, create_printf(), Defensive, exportBin(), FILE__, findOpenSymtab(), fprintf, gettimeofday(), importBin(), serialize_printf, and Symtab().
Referenced by addLibraryPrereq(), Dyninst::SymtabAPI::AddressLookup::getSymtab(), Dyninst::SymtabAPI::Archive::parseMember(), and Dyninst::SymtabAPI::SymtabReader::SymtabReader().
| bool Dyninst::AnnotatableSparse::operator== | ( | AnnotatableSparse & | cmp | ) | [inline, inherited] |
Definition at line 668 of file Annotatable.h.
References FILE__, Dyninst::AnnotationClassBase::findAnnotationClass(), fprintf, Dyninst::AnnotatableSparse::getAnnos(), and Dyninst::AnnotationClassBase::getCmpFunc().
| void Symtab::parseLineInformation | ( | ) | [private] |
Definition at line 2287 of file Symtab.C.
References Dyninst::SymtabAPI::LineInformation::addLineInfo(), FILE__, findModuleByName(), fprintf, getDefaultModule(), Dyninst::SymtabAPI::Module::getLineInformation(), getObject(), isLineInfoValid_, Dyninst::SymtabAPI::Object::parseFileLineInfo(), and Dyninst::SymtabAPI::Module::setLineInfo().
Referenced by Dyninst::SymtabAPI::Module::getLineInformation().
| void Symtab::parseTypes | ( | ) | [private] |
Definition at line 2449 of file Symtab.C.
References _mods, Dyninst::AnnotatableSparse::addAnnotation(), FILE__, Dyninst::SymtabAPI::typeCollection::fileToTypesMap, fprintf, Dyninst::SymtabAPI::typeCollection::getModTypeCollection(), getObject(), isTypeInfoValid_, ModuleTypeInfoAnno, and Dyninst::SymtabAPI::Object::parseTypeInfo().
Referenced by parseTypesNow().
| void Symtab::parseTypesNow | ( | ) |
Definition at line 3606 of file Symtab.C.
References isTypeInfoValid_, and parseTypes().
Referenced by findLocalVariable(), Dyninst::SymtabAPI::Function::findLocalVariable(), findType(), findVariableType(), Dyninst::SymtabAPI::Module::getAllGlobalVars(), Dyninst::SymtabAPI::Module::getAllTypes(), Dyninst::SymtabAPI::Function::getLocalVariables(), Dyninst::SymtabAPI::Module::getModuleTypes(), Dyninst::SymtabAPI::Function::getParams(), and Dyninst::SymtabAPI::Variable::getType().
| std::string Symtab::printError | ( | SymtabError | serr | ) | [static] |
Definition at line 108 of file Symtab.C.
References Dyninst::SymtabAPI::Emit_Error, errMsg, Dyninst::SymtabAPI::Export_Error, Dyninst::SymtabAPI::Invalid_Flags, Dyninst::SymtabAPI::No_Error, Dyninst::SymtabAPI::No_Such_Function, Dyninst::SymtabAPI::No_Such_Module, Dyninst::SymtabAPI::No_Such_Region, Dyninst::SymtabAPI::No_Such_Symbol, Dyninst::SymtabAPI::No_Such_Variable, Dyninst::SymtabAPI::Not_A_File, Dyninst::SymtabAPI::Not_An_Archive, Dyninst::SymtabAPI::Obj_Parsing, and Dyninst::SymtabAPI::Syms_To_Functions.
| void Symtab::rebuild_funcvar_hashes | ( | SerializerBase * | sb | ) |
Definition at line 3057 of file Symtab.C.
References everyFunction, everyVariable, funcsByOffset, Dyninst::SymtabAPI::Aggregate::getOffset(), Dyninst::is_input(), and varsByOffset.
| void Symtab::rebuild_module_hashes | ( | SerializerBase * | sb | ) |
Definition at line 3072 of file Symtab.C.
References _mods, Dyninst::SymtabAPI::Module::fileName(), Dyninst::SymtabAPI::Module::fullName(), Dyninst::is_input(), modsByFileName, and modsByFullName.
| void Symtab::rebuild_region_indexes | ( | SerializerBase * | sb | ) |
Definition at line 3083 of file Symtab.C.
References Dyninst::SymtabAPI::Region::getMemOffset(), Dyninst::SymtabAPI::Region::getRegionPermissions(), Dyninst::is_input(), Dyninst::SymtabAPI::Region::isLoadable(), Dyninst::SymtabAPI::Region::RP_RWX, Dyninst::SymtabAPI::Region::RP_RX, and sort_reg_by_addr().
| void Symtab::rebuild_symbol_hashes | ( | SerializerBase * | sb | ) |
Definition at line 3037 of file Symtab.C.
References everyDefinedSymbol, Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getPrettyName(), Dyninst::SymtabAPI::Symbol::getTypedName(), Dyninst::is_input(), symsByMangledName, symsByOffset, symsByPrettyName, and symsByTypedName.
| bool Dyninst::AnnotatableSparse::removeAnnotation | ( | AnnotationClass< T > & | a_id | ) | [inline, inherited] |
Definition at line 843 of file Annotatable.h.
References Dyninst::annotation_debug_flag(), FILE__, fprintf, Dyninst::AnnotationClassBase::getID(), and Dyninst::AnnotationClassBase::getName().
Referenced by Dyninst::SymtabAPI::Function::~Function(), and Dyninst::SymtabAPI::Symbol::~Symbol().
| SYMTAB_EXPORT bool Symtab::removeLibraryDependency | ( | std::string | lib | ) |
Definition at line 3681 of file Symtab.C.
References FILE__, fprintf, getObject(), and Dyninst::SymtabAPI::Object::removePrereqLibrary().
| Serializable * Symtab::serialize_impl | ( | SerializerBase * | sb, | |
| const char * | tag = "Symtab" | |||
| ) |
| void Dyninst::AnnotatableSparse::serializeAnnotations | ( | SerializerBase * | sb, | |
| const char * | ||||
| ) | [inline, inherited] |
Definition at line 869 of file Annotatable.h.
References Dyninst::ser_rec_t::acb, Dyninst::add_annotations(), Dyninst::ser_rec_t::data, FILE__, Dyninst::AnnotationClassBase::findAnnotationClass(), fprintf, Dyninst::get_serializer_index(), Dyninst::AnnotationClassBase::getSerializeFunc(), Dyninst::is_input(), Dyninst::is_output(), Dyninst::ser_rec_t::parent_id, Dyninst::serialize_annotation_list(), Dyninst::ser_rec_t::sod, and Dyninst::sparse.
| bool Dyninst::SymtabAPI::Symtab::setDefaultNamespacePrefix | ( | std::string & | str | ) | [private] |
| void Symtab::setModuleLanguages | ( | dyn_hash_map< std::string, supportedLanguages > * | mod_langs | ) | [private] |
Definition at line 1055 of file Symtab.C.
References _mods, Dyninst::SymtabAPI::Module::fileName(), Dyninst::SymtabAPI::Module::isShared(), Dyninst::SymtabAPI::lang_Assembly, Dyninst::SymtabAPI::lang_C, Dyninst::SymtabAPI::lang_CPlusPlus, and Dyninst::SymtabAPI::Module::setLanguage().
Referenced by extractInfo().
| void Symtab::setTOCOffset | ( | Offset | offset | ) | [private] |
Definition at line 506 of file Symtab.C.
References obj_private, and Dyninst::SymtabAPI::Object::setTOCoffset().
Referenced by Dyninst::SymtabAPI::emitElfStatic::calculateTOCs().
| void Symtab::setTruncateLinePaths | ( | bool | value | ) |
Definition at line 2439 of file Symtab.C.
References getObject(), and Dyninst::SymtabAPI::Object::setTruncateLinePaths().
| bool Symtab::setup_module_up_ptrs | ( | SerializerBase * | , | |
| Symtab * | st | |||
| ) | [static] |
Definition at line 3011 of file Symtab.C.
References _mods, and Dyninst::SymtabAPI::Module::exec_.
| boost::shared_ptr< builtInTypeCollection > Symtab::setupBuiltinTypes | ( | ) | [static, private] |
| boost::shared_ptr< typeCollection > Symtab::setupStdTypes | ( | ) | [static, private] |
Definition at line 306 of file Symtab.C.
References Dyninst::SymtabAPI::Type::decrRefCount(), and stdTypes().
Referenced by stdTypes().
| boost::shared_ptr< typeCollection > Symtab::stdTypes | ( | ) | [static] |
Definition at line 162 of file Symtab.C.
References setupStdTypes().
Referenced by Dyninst::SymtabAPI::typeCollection::doDeferredLookups(), findType(), getAllstdTypes(), getType(), and setupStdTypes().
| boost::shared_ptr< Type > Symtab::type_Error | ( | ) | [static] |
Definition at line 143 of file Symtab.C.
References Dyninst::SymtabAPI::dataUnknownType.
Referenced by Dyninst::SymtabAPI::typeTypedef::typeTypedef().
| boost::shared_ptr< Type > Symtab::type_Untyped | ( | ) | [static] |
Definition at line 149 of file Symtab.C.
References Dyninst::SymtabAPI::dataUnknownType.
Referenced by Dyninst::SymtabAPI::parseStabString().
| SYMTAB_EXPORT bool Symtab::updateCode | ( | void * | buffer, | |
| unsigned | size | |||
| ) |
Definition at line 2839 of file Symtab.C.
References updateRegion().
| SYMTAB_EXPORT bool Symtab::updateData | ( | void * | buffer, | |
| unsigned | size | |||
| ) |
Definition at line 2844 of file Symtab.C.
References updateRegion().
Definition at line 1774 of file Symtab.C.
References relocation_table_.
Definition at line 993 of file Symtab.C.
References Dyninst::SymtabAPI::mangledName, Dyninst::SymtabAPI::prettyName, symsByMangledName, symsByPrettyName, symsByTypedName, and Dyninst::SymtabAPI::typedName.
| SYMTAB_EXPORT bool Symtab::updateRegion | ( | const char * | name, | |
| void * | buffer, | |||
| unsigned | size | |||
| ) |
Definition at line 2827 of file Symtab.C.
References findRegion(), and Dyninst::SymtabAPI::Region::setPtrToRawData().
Referenced by updateCode(), and updateData().
| SYMTAB_EXPORT bool Symtab::updateRelocations | ( | Address | start, | |
| Address | end, | |||
| Symbol * | oldsym, | |||
| Symbol * | newsym | |||
| ) |
Definition at line 450 of file Symtab-edit.C.
References codeRegions_.
| void Symtab::version | ( | int & | major, | |
| int & | minor, | |||
| int & | maintenance | |||
| ) | [static] |
Definition at line 79 of file Symtab.C.
References Symtab_maintenance_version, Symtab_major_version, and Symtab_minor_version.
friend class emitElfStatic [friend] |
friend class Function [friend] |
Definition at line 77 of file Symtab.h.
Referenced by addSymbolToAggregates().
friend class Module [friend] |
Definition at line 79 of file Symtab.h.
Referenced by createDefaultModule(), newModule(), and Symtab().
friend class Region [friend] |
Definition at line 80 of file Symtab.h.
Referenced by addRegion(), and Symtab().
friend class relocationEntry [friend] |
friend class Symbol [friend] |
Definition at line 76 of file Symtab.h.
Referenced by addExternalSymbolReference(), createFunction(), and createVariable().
friend class Variable [friend] |
Definition at line 78 of file Symtab.h.
Referenced by addSymbolToAggregates().
std::vector<Module *> Dyninst::SymtabAPI::Symtab::_mods [private] |
Definition at line 552 of file Symtab.h.
Referenced by createDefaultModule(), createFunction(), createVariable(), findModuleByOffset(), findType(), findVariableType(), fixup_relocation_symbols(), getAllModules(), getDefaultModule(), getSourceLines(), newModule(), parseTypes(), rebuild_module_hashes(), setModuleLanguages(), setup_module_up_ptrs(), Symtab(), and ~Symtab().
unsigned Dyninst::SymtabAPI::Symtab::_ref_cnt [private] |
Definition at line 616 of file Symtab.h.
Referenced by closeSymtab().
unsigned Dyninst::SymtabAPI::Symtab::address_width_ [private] |
Definition at line 463 of file Symtab.h.
Referenced by extractInfo(), and getAddressWidth().
std::vector< Symtab * > Symtab::allSymtabs [static, private] |
Definition at line 477 of file Symtab.h.
Referenced by closeSymtab(), findOpenSymtab(), openFile(), and ~Symtab().
Definition at line 468 of file Symtab.h.
Referenced by extractInfo(), getBaseOffset(), and Symtab().
char* Dyninst::SymtabAPI::Symtab::code_ptr_ [private] |
Definition at line 464 of file Symtab.h.
Referenced by extractInfo(), and Symtab().
std::vector<Region *> Dyninst::SymtabAPI::Symtab::codeRegions_ [private] |
Definition at line 483 of file Symtab.h.
Referenced by addRegion(), extractInfo(), fixup_RegionAddr(), getCodeRegions(), isCode(), updateRelocations(), and ~Symtab().
char* Dyninst::SymtabAPI::Symtab::data_ptr_ [private] |
Definition at line 465 of file Symtab.h.
Referenced by extractInfo(), and Symtab().
unsigned Dyninst::SymtabAPI::Symtab::dataLen_ [private] |
Definition at line 456 of file Symtab.h.
Referenced by dataLength(), extractInfo(), fixup_code_and_data(), and Symtab().
Definition at line 455 of file Symtab.h.
Referenced by dataOffset(), extractInfo(), fixup_code_and_data(), and Symtab().
std::vector<Region *> Dyninst::SymtabAPI::Symtab::dataRegions_ [private] |
Definition at line 484 of file Symtab.h.
Referenced by addRegion(), extractInfo(), fixup_RegionAddr(), getDataRegions(), isData(), and ~Symtab().
std::string Dyninst::SymtabAPI::Symtab::defaultNamespacePrefix [private] |
Definition at line 478 of file Symtab.h.
Referenced by getDefaultNamespacePrefix(), and Symtab().
std::vector<std::string> Dyninst::SymtabAPI::Symtab::deps_ [private] |
Definition at line 569 of file Symtab.h.
Referenced by extractInfo(), getDependencies(), Symtab(), and ~Symtab().
std::map<std::string, std::string> Dyninst::SymtabAPI::Symtab::dynLibSubs [private] |
Definition at line 609 of file Symtab.h.
Referenced by addDynLibSubstitution(), and getDynLibSubstitution().
Definition at line 467 of file Symtab.h.
Referenced by extractInfo(), getEntryOffset(), and Symtab().
std::vector<Symbol *> Dyninst::SymtabAPI::Symtab::everyDefinedSymbol [private] |
Definition at line 495 of file Symtab.h.
Referenced by addSymbolToIndices(), createAggregates(), deleteSymbolFromIndices(), emitSymbols(), findSymbol(), getAllDefinedSymbols(), getAllSymbols(), getAllSymbolsByType(), rebuild_symbol_hashes(), and ~Symtab().
std::vector<Function *> Dyninst::SymtabAPI::Symtab::everyFunction [private] |
Definition at line 519 of file Symtab.h.
Referenced by addSymbolToAggregates(), deleteFunction(), findLocalVariable(), getAllFunctions(), getContainingFunction(), Dyninst::SymtabAPI::Function::getSize(), rebuild_funcvar_hashes(), and ~Symtab().
std::vector<Variable *> Dyninst::SymtabAPI::Symtab::everyVariable [private] |
Definition at line 525 of file Symtab.h.
Referenced by addSymbolToAggregates(), deleteVariable(), getAllVariables(), rebuild_funcvar_hashes(), and ~Symtab().
std::vector<ExceptionBlock *> Dyninst::SymtabAPI::Symtab::excpBlocks [private] |
Definition at line 567 of file Symtab.h.
Referenced by extractInfo(), findCatchBlock(), findException(), getAllExceptions(), Symtab(), and ~Symtab().
std::set<Symtab *> Dyninst::SymtabAPI::Symtab::explicitSymtabRefs_ [private] |
Definition at line 576 of file Symtab.h.
Referenced by addExternalSymbolReference(), and getExplicitSymtabRefs().
unsigned long Dyninst::SymtabAPI::Symtab::fdptr_ [private] |
Definition at line 584 of file Symtab.h.
Referenced by extractInfo().
dyn_hash_map<Offset, Function *> Dyninst::SymtabAPI::Symtab::funcsByOffset [private] |
Definition at line 522 of file Symtab.h.
Referenced by addSymbolToAggregates(), changeAggregateOffset(), deleteFunction(), findFuncByEntryOffset(), rebuild_funcvar_hashes(), and ~Symtab().
bool Dyninst::SymtabAPI::Symtab::hasRel_ [private] |
Definition at line 592 of file Symtab.h.
Referenced by extractInfo(), hasRel(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::hasRela_ [private] |
Definition at line 593 of file Symtab.h.
Referenced by extractInfo(), hasRela(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::hasReladyn_ [private] |
Definition at line 595 of file Symtab.h.
Referenced by extractInfo(), hasReladyn(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::hasRelaplt_ [private] |
Definition at line 597 of file Symtab.h.
Referenced by extractInfo(), hasRelaplt(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::hasReldyn_ [private] |
Definition at line 594 of file Symtab.h.
Referenced by extractInfo(), hasReldyn(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::hasRelplt_ [private] |
Definition at line 596 of file Symtab.h.
Referenced by extractInfo(), hasRelplt(), and Symtab().
unsigned Dyninst::SymtabAPI::Symtab::imageLen_ [private] |
Definition at line 454 of file Symtab.h.
Referenced by extractInfo(), fixup_code_and_data(), imageLength(), and Symtab().
Definition at line 453 of file Symtab.h.
Referenced by createDefaultModule(), extractInfo(), fixup_code_and_data(), imageOffset(), and Symtab().
std::string Dyninst::SymtabAPI::Symtab::interpreter_name_ [private] |
Definition at line 466 of file Symtab.h.
Referenced by extractInfo(), and getInterpreterName().
bool Dyninst::SymtabAPI::Symtab::is_a_out [private] |
Definition at line 458 of file Symtab.h.
Referenced by extractInfo(), isExec(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::is_eel_ [private] |
Definition at line 471 of file Symtab.h.
Referenced by extractInfo(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::isDefensiveBinary_ [private] |
Definition at line 600 of file Symtab.h.
Referenced by extractInfo(), isDefensiveBinary(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::isLineInfoValid_ [private] |
Definition at line 579 of file Symtab.h.
Referenced by Dyninst::SymtabAPI::Module::getLineInformation(), parseLineInformation(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::isStaticBinary_ [private] |
Definition at line 599 of file Symtab.h.
Referenced by extractInfo(), isStaticBinary(), and Symtab().
bool Dyninst::SymtabAPI::Symtab::isTypeInfoValid_ [private] |
Definition at line 581 of file Symtab.h.
Referenced by parseTypes(), parseTypesNow(), and Symtab().
char* Dyninst::SymtabAPI::Symtab::lines_ [private] |
Definition at line 585 of file Symtab.h.
Referenced by extractInfo().
std::vector<Archive *> Dyninst::SymtabAPI::Symtab::linkingResources_ [private] |
Definition at line 572 of file Symtab.h.
Referenced by addLinkingResource(), and getLinkingResources().
Definition at line 469 of file Symtab.h.
Referenced by extractInfo(), getLoadOffset(), and Symtab().
std::string Dyninst::SymtabAPI::Symtab::member_name_ [private] |
Definition at line 447 of file Symtab.h.
Referenced by memberName(), Dyninst::SymtabAPI::Archive::parseMember(), and Symtab().
Definition at line 448 of file Symtab.h.
Referenced by Dyninst::SymtabAPI::Archive::parseMember(), and Symtab().
MappedFile* Dyninst::SymtabAPI::Symtab::mf [private] |
dyn_hash_map<std::string, Module *> Dyninst::SymtabAPI::Symtab::modsByFileName [private] |
Definition at line 550 of file Symtab.h.
Referenced by createDefaultModule(), findModuleByName(), newModule(), rebuild_module_hashes(), Symtab(), and ~Symtab().
dyn_hash_map<std::string, Module *> Dyninst::SymtabAPI::Symtab::modsByFullName [private] |
Definition at line 551 of file Symtab.h.
Referenced by createDefaultModule(), findModuleByName(), newModule(), rebuild_module_hashes(), Symtab(), and ~Symtab().
bool Dyninst::SymtabAPI::Symtab::nativeCompiler [private] |
Definition at line 461 of file Symtab.h.
Referenced by demangleSymbol(), extractInfo(), isNativeCompiler(), and Symtab().
unsigned Dyninst::SymtabAPI::Symtab::newSectionInsertPoint [private] |
Definition at line 488 of file Symtab.h.
Referenced by addRegion(), extractInfo(), and getFreeOffset().
int Dyninst::SymtabAPI::Symtab::nlines_ [private] |
Definition at line 583 of file Symtab.h.
Referenced by extractInfo().
unsigned Dyninst::SymtabAPI::Symtab::no_of_sections [private] |
Definition at line 481 of file Symtab.h.
Referenced by extractInfo(), getNumberofRegions(), and Symtab().
unsigned Dyninst::SymtabAPI::Symtab::no_of_symbols [private] |
Definition at line 491 of file Symtab.h.
Referenced by extractInfo(), getNumberofSymbols(), and isStripped().
int Dyninst::SymtabAPI::Symtab::nstabs_ [private] |
Definition at line 587 of file Symtab.h.
Referenced by extractInfo().
Object* Dyninst::SymtabAPI::Symtab::obj_private [private] |
Definition at line 606 of file Symtab.h.
Referenced by getObject(), getSegmentsSymReader(), getTOCoffset(), setTOCOffset(), Symtab(), and ~Symtab().
Definition at line 470 of file Symtab.h.
Referenced by extractInfo(), getObjectType(), and Symtab().
Definition at line 449 of file Symtab.h.
Referenced by getParentArchive(), and Dyninst::SymtabAPI::Archive::parseMember().
std::vector<Region *> Dyninst::SymtabAPI::Symtab::regions_ [private] |
Definition at line 482 of file Symtab.h.
Referenced by addRegion(), extractInfo(), fileToDiskOffset(), fileToMemOffset(), findEnclosingRegion(), findRegion(), fixup_RegionAddr(), getAllRegions(), getFreeOffset(), getMappedRegions(), Symtab(), and ~Symtab().
dyn_hash_map<Offset, Region *> Dyninst::SymtabAPI::Symtab::regionsByEntryAddr [private] |
Definition at line 485 of file Symtab.h.
Referenced by extractInfo(), findRegionByEntry(), fixup_RegionAddr(), Symtab(), and ~Symtab().
std::vector<relocationEntry > Dyninst::SymtabAPI::Symtab::relocation_table_ [private] |
Definition at line 566 of file Symtab.h.
Referenced by extractInfo(), fixup_RegionAddr(), getFuncBindingTable(), Symtab(), and updateFuncBindingTable().
std::vector<Segment> Dyninst::SymtabAPI::Symtab::segments_ [private] |
Definition at line 472 of file Symtab.h.
Referenced by extractInfo().
bool Dyninst::SymtabAPI::Symtab::sorted_everyFunction [private] |
Definition at line 518 of file Symtab.h.
Referenced by addSymbolToAggregates(), getContainingFunction(), and Dyninst::SymtabAPI::Function::getSize().
void* Dyninst::SymtabAPI::Symtab::stabs_ [private] |
Definition at line 588 of file Symtab.h.
Referenced by extractInfo().
char* Dyninst::SymtabAPI::Symtab::stabstr_ [private] |
Definition at line 586 of file Symtab.h.
Referenced by extractInfo().
char* Dyninst::SymtabAPI::Symtab::stringpool_ [private] |
Definition at line 589 of file Symtab.h.
Referenced by extractInfo().
dyn_hash_map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::symsByMangledName [private] |
Definition at line 509 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), fixup_SymbolAddr(), rebuild_symbol_hashes(), updateIndices(), and ~Symtab().
dyn_hash_map<Offset, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::symsByOffset [private] |
Definition at line 506 of file Symtab.h.
Referenced by addSymbolToIndices(), changeSymbolOffset(), deleteSymbolFromIndices(), findSymbolByOffset(), fixup_SymbolAddr(), rebuild_symbol_hashes(), and ~Symtab().
dyn_hash_map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::symsByPrettyName [private] |
Definition at line 512 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), rebuild_symbol_hashes(), updateIndices(), and ~Symtab().
dyn_hash_map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::symsByTypedName [private] |
Definition at line 515 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), rebuild_symbol_hashes(), updateIndices(), and ~Symtab().
std::vector<Symbol *> Dyninst::SymtabAPI::Symtab::undefDynSyms [private] |
Definition at line 499 of file Symtab.h.
Referenced by deleteSymbolFromIndices(), emitSymbols(), extractInfo(), extractSymbolsFromFile(), getAllUndefinedSymbols(), and ~Symtab().
std::map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::undefDynSymsByMangledName [private] |
Definition at line 500 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), and ~Symtab().
std::map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::undefDynSymsByPrettyName [private] |
Definition at line 501 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), and ~Symtab().
std::map<std::string, std::vector<Symbol *> > Dyninst::SymtabAPI::Symtab::undefDynSymsByTypedName [private] |
Definition at line 502 of file Symtab.h.
Referenced by addSymbolToIndices(), deleteSymbolFromIndices(), findSymbol(), and ~Symtab().
dyn_hash_map<Offset, Variable *> Dyninst::SymtabAPI::Symtab::varsByOffset [private] |
Definition at line 526 of file Symtab.h.
Referenced by addSymbolToAggregates(), changeAggregateOffset(), deleteVariable(), findVariableByOffset(), rebuild_funcvar_hashes(), and ~Symtab().
1.6.1