holder for BFD state we must keep More...
#include <bfd_support.h>

Public Member Functions | |
| bfd_info () | |
| ~bfd_info () | |
| void | close () |
| close the BFD, setting abfd to NULL | |
| bool | valid () const |
| return true if BFD is readable | |
| bool | has_debug_info () const |
| return true if BFD has debug info | |
| void | get_symbols () |
| pick out the symbols from the bfd, if we can | |
| void | set_image_bfd_info (bfd_info *ibfd) |
| bfd_info * | get_image_bfd_info (void) const |
Data Fields | |
| bfd * | abfd |
| the actual BFD | |
| scoped_array< asymbol * > | syms |
| normal symbols (includes synthesized symbols) | |
| size_t | nr_syms |
| nr. symbols | |
Private Member Functions | |
| bool | get_synth_symbols () |
Private Attributes | |
| asymbol * | synth_syms |
| bfd_info * | image_bfd_info |
holder for BFD state we must keep
Definition at line 28 of file bfd_support.h.
| bfd_info::bfd_info | ( | ) | [inline] |
Definition at line 29 of file bfd_support.h.
| bfd_info::~bfd_info | ( | ) |
Definition at line 424 of file bfd_support.cpp.
References close(), and synth_syms.

| void bfd_info::close | ( | ) |
close the BFD, setting abfd to NULL
Definition at line 431 of file bfd_support.cpp.
Referenced by ~bfd_info().

| bfd_info* bfd_info::get_image_bfd_info | ( | void | ) | const [inline] |
Definition at line 53 of file bfd_support.h.
References image_bfd_info.
Referenced by find_nearest_line().

| void bfd_info::get_symbols | ( | ) |
pick out the symbols from the bfd, if we can
Definition at line 598 of file bfd_support.cpp.
References cverb, get_synth_symbols(), image_bfd_info, and nr_syms.
Referenced by op_bfd::get_symbols().


| bool bfd_info::get_synth_symbols | ( | ) | [private] |
Acquire the synthetic symbols if we need to.
Definition at line 591 of file bfd_support.cpp.
Referenced by get_symbols().

| bool bfd_info::has_debug_info | ( | ) | const |
return true if BFD has debug info
Definition at line 410 of file bfd_support.cpp.
References valid().
Referenced by op_bfd::has_debug_info().


| void bfd_info::set_image_bfd_info | ( | bfd_info * | ibfd | ) | [inline] |
Definition at line 52 of file bfd_support.h.
References image_bfd_info.
Referenced by op_bfd::get_symbols().

| bool bfd_info::valid | ( | ) | const [inline] |
return true if BFD is readable
Definition at line 37 of file bfd_support.h.
References abfd.
Referenced by op_bfd::bfd_arch_bits_per_address(), find_nearest_line(), op_bfd::get_start_offset(), op_bfd::get_symbols(), op_bfd::has_debug_info(), has_debug_info(), op_bfd::symbol_has_contents(), and op_bfd::valid().

| bfd* bfd_info::abfd |
the actual BFD
Definition at line 46 of file bfd_support.h.
Referenced by op_bfd::bfd_arch_bits_per_address(), find_nearest_line(), op_bfd::get_symbol_contents(), op_bfd::get_symbols(), op_bfd::has_debug_info(), op_bfd::offset_to_pc(), and valid().
bfd_info* bfd_info::image_bfd_info [private] |
Under certain circumstances, correct handling of the bfd for a debuginfo file is not possible without access to the bfd for the actual image file. The image_bfd_info field provides access to that bfd when this bfd_info is for a debuginfo file; otherwise image_bfd_info is NULL.
Definition at line 76 of file bfd_support.h.
Referenced by get_image_bfd_info(), get_symbols(), and set_image_bfd_info().
| size_t bfd_info::nr_syms |
nr. symbols
Definition at line 50 of file bfd_support.h.
Referenced by op_bfd::get_symbols(), and get_symbols().
| scoped_array<asymbol *> bfd_info::syms |
normal symbols (includes synthesized symbols)
Definition at line 48 of file bfd_support.h.
Referenced by find_nearest_line(), and op_bfd::get_symbols().
asymbol* bfd_info::synth_syms [private] |
On PPC64, synth_syms points to an array of synthetic asymbol structs returned from bfd_get_synthetic_symtab. The syms member points into this array, so we have to keep it around until ~bfd_info time.
Definition at line 67 of file bfd_support.h.
Referenced by ~bfd_info().
1.6.1