GDB (xrefs)
Classes | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/symfile.h File Reference
#include "symtab.h"
#include "probe.h"

Go to the source code of this file.

Classes

struct  psymbol_allocation_list
struct  section_addr_info
struct  section_addr_info::other_sections
struct  symfile_segment_data
struct  quick_symbol_functions
struct  sym_probe_fns
struct  sym_fns
struct  dwarf2_section_names
struct  dwarf2_debug_sections

Typedefs

typedef intsymbol_compare_ftype )(const char *string1, const char *string2)
typedef void( symbol_filename_ftype )(const char *filename, const char *fullname, void *data)

Enumerations

enum  symfile_add_flags { SYMFILE_VERBOSE = 1 << 1, SYMFILE_MAINLINE = 1 << 2, SYMFILE_DEFER_BP_RESET = 1 << 3, SYMFILE_NO_READ = 1 << 4 }
enum  overlay_debugging_state { ovly_off, ovly_on, ovly_auto }
enum  dwarf2_section_enum { DWARF2_DEBUG_FRAME, DWARF2_EH_FRAME }

Functions

struct section_addr_infobuild_section_addr_info_from_objfile (const struct objfile *objfile)
void relative_addr_info_to_section_offsets (struct section_offsets *section_offsets, int num_sections, const struct section_addr_info *addrs)
void addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
void default_symfile_offsets (struct objfile *objfile, const struct section_addr_info *)
struct symfile_segment_datadefault_symfile_segments (bfd *abfd)
bfd_byte * default_symfile_relocate (struct objfile *objfile, asection *sectp, bfd_byte *buf)
struct symtaballocate_symtab (const char *, struct objfile *) ATTRIBUTE_NONNULL(1)
void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *)
void new_symfile_objfile (struct objfile *, int)
struct objfilesymbol_file_add (const char *, int, struct section_addr_info *, int)
struct objfilesymbol_file_add_from_bfd (bfd *, const char *, int, struct section_addr_info *, int, struct objfile *parent)
void symbol_file_add_separate (bfd *, const char *, int, struct objfile *)
char * find_separate_debug_file_by_debuglink (struct objfile *)
struct section_addr_infoalloc_section_addr_info (size_t num_sections)
struct section_addr_infobuild_section_addr_info_from_section_table (const struct target_section *start, const struct target_section *end)
void free_section_addr_info (struct section_addr_info *)
void set_initial_language (void)
void find_lowest_section (bfd *, asection *, void *)
bfd * symfile_bfd_open (const char *)
bfd * gdb_bfd_open_maybe_remote (const char *)
int get_section_index (struct objfile *, char *)
struct obj_sectionfind_pc_mapped_section (CORE_ADDR)
struct obj_sectionfind_pc_overlay (CORE_ADDR)
int section_is_overlay (struct obj_section *)
int section_is_mapped (struct obj_section *)
CORE_ADDR pc_in_mapped_range (CORE_ADDR, struct obj_section *)
CORE_ADDR pc_in_unmapped_range (CORE_ADDR, struct obj_section *)
CORE_ADDR overlay_mapped_address (CORE_ADDR, struct obj_section *)
CORE_ADDR overlay_unmapped_address (CORE_ADDR, struct obj_section *)
CORE_ADDR symbol_overlayed_address (CORE_ADDR, struct obj_section *)
void symbol_file_add_main (const char *args, int from_tty)
void symbol_file_clear (int from_tty)
void simple_overlay_update (struct obj_section *)
bfd_byte * symfile_relocate_debug_section (struct objfile *, asection *, bfd_byte *)
int symfile_map_offsets_to_segments (bfd *, const struct symfile_segment_data *, struct section_offsets *, int, const CORE_ADDR *)
struct symfile_segment_dataget_symfile_segment_data (bfd *abfd)
void free_symfile_segment_data (struct symfile_segment_data *data)
struct cleanupincrement_reading_symtab (void)
int dwarf2_has_info (struct objfile *, const struct dwarf2_debug_sections *)
void dwarf2_get_section_info (struct objfile *, enum dwarf2_section_enum, asection **, const gdb_byte **, bfd_size_type *)
int dwarf2_initialize_objfile (struct objfile *)
void dwarf2_build_psymtabs (struct objfile *)
void dwarf2_build_frame_info (struct objfile *)
void dwarf2_free_objfile (struct objfile *)
void mdebug_build_psymtabs (struct objfile *, const struct ecoff_debug_swap *, struct ecoff_debug_info *)
void elfmdebug_build_psymtabs (struct objfile *, const struct ecoff_debug_swap *, asection *)
bfd * find_separate_debug_file_in_section (struct objfile *)

Variables

int auto_solib_add
enum overlay_debugging_state overlay_debugging
int overlay_cache_invalid

Typedef Documentation

typedef int( symbol_compare_ftype)(const char *string1, const char *string2)

Definition at line 41 of file symfile.h.

typedef void( symbol_filename_ftype)(const char *filename, const char *fullname, void *data)

Definition at line 125 of file symfile.h.


Enumeration Type Documentation

Enumerator:
DWARF2_DEBUG_FRAME 
DWARF2_EH_FRAME 

Definition at line 636 of file symfile.h.

Enumerator:
ovly_off 
ovly_on 
ovly_auto 

Definition at line 534 of file symfile.h.

Enumerator:
SYMFILE_VERBOSE 
SYMFILE_MAINLINE 
SYMFILE_DEFER_BP_RESET 
SYMFILE_NO_READ 

Definition at line 456 of file symfile.h.


Function Documentation

void add_symtab_fns ( enum bfd_flavour  flavour,
const struct sym_fns  
)

Definition at line 1764 of file symfile.c.

References VEC_safe_push.

Referenced by _initialize_machoread(), _initialize_somread(), and _initialize_xcoffread().

void addr_info_make_relative ( struct section_addr_info addrs,
bfd *  abfd 
)
struct section_addr_info* alloc_section_addr_info ( size_t  num_sections) [read]
struct symtab* allocate_symtab ( const char *  ,
struct objfile  
) [read]
void default_symfile_offsets ( struct objfile objfile,
const struct section_addr_info  
)
bfd_byte* default_symfile_relocate ( struct objfile objfile,
asection *  sectp,
bfd_byte *  buf 
)

Definition at line 3584 of file symfile.c.

References symfile_dummy_outputs().

struct symfile_segment_data* default_symfile_segments ( bfd *  abfd) [read]
void dwarf2_build_frame_info ( struct objfile )
void dwarf2_build_psymtabs ( struct objfile )
void dwarf2_free_objfile ( struct objfile )
void dwarf2_get_section_info ( struct objfile ,
enum  dwarf2_section_enum,
asection **  ,
const gdb_byte **  ,
bfd_size_type *   
)
int dwarf2_has_info ( struct objfile ,
const struct dwarf2_debug_sections  
)
void elfmdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
asection *   
)
void find_lowest_section ( bfd *  ,
asection *  ,
void *   
)

Definition at line 191 of file symfile.c.

Referenced by addr_info_make_relative().

struct obj_section* find_pc_overlay ( CORE_ADDR  ) [read]

Definition at line 259 of file minidebug.c.

References _, gdb_bfd_openr_iovec(), gdb_bfd_unref(), gnutarget, objfile::obfd, objfile_name(), and warning().

Referenced by read_symbols().

bfd* gdb_bfd_open_maybe_remote ( const char *  )
int get_section_index ( struct objfile ,
char *   
)

Definition at line 1747 of file symfile.c.

References objfile::obfd.

Referenced by parse_partial_symbols(), and record_minimal_symbol().

struct symfile_segment_data* get_symfile_segment_data ( bfd *  abfd) [read]
struct cleanup* increment_reading_symtab ( void  ) [read]
void mdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
struct ecoff_debug_info *   
)
void new_symfile_objfile ( struct objfile ,
int   
)
void relative_addr_info_to_section_offsets ( struct section_offsets section_offsets,
int  num_sections,
const struct section_addr_info addrs 
)
void set_initial_language ( void  )
void simple_overlay_update ( struct obj_section )
struct objfile* symbol_file_add ( const char *  ,
int  ,
struct section_addr_info ,
int   
) [read]
struct objfile* symbol_file_add_from_bfd ( bfd *  ,
const char *  ,
int  ,
struct section_addr_info ,
int  ,
struct objfile parent 
) [read]
void symbol_file_add_main ( const char *  args,
int  from_tty 
)
void symbol_file_add_separate ( bfd *  ,
const char *  ,
int  ,
struct objfile  
)
void symbol_file_clear ( int  from_tty)

Definition at line 3101 of file symfile.c.

bfd* symfile_bfd_open ( const char *  )
bfd_byte* symfile_relocate_debug_section ( struct objfile ,
asection *  ,
bfd_byte *   
)

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines