bfd_info Struct Reference

holder for BFD state we must keep More...

#include <bfd_support.h>

Collaboration diagram for bfd_info:
Collaboration graph
[legend]

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_infoget_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_infoimage_bfd_info

Detailed Description

holder for BFD state we must keep

Definition at line 28 of file bfd_support.h.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:


Member Function Documentation

void bfd_info::close (  ) 

close the BFD, setting abfd to NULL

Definition at line 431 of file bfd_support.cpp.

Referenced by ~bfd_info().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Field Documentation

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().

nr. symbols

Definition at line 50 of file bfd_support.h.

Referenced by op_bfd::get_symbols(), and get_symbols().

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().


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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1