Pin
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions | Variables
debug_elf.cpp File Reference
#include "level_base.H"
#include "level_core.H"
#include "level_imgio.H"
#include "level_vmclient.H"
#include "level_pinclient.H"
#include "libelf/libelf.h"
#include "dwarf.h"
#include "libdwarf.h"
#include "my_unistd.H"
#include <list>
#include <map>
#include <iostream>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Functions

LOCALVAR KNOB_COMMENT LEVEL_PINCLIENT::KnobLineFamily ("pintool:line","Line information controls")
 
LOCALVAR KNOB< BOOL > LEVEL_PINCLIENT::KnobDiscardLineInfoAll (KNOB_MODE_WRITEONCE,"pintool:line","discard_line_info_all","0","Discard line information for all modules.")
 
LOCALVAR KNOB< string > LEVEL_PINCLIENT::KnobDiscardLineInfoForModule (KNOB_MODE_APPEND,"pintool:line","discard_line_info","", string("Discard line information for specific module. ")+string("Module name should be a short name without path, ")+string("not a symbolic link"))
 
LOCALVAR KNOB< string > LEVEL_PINCLIENT::KnobUseFileForDebug (KNOB_MODE_APPEND,"pintool:line","dwarf_file","", string("Point pin to a different file for debug information. ")+string("Syntax: app_executable:<path_to_different_file")+string("Exaple (OS X): -dwarf_file get_source_app:get_source_app.dSYM/Contents/Resources/DWARF/get_source_app"))
 
LOCALFUN IMGLINES * LEVEL_PINCLIENT::ReadLineNumberTables (IMG)
 
LOCALFUN IMGLINES * LEVEL_PINCLIENT::Find (ADDRINT addr)
 
void LEVEL_PINCLIENT::FreeLineNumberTables (IMG img)
 
PIN_DEPRECATED_API VOID LEVEL_PINCLIENT::PIN_FindLineFileByAddress (ADDRINT address, INT32 *line, const CHAR **file)
 
PIN_DEPRECATED_API VOID LEVEL_PINCLIENT::PIN_FindColumnLineFileByAddress (ADDRINT address, INT32 *column, INT32 *line, const CHAR **file)
 
LOCALFUN VOID LEVEL_PINCLIENT::DwarfHandler (Dwarf_Error err, Dwarf_Ptr errarg)
 

Variables

LOCALTYPE typedef map< ADDRINT,
LINETABLEENTRY > 
LEVEL_PINCLIENT::LINETABLE
 
LOCALCONST INT32 LEVEL_PINCLIENT::END_OF_TEXT_SEQ_FLAG =0x80000000
 
LOCALVAR STRINGTABLE LEVEL_PINCLIENT::fileTable
 
LOCALVAR map< ADDRINT, IMGLINES * > LEVEL_PINCLIENT::Imglines
 

Detailed Description

PIN supports DWARF debugging information