GDB (xrefs)
Classes | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/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  other_sections
 
struct  section_addr_info
 
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)
 
typedef intexpand_symtabs_file_matcher_ftype) (const char *filename, void *data, int basenames)
 
typedef intexpand_symtabs_symbol_matcher_ftype) (const char *name, void *data)
 
typedef void( expand_symtabs_exp_notify_ftype) (struct compunit_symtab *symtab, 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 (struct compunit_symtab *, const char *) ATTRIBUTE_NONNULL(1)
 
struct compunit_symtaballocate_compunit_symtab (struct objfile *, const char *) ATTRIBUTE_NONNULL(1)
 
void add_compunit_symtab_to_objfile (struct compunit_symtab *cu)
 
void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *)
 
void clear_symtab_users (int add_flags)
 
enum language deduce_language_from_filename (const char *)
 
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 *)
 
int get_section_index (struct objfile *, char *)
 
int print_symbol_loading_p (int from_tty, int mainline, int full)
 
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)
 
void expand_symtabs_matching (expand_symtabs_file_matcher_ftype *, expand_symtabs_symbol_matcher_ftype *, expand_symtabs_exp_notify_ftype *, enum search_domain kind, void *data)
 
void map_symbol_filenames (symbol_filename_ftype *fun, void *data, int need_fullname)
 
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 void( expand_symtabs_exp_notify_ftype) (struct compunit_symtab *symtab, void *data)

Definition at line 146 of file symfile.h.

typedef int( expand_symtabs_file_matcher_ftype) (const char *filename, void *data, int basenames)

Definition at line 133 of file symfile.h.

typedef int( expand_symtabs_symbol_matcher_ftype) (const char *name, void *data)

Definition at line 139 of file symfile.h.

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 127 of file symfile.h.

Enumeration Type Documentation

Enumerator
DWARF2_DEBUG_FRAME 
DWARF2_EH_FRAME 

Definition at line 632 of file symfile.h.

Enumerator
ovly_off 
ovly_on 
ovly_auto 

Definition at line 522 of file symfile.h.

Enumerator
SYMFILE_VERBOSE 
SYMFILE_MAINLINE 
SYMFILE_DEFER_BP_RESET 
SYMFILE_NO_READ 

Definition at line 446 of file symfile.h.

Function Documentation

void add_compunit_symtab_to_objfile ( struct compunit_symtab cu)
void add_symtab_fns ( enum bfd_flavour  flavour,
const struct sym_fns  
)
void addr_info_make_relative ( struct section_addr_info addrs,
bfd *  abfd 
)
struct section_addr_info* alloc_section_addr_info ( size_t  num_sections)
struct compunit_symtab* allocate_compunit_symtab ( struct objfile ,
const char *   
)
struct symtab* allocate_symtab ( struct compunit_symtab ,
const char *   
)
struct section_addr_info* build_section_addr_info_from_objfile ( const struct objfile objfile)
struct section_addr_info* build_section_addr_info_from_section_table ( const struct target_section start,
const struct target_section end 
)
void clear_symtab_users ( int  add_flags)
enum language deduce_language_from_filename ( const char *  )
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 3740 of file symfile.c.

References symfile_dummy_outputs().

struct symfile_segment_data* default_symfile_segments ( bfd *  abfd)
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  
)
int dwarf2_initialize_objfile ( struct objfile )
void elfmdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
asection *   
)
void expand_symtabs_matching ( expand_symtabs_file_matcher_ftype ,
expand_symtabs_symbol_matcher_ftype ,
expand_symtabs_exp_notify_ftype ,
enum search_domain  kind,
void *  data 
)
void find_lowest_section ( bfd *  ,
asection *  ,
void *   
)

Definition at line 228 of file symfile.c.

Referenced by addr_info_make_relative().

struct obj_section* find_pc_mapped_section ( CORE_ADDR  )
struct obj_section* find_pc_overlay ( CORE_ADDR  )
char* find_separate_debug_file_by_debuglink ( struct objfile )
bfd* find_separate_debug_file_in_section ( struct objfile )
void free_section_addr_info ( struct section_addr_info )
void free_symfile_segment_data ( struct symfile_segment_data data)
int get_section_index ( struct objfile ,
char *   
)

Definition at line 1783 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)
struct cleanup* increment_reading_symtab ( void  )
void map_symbol_filenames ( symbol_filename_ftype fun,
void *  data,
int  need_fullname 
)
void mdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
struct ecoff_debug_info *   
)
CORE_ADDR overlay_mapped_address ( CORE_ADDR  ,
struct obj_section  
)
CORE_ADDR overlay_unmapped_address ( CORE_ADDR  ,
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  
)
int print_symbol_loading_p ( int  from_tty,
int  mainline,
int  full 
)

Definition at line 180 of file symfile.c.

References info_verbose, and print_symbol_loading.

Referenced by reload_shared_libraries_1(), solib_add(), and symbol_file_add_with_addrs().

void relative_addr_info_to_section_offsets ( struct section_offsets section_offsets,
int  num_sections,
const struct section_addr_info addrs 
)
int section_is_mapped ( struct obj_section )
int section_is_overlay ( struct obj_section )
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   
)
struct objfile* symbol_file_add_from_bfd ( bfd *  ,
const char *  ,
int  ,
struct section_addr_info ,
int  ,
struct objfile parent 
)
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)
CORE_ADDR symbol_overlayed_address ( CORE_ADDR  ,
struct obj_section  
)

Definition at line 3257 of file symfile.c.

bfd* symfile_bfd_open ( const char *  )
int symfile_map_offsets_to_segments ( bfd *  ,
const struct symfile_segment_data ,
struct section_offsets ,
int  ,
const CORE_ADDR  
)
bfd_byte* symfile_relocate_debug_section ( struct objfile ,
asection *  ,
bfd_byte *   
)

Variable Documentation

int auto_solib_add
int overlay_cache_invalid
enum overlay_debugging_state overlay_debugging