#include <stdio.h>#include <stdlib.h>#include <assert.h>#include <string.h>#include <algorithm>#include <iostream>#include <iomanip>#include <sstream>#include "common/h/Timer.h"#include "common/h/debugOstream.h"#include "common/h/serialize.h"#include "common/h/pathName.h"#include "Serialization.h"#include "Symtab.h"#include "Module.h"#include "Collections.h"#include "Function.h"#include "Variable.h"#include "annotations.h"#include "debug.h"#include "symtabAPI/src/Object.h"#include <dlfcn.h>#include <stdarg.h>Go to the source code of this file.
Functions | |
| bool | parseCompilerType (Object *) |
| void | symtab_log_perror (const char *msg) |
| void | setSymtabError (SymtabError new_err) |
| bool | sort_reg_by_addr (const Region *a, const Region *b) |
| void | print_symbols (std::vector< Symbol * > &allsymbols) |
| void | print_symbol_map (dyn_hash_map< std::string, std::vector< Symbol * > > *symbols) |
Variables | |
| static std::string | errMsg |
| static const int | Symtab_major_version = 8 |
| static const int | Symtab_minor_version = 1 |
| static const int | Symtab_maintenance_version = 2 |
| SymtabError | serr |
| bool parseCompilerType | ( | Object * | ) |
Definition at line 3566 of file Object-elf.C.
References Dyninst::SymtabAPI::stab_entry::count(), Dyninst::SymtabAPI::Object::get_stab_info(), Dyninst::SymtabAPI::AObject::getAddressWidth(), Dyninst::SymtabAPI::stab_entry::getStringBase(), N_OPT, N_UNDF, Dyninst::SymtabAPI::stab_entry::setStringBase(), Dyninst::SymtabAPI::stab_entry::type(), and Dyninst::SymtabAPI::stab_entry::val().
Referenced by Dyninst::SymtabAPI::Symtab::extractInfo(), and Dyninst::SymtabAPI::Object::parseStabTypes().
| void print_symbol_map | ( | dyn_hash_map< std::string, std::vector< Symbol * > > * | symbols | ) |
Definition at line 134 of file Object.C.
References print_symbols().
| void print_symbols | ( | std::vector< Symbol * > & | allsymbols | ) |
Definition at line 61 of file Object.C.
References ____sym_hdr_printed, Dyninst::SymtabAPI::Module::fileName(), fprintf, Dyninst::SymtabAPI::Symbol::getLinkage(), Dyninst::SymtabAPI::Symbol::getMangledName(), Dyninst::SymtabAPI::Symbol::getModule(), Dyninst::SymtabAPI::Symbol::getOffset(), Dyninst::SymtabAPI::Symbol::getRegion(), Dyninst::SymtabAPI::Region::getRegionNumber(), Dyninst::SymtabAPI::Symbol::getSize(), Dyninst::SymtabAPI::Symbol::getType(), Dyninst::SymtabAPI::Symbol::getVersionFileName(), Dyninst::SymtabAPI::Symbol::getVersions(), Dyninst::SymtabAPI::Symbol::getVisibility(), Dyninst::SymtabAPI::Symbol::isAbsolute(), Dyninst::SymtabAPI::Symbol::isInDynSymtab(), and Dyninst::SymtabAPI::Symbol::isInSymtab().
| void setSymtabError | ( | SymtabError | new_err | ) |
Definition at line 103 of file Symtab.C.
References serr.
Referenced by Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), and Dyninst::SymtabAPI::Object::getRegValueAtFrame().
Definition at line 1365 of file Symtab.C.
References Dyninst::SymtabAPI::Region::getMemOffset(), and Dyninst::SymtabAPI::Region::getMemSize().
Referenced by Dyninst::SymtabAPI::Symtab::addRegion(), Dyninst::SymtabAPI::Symtab::extractInfo(), Dyninst::SymtabAPI::Symtab::fixup_RegionAddr(), and Dyninst::SymtabAPI::Symtab::rebuild_region_indexes().
| void symtab_log_perror | ( | const char * | msg | ) |
Definition at line 87 of file Symtab.C.
References errMsg.
Referenced by Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), and Dyninst::SymtabAPI::Symtab::Symtab().
std::string errMsg [static] |
Definition at line 71 of file Symtab.C.
Referenced by Dyninst::SymtabAPI::emitElf::createSymbolTables(), Dyninst::SymtabAPI::emitElf64::createSymbolTables(), DebuggerInterface::BG_Debugger_Msg::generateErrorPacket(), Dyninst::SymtabAPI::Symtab::printError(), and symtab_log_perror().
const int Symtab_maintenance_version = 2 [static] |
Definition at line 76 of file Symtab.C.
Referenced by Dyninst::SymtabAPI::Symtab::version().
const int Symtab_major_version = 8 [static] |
Definition at line 74 of file Symtab.C.
Referenced by Dyninst::SymtabAPI::Symtab::version().
const int Symtab_minor_version = 1 [static] |
Definition at line 75 of file Symtab.C.
Referenced by Dyninst::SymtabAPI::Symtab::version().
1.6.1