op_bfd_symbol Class Reference

#include <op_bfd.h>

Public Member Functions

 op_bfd_symbol (asymbol const *a)
 ctor for real symbols
 op_bfd_symbol (bfd_vma vma, size_t size, std::string const &name)
 ctor for artificial symbols
bfd_vma vma () const
unsigned long value () const
unsigned long filepos () const
unsigned long symbol_endpos (void) const
asection const * section (void) const
std::string const & name () const
asymbol const * symbol () const
size_t size () const
void size (size_t s)
bool hidden () const
bool weak () const
bool artificial () const
bool operator< (op_bfd_symbol const &lhs) const
 compare two symbols by their filepos()

Private Attributes

asymbol const * bfd_symbol
unsigned long symb_value
unsigned long section_filepos
 the section filepos for this symbol
bfd_vma section_vma
 the section vma for this symbol
size_t symb_size
 the size of this symbol
std::string symb_name
 the name of the symbol
bool symb_hidden
 normally not externally visible symbol
bool symb_weak
 whether other symbols can override it
bool symb_artificial
 symbol is artificially created
std::string symb_bytes
 code bytes corresponding to symbol -- used for XML generation

Detailed Description

A symbol description from a bfd point of view. This duplicate information pointed by an asymbol, we need this duplication in case the symbol is an artificial symbol

Definition at line 41 of file op_bfd.h.


Constructor & Destructor Documentation

op_bfd_symbol::op_bfd_symbol ( asymbol const *  a  ) 

ctor for real symbols

Definition at line 58 of file op_bfd.cpp.

References symb_hidden, symb_name, and symb_weak.

op_bfd_symbol::op_bfd_symbol ( bfd_vma  vma,
size_t  size,
std::string const &  name 
)

ctor for artificial symbols


Member Function Documentation

bool op_bfd_symbol::artificial (  )  const [inline]

Definition at line 61 of file op_bfd.h.

References symb_artificial.

Referenced by op_bfd::symbol_has_contents().

Here is the caller graph for this function:

unsigned long op_bfd_symbol::filepos (  )  const [inline]

Definition at line 52 of file op_bfd.h.

References section_filepos, and symb_value.

Referenced by find_nearest_line(), op_bfd::get_symbol_range(), operator<(), and op_bfd::symbol_size().

Here is the caller graph for this function:

bool op_bfd_symbol::hidden (  )  const [inline]

Definition at line 59 of file op_bfd.h.

References symb_hidden.

Referenced by boring_symbol().

Here is the caller graph for this function:

std::string const& op_bfd_symbol::name (  )  const [inline]

Definition at line 55 of file op_bfd.h.

References symb_name.

Referenced by boring_symbol(), find_nearest_line(), op_bfd::get_symbol_range(), and op_bfd::symbol_has_contents().

Here is the caller graph for this function:

bool op_bfd_symbol::operator< ( op_bfd_symbol const &  lhs  )  const

compare two symbols by their filepos()

Definition at line 89 of file op_bfd.cpp.

References filepos().

Here is the call graph for this function:

asection const* op_bfd_symbol::section ( void   )  const [inline]

Definition at line 54 of file op_bfd.h.

References bfd_symbol.

Referenced by op_bfd::symbol_size().

Here is the caller graph for this function:

void op_bfd_symbol::size ( size_t  s  )  [inline]

Definition at line 58 of file op_bfd.h.

References symb_size.

size_t op_bfd_symbol::size (  )  const [inline]

Definition at line 57 of file op_bfd.h.

References symb_size.

Referenced by op_bfd::get_symbol_contents(), op_bfd::get_symbol_range(), op_bfd::get_symbols(), and op_bfd::get_vma_range().

Here is the caller graph for this function:

asymbol const* op_bfd_symbol::symbol (  )  const [inline]

Definition at line 56 of file op_bfd.h.

References bfd_symbol.

Referenced by find_nearest_line(), op_bfd::get_symbol_contents(), and op_bfd::get_symbol_range().

Here is the caller graph for this function:

unsigned long op_bfd_symbol::symbol_endpos ( void   )  const

Definition at line 94 of file op_bfd.cpp.

References bfd_symbol.

Referenced by op_bfd::symbol_size().

Here is the caller graph for this function:

unsigned long op_bfd_symbol::value (  )  const [inline]

Definition at line 51 of file op_bfd.h.

References symb_value.

Referenced by find_nearest_line(), op_bfd::get_symbol_contents(), and op_bfd::get_symbol_range().

Here is the caller graph for this function:

bfd_vma op_bfd_symbol::vma (  )  const [inline]

Definition at line 50 of file op_bfd.h.

References section_vma, and symb_value.

Referenced by op_bfd::get_symbol_range(), and op_bfd::get_vma_range().

Here is the caller graph for this function:

bool op_bfd_symbol::weak (  )  const [inline]

Definition at line 60 of file op_bfd.h.

References symb_weak.

Referenced by boring_symbol().

Here is the caller graph for this function:


Field Documentation

asymbol const* op_bfd_symbol::bfd_symbol [private]

the original bfd symbol, this can be null if the symbol is an artificial symbol

Definition at line 69 of file op_bfd.h.

Referenced by section(), symbol(), and symbol_endpos().

unsigned long op_bfd_symbol::section_filepos [private]

the section filepos for this symbol

Definition at line 74 of file op_bfd.h.

Referenced by filepos().

bfd_vma op_bfd_symbol::section_vma [private]

the section vma for this symbol

Definition at line 76 of file op_bfd.h.

Referenced by vma().

symbol is artificially created

Definition at line 86 of file op_bfd.h.

Referenced by artificial().

std::string op_bfd_symbol::symb_bytes [private]

code bytes corresponding to symbol -- used for XML generation

Definition at line 88 of file op_bfd.h.

normally not externally visible symbol

Definition at line 82 of file op_bfd.h.

Referenced by hidden(), and op_bfd_symbol().

std::string op_bfd_symbol::symb_name [private]

the name of the symbol

Definition at line 80 of file op_bfd.h.

Referenced by name(), and op_bfd_symbol().

size_t op_bfd_symbol::symb_size [private]

the size of this symbol

Definition at line 78 of file op_bfd.h.

Referenced by size().

unsigned long op_bfd_symbol::symb_value [private]

the offset of this symbol relative to the begin of the section's symbol

Definition at line 72 of file op_bfd.h.

Referenced by filepos(), value(), and vma().

bool op_bfd_symbol::symb_weak [private]

whether other symbols can override it

Definition at line 84 of file op_bfd.h.

Referenced by op_bfd_symbol(), and weak().


The documentation for this class was generated from the following files:

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1