#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 |
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.
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
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().
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().
bool op_bfd_symbol::hidden | ( | ) | const [inline] |
Definition at line 59 of file op_bfd.h.
References symb_hidden.
Referenced by boring_symbol().
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().
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().
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().
void op_bfd_symbol::size | ( | size_t | s | ) | [inline] |
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().
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().
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().
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().
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().
bool op_bfd_symbol::weak | ( | ) | const [inline] |
Definition at line 60 of file op_bfd.h.
References symb_weak.
Referenced by boring_symbol().
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] |
bfd_vma op_bfd_symbol::section_vma [private] |
bool op_bfd_symbol::symb_artificial [private] |
std::string op_bfd_symbol::symb_bytes [private] |
bool op_bfd_symbol::symb_hidden [private] |
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] |
unsigned long op_bfd_symbol::symb_value [private] |
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().