GDB (API)
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 cleanup * increment_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.

void addr_info_make_relative ( struct section_addr_info addrs,
bfd *  abfd 
)

Definition at line 536 of file symfile.c.

struct section_addr_info* alloc_section_addr_info ( size_t  num_sections) [read]

Definition at line 212 of file symfile.c.

struct symtab* allocate_symtab ( const char *  ,
struct objfile  
) [read]

Definition at line 2795 of file symfile.c.

Definition at line 285 of file symfile.c.

Definition at line 229 of file symfile.c.

void default_symfile_offsets ( struct objfile objfile,
const struct section_addr_info  
)

Definition at line 685 of file symfile.c.

bfd_byte* default_symfile_relocate ( struct objfile objfile,
asection *  sectp,
bfd_byte *  buf 
)

Definition at line 3584 of file symfile.c.

struct symfile_segment_data* default_symfile_segments ( bfd *  abfd) [read]

Definition at line 775 of file symfile.c.

void dwarf2_build_frame_info ( struct objfile )

Definition at line 2248 of file dwarf2-frame.c.

void dwarf2_build_psymtabs ( struct objfile )

Definition at line 4112 of file dwarf2read.c.

void dwarf2_free_objfile ( struct objfile )

Definition at line 21107 of file dwarf2read.c.

void dwarf2_get_section_info ( struct objfile ,
enum  dwarf2_section_enum,
asection **  ,
const gdb_byte **  ,
bfd_size_type *   
)

Definition at line 2278 of file dwarf2read.c.

int dwarf2_has_info ( struct objfile ,
const struct dwarf2_debug_sections  
)

Definition at line 1948 of file dwarf2read.c.

Definition at line 4070 of file dwarf2read.c.

void elfmdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
asection *   
)

Definition at line 4889 of file mdebugread.c.

void find_lowest_section ( bfd *  ,
asection *  ,
void *   
)

Definition at line 191 of file symfile.c.

Definition at line 3158 of file symfile.c.

struct obj_section* find_pc_overlay ( CORE_ADDR  ) [read]

Definition at line 3131 of file symfile.c.

Definition at line 1500 of file symfile.c.

Definition at line 259 of file minidebug.c.

Definition at line 306 of file symfile.c.

Definition at line 3638 of file symfile.c.

bfd* gdb_bfd_open_maybe_remote ( const char *  )

Definition at line 1658 of file symfile.c.

int get_section_index ( struct objfile ,
char *   
)

Definition at line 1747 of file symfile.c.

struct symfile_segment_data* get_symfile_segment_data ( bfd *  abfd) [read]

Definition at line 3627 of file symfile.c.

struct cleanup* increment_reading_symtab ( void  ) [read]

Definition at line 174 of file symfile.c.

void mdebug_build_psymtabs ( struct objfile ,
const struct ecoff_debug_swap *  ,
struct ecoff_debug_info *   
)

Definition at line 341 of file mdebugread.c.

void new_symfile_objfile ( struct objfile ,
int   
)

Definition at line 1038 of file symfile.c.

Definition at line 3082 of file symfile.c.

Definition at line 3063 of file symfile.c.

Definition at line 3032 of file symfile.c.

Definition at line 3009 of file symfile.c.

void relative_addr_info_to_section_offsets ( struct section_offsets section_offsets,
int  num_sections,
const struct section_addr_info addrs 
)

Definition at line 453 of file symfile.c.

Definition at line 2973 of file symfile.c.

Definition at line 2933 of file symfile.c.

void set_initial_language ( void  )

Definition at line 1628 of file symfile.c.

void simple_overlay_update ( struct obj_section )

Definition at line 3515 of file symfile.c.

struct objfile* symbol_file_add ( const char *  ,
int  ,
struct section_addr_info ,
int   
) [read]

Definition at line 1223 of file symfile.c.

struct objfile* symbol_file_add_from_bfd ( bfd *  ,
const char *  ,
int  ,
struct section_addr_info ,
int  ,
struct objfile parent 
) [read]

Definition at line 1211 of file symfile.c.

void symbol_file_add_main ( const char *  args,
int  from_tty 
)

Definition at line 1244 of file symfile.c.

void symbol_file_add_separate ( bfd *  ,
const char *  ,
int  ,
struct objfile  
)

Definition at line 1184 of file symfile.c.

void symbol_file_clear ( int  from_tty)

Definition at line 1266 of file symfile.c.

Definition at line 3101 of file symfile.c.

bfd* symfile_bfd_open ( const char *  )

Definition at line 1676 of file symfile.c.

Definition at line 3662 of file symfile.c.

bfd_byte* symfile_relocate_debug_section ( struct objfile ,
asection *  ,
bfd_byte *   
)

Definition at line 3618 of file symfile.c.


Variable Documentation

Definition at line 2926 of file symfile.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines