Dyninst::SymtabAPI::AObject Class Reference

#include <Object.h>

Inheritance diagram for Dyninst::SymtabAPI::AObject:
Dyninst::SymtabAPI::Object Dyninst::SymtabAPI::Object Dyninst::SymtabAPI::Object

Public Member Functions

SYMTAB_EXPORT AObject ()
SYMTAB_EXPORT unsigned nsymbols () const
SYMTAB_EXPORT bool get_symbols (std::string &name, std::vector< Symbol * > &symbols)
SYMTAB_EXPORT char * code_ptr () const
SYMTAB_EXPORT Offset code_off () const
SYMTAB_EXPORT Offset code_len () const
SYMTAB_EXPORT char * data_ptr () const
SYMTAB_EXPORT Offset data_off () const
SYMTAB_EXPORT Offset data_len () const
SYMTAB_EXPORT bool is_aout () const
SYMTAB_EXPORT bool isDynamic () const
SYMTAB_EXPORT unsigned no_of_sections () const
SYMTAB_EXPORT unsigned no_of_symbols () const
SYMTAB_EXPORT bool getAllExceptions (std::vector< ExceptionBlock * > &excpBlocks) const
SYMTAB_EXPORT std::vector
< Region * > 
getAllRegions () const
SYMTAB_EXPORT supportedLanguages pickLanguage (std::string &working_module, char *working_options, supportedLanguages working_lang)
SYMTAB_EXPORT Offset loader_off () const
SYMTAB_EXPORT unsigned loader_len () const
SYMTAB_EXPORT int getAddressWidth () const
bool isStaticBinary () const
virtual SYMTAB_EXPORT char * mem_image () const
virtual SYMTAB_EXPORT bool needs_function_binding () const
virtual SYMTAB_EXPORT bool get_func_binding_table (std::vector< relocationEntry > &) const
virtual SYMTAB_EXPORT bool get_func_binding_table_ptr (const std::vector< relocationEntry > *&) const
virtual SYMTAB_EXPORT bool addRelocationEntry (relocationEntry &re)
SYMTAB_EXPORT bool getSegments (std::vector< Segment > &segs) const
SYMTAB_EXPORT bool have_deferred_parsing (void) const
SYMTAB_EXPORT const std::ostream & dump_state_info (std::ostream &s)
SYMTAB_EXPORT void * getErrFunc () const
SYMTAB_EXPORT dyn_hash_map
< std::string, std::vector
< Symbol * > > * 
getAllSymbols ()
virtual SYMTAB_EXPORT bool hasFrameDebugInfo ()
virtual SYMTAB_EXPORT bool getRegValueAtFrame (Address, Dyninst::MachRegister, Dyninst::MachRegisterVal &, Dyninst::SymtabAPI::MemRegReader *)
virtual SYMTAB_EXPORT
Dyninst::Architecture 
getArch ()
SYMTAB_EXPORT const std::string findModuleForSym (Symbol *sym)
SYMTAB_EXPORT void clearSymsToMods ()
SYMTAB_EXPORT bool hasError () const
virtual void setTruncateLinePaths (bool value)
virtual bool getTruncateLinePaths ()
virtual Region::RegionType getRelType () const
virtual SYMTAB_EXPORT void getSegmentsSymReader (std::vector< SymSegment > &)

Protected Member Functions

virtual SYMTAB_EXPORT ~AObject ()
SYMTAB_EXPORT AObject (MappedFile *, void(*err_func)(const char *))
SYMTAB_EXPORT AObject (MappedFile *, dyn_hash_map< std::string, LineInformation > &, void(*)(const char *))
SYMTAB_EXPORT AObject (const AObject &obj)

Protected Attributes

MappedFilemf
std::vector< Region * > regions_
dyn_hash_map< std::string,
std::vector< Symbol * > > 
symbols_
std::map< Symbol *, std::string > symsToModules_
dyn_hash_map< Offset,
std::vector< Symbol * > > 
symsByOffset_
std::vector< std::pair
< std::string, Offset > > 
modules_
char * code_ptr_
Offset code_off_
Offset code_len_
char * data_ptr_
Offset data_off_
Offset data_len_
Offset code_vldS_
Offset code_vldE_
Offset data_vldS_
Offset data_vldE_
Offset loader_off_
Offset loader_len_
bool is_aout_
bool is_dynamic_
bool has_error
bool is_static_binary_
unsigned no_of_sections_
unsigned no_of_symbols_
bool deferredParse
void(* err_func_ )(const char *)
int addressWidth_nbytes
std::vector< ExceptionBlockcatch_addrs_

Friends

class SymbolIter
class Symtab

Detailed Description

Definition at line 78 of file Object.h.


Constructor & Destructor Documentation

SYMTAB_EXPORT Dyninst::SymtabAPI::AObject::AObject (  )  [inline]

Definition at line 80 of file Object.h.

SYMTAB_EXPORT AObject::~AObject (  )  [protected, virtual]

Definition at line 375 of file Object.C.

References symbols_.

SYMTAB_EXPORT AObject::AObject ( MappedFile mf_,
void(*)(const char *)  err_func 
) [protected]

Definition at line 390 of file Object.C.

SYMTAB_EXPORT Dyninst::SymtabAPI::AObject::AObject ( MappedFile ,
dyn_hash_map< std::string, LineInformation > &  ,
void(*)(const char *)   
) [inline, protected]

Definition at line 148 of file Object.h.

SYMTAB_EXPORT AObject::AObject ( const AObject obj  )  [protected]

Definition at line 398 of file Object.C.


Member Function Documentation

bool AObject::addRelocationEntry ( relocationEntry re  )  [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 222 of file Object.C.

void AObject::clearSymsToMods (  ) 

Definition at line 541 of file Object.C.

References symsToModules_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT Offset AObject::code_len (  )  const
SYMTAB_EXPORT Offset AObject::code_off (  )  const
SYMTAB_EXPORT char * AObject::code_ptr (  )  const

Definition at line 281 of file Object.C.

References code_ptr_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT Offset AObject::data_len (  )  const

Definition at line 306 of file Object.C.

References data_len_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT Offset AObject::data_off (  )  const

Definition at line 301 of file Object.C.

References data_off_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT char * AObject::data_ptr (  )  const

Definition at line 296 of file Object.C.

References data_ptr_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT const std::ostream& Dyninst::SymtabAPI::AObject::dump_state_info ( std::ostream &  s  ) 

Reimplemented in Dyninst::SymtabAPI::Object.

const std::string AObject::findModuleForSym ( Symbol sym  ) 

Definition at line 537 of file Object.C.

References symsToModules_.

Referenced by Dyninst::SymtabAPI::Symtab::fixSymModule().

bool AObject::get_func_binding_table ( std::vector< relocationEntry > &   )  const [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 212 of file Object.C.

bool AObject::get_func_binding_table_ptr ( const std::vector< relocationEntry > *&   )  const [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 217 of file Object.C.

SYMTAB_EXPORT bool Dyninst::SymtabAPI::AObject::get_symbols ( std::string &  name,
std::vector< Symbol * > &  symbols 
)
SYMTAB_EXPORT int AObject::getAddressWidth (  )  const
SYMTAB_EXPORT bool AObject::getAllExceptions ( std::vector< ExceptionBlock * > &  excpBlocks  )  const

Definition at line 331 of file Object.C.

References catch_addrs_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT std::vector< Region * > AObject::getAllRegions (  )  const

Definition at line 339 of file Object.C.

References regions_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT dyn_hash_map< string, std::vector< Symbol * > > * AObject::getAllSymbols (  ) 
virtual SYMTAB_EXPORT Dyninst::Architecture Dyninst::SymtabAPI::AObject::getArch (  )  [inline, virtual]
SYMTAB_EXPORT void * AObject::getErrFunc (  )  const

Definition at line 365 of file Object.C.

References err_func_.

virtual SYMTAB_EXPORT bool Dyninst::SymtabAPI::AObject::getRegValueAtFrame ( Address  ,
Dyninst::MachRegister  ,
Dyninst::MachRegisterVal ,
Dyninst::SymtabAPI::MemRegReader  
) [inline, virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 127 of file Object.h.

virtual Region::RegionType Dyninst::SymtabAPI::AObject::getRelType (  )  const [inline, virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 139 of file Object.h.

References Dyninst::SymtabAPI::Region::RT_INVALID.

SYMTAB_EXPORT bool Dyninst::SymtabAPI::AObject::getSegments ( std::vector< Segment > &  segs  )  const
virtual SYMTAB_EXPORT void Dyninst::SymtabAPI::AObject::getSegmentsSymReader ( std::vector< SymSegment > &   )  [inline, virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 142 of file Object.h.

bool AObject::getTruncateLinePaths (  )  [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 554 of file Object.C.

bool AObject::hasError (  )  const

Definition at line 545 of file Object.C.

References has_error.

Referenced by Dyninst::SymtabAPI::Symtab::Symtab().

virtual SYMTAB_EXPORT bool Dyninst::SymtabAPI::AObject::hasFrameDebugInfo (  )  [inline, virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 126 of file Object.h.

SYMTAB_EXPORT bool AObject::have_deferred_parsing ( void   )  const

Definition at line 360 of file Object.C.

References deferredParse.

SYMTAB_EXPORT bool AObject::is_aout (  )  const
SYMTAB_EXPORT bool AObject::isDynamic (  )  const

Definition at line 316 of file Object.C.

References is_dynamic_.

bool Dyninst::SymtabAPI::AObject::isStaticBinary (  )  const [inline]
SYMTAB_EXPORT unsigned AObject::loader_len (  )  const

Definition at line 349 of file Object.C.

References loader_len_.

SYMTAB_EXPORT Offset AObject::loader_off (  )  const

Definition at line 344 of file Object.C.

References loader_off_.

char * AObject::mem_image (  )  const [virtual]

Reimplemented in Dyninst::SymtabAPI::Object, and Dyninst::SymtabAPI::Object.

Definition at line 227 of file Object.C.

bool AObject::needs_function_binding (  )  const [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 207 of file Object.C.

SYMTAB_EXPORT unsigned AObject::no_of_sections (  )  const

Definition at line 321 of file Object.C.

References no_of_sections_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT unsigned AObject::no_of_symbols (  )  const

Definition at line 326 of file Object.C.

References no_of_symbols_.

Referenced by Dyninst::SymtabAPI::Symtab::extractInfo().

SYMTAB_EXPORT unsigned AObject::nsymbols (  )  const
SYMTAB_EXPORT supportedLanguages Dyninst::SymtabAPI::AObject::pickLanguage ( std::string &  working_module,
char *  working_options,
supportedLanguages  working_lang 
)
void AObject::setTruncateLinePaths ( bool  value  )  [virtual]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 550 of file Object.C.


Friends And Related Function Documentation

friend class SymbolIter [friend]

Definition at line 201 of file Object.h.

friend class Symtab [friend]

Reimplemented in Dyninst::SymtabAPI::Object.

Definition at line 202 of file Object.h.


Field Documentation

Definition at line 194 of file Object.h.

Referenced by have_deferred_parsing().

void(* Dyninst::SymtabAPI::AObject::err_func_)(const char *) [protected]

Definition at line 187 of file Object.h.

Referenced by hasError(), and Dyninst::SymtabAPI::Object::Object().

Definition at line 186 of file Object.h.

Referenced by isDynamic(), and Dyninst::SymtabAPI::Object::loaded_elf().

Definition at line 189 of file Object.h.

Referenced by isStaticBinary(), and Dyninst::SymtabAPI::Object::loaded_elf().

Definition at line 179 of file Object.h.

Referenced by loader_len(), and Dyninst::SymtabAPI::Object::parse_aout().

Definition at line 178 of file Object.h.

Referenced by loader_off(), and Dyninst::SymtabAPI::Object::parse_aout().

std::vector<std::pair<std::string, Offset> > Dyninst::SymtabAPI::AObject::modules_ [protected]

Definition at line 162 of file Object.h.

Referenced by Dyninst::SymtabAPI::Symtab::fixSymModules().

std::vector< Region *> Dyninst::SymtabAPI::AObject::regions_ [protected]
dyn_hash_map< std::string, std::vector< Symbol *> > Dyninst::SymtabAPI::AObject::symbols_ [protected]
dyn_hash_map<Offset, std::vector<Symbol *> > Dyninst::SymtabAPI::AObject::symsByOffset_ [protected]
std::map< Symbol *, std::string > Dyninst::SymtabAPI::AObject::symsToModules_ [protected]

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

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1