GDB (xrefs)
Classes | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/symfile.h File Reference
#include "symtab.h"
#include "probe.h"
#include "symfile-add-flags.h"
#include "objfile-flags.h"
#include "gdb_bfd.h"
#include "common/function-view.h"

Go to the source code of this file.

Classes

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 int() symbol_compare_ftype(const char *string1, const char *string2)
 
typedef void() symbol_filename_ftype(const char *filename, const char *fullname, void *data)
 
typedef bool() expand_symtabs_file_matcher_ftype(const char *filename, bool basenames)
 
typedef bool() expand_symtabs_symbol_matcher_ftype(const char *name)
 
typedef void() expand_symtabs_exp_notify_ftype(compunit_symtab *symtab)
 

Enumerations

enum  overlay_debugging_state { ovly_off, ovly_on, ovly_auto }
 
enum  dwarf2_section_enum { DWARF2_DEBUG_FRAME, DWARF2_EH_FRAME }
 
enum  dw_index_kind { dw_index_kind::GDB_INDEX, dw_index_kind::DEBUG_NAMES }
 

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 (symfile_add_flags add_flags)
 
enum language deduce_language_from_filename (const char *)
 
void add_filename_language (const char *ext, enum language lang)
 
struct objfilesymbol_file_add (const char *, symfile_add_flags, struct section_addr_info *, objfile_flags)
 
struct objfilesymbol_file_add_from_bfd (bfd *, const char *, symfile_add_flags, struct section_addr_info *, objfile_flags, struct objfile *parent)
 
void symbol_file_add_separate (bfd *, const char *, symfile_add_flags, 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 *)
 
gdb_bfd_ref_ptr symfile_bfd_open (const char *)
 
int get_section_index (struct objfile *, const 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, symfile_add_flags add_flags)
 
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)
 
scoped_restore_tmpl< int > increment_reading_symtab (void)
 
void expand_symtabs_matching (gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, const lookup_name_info &lookup_name, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify, enum search_domain kind)
 
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 *)
 
bool dwarf2_initialize_objfile (struct objfile *objfile, dw_index_kind *index_kind)
 
void dwarf2_build_psymtabs (struct objfile *)
 
void dwarf2_build_frame_info (struct objfile *)
 
void dwarf2_free_objfile (struct objfile *)
 
void mdebug_build_psymtabs (minimal_symbol_reader &, struct objfile *, const struct ecoff_debug_swap *, struct ecoff_debug_info *)
 
void elfmdebug_build_psymtabs (struct objfile *, const struct ecoff_debug_swap *, asection *)
 
gdb_bfd_ref_ptr find_separate_debug_file_in_section (struct objfile *)
 

Variables

int auto_solib_add
 
enum overlay_debugging_state overlay_debugging
 
int overlay_cache_invalid
 
int separate_debug_file_debug
 

Typedef Documentation

◆ expand_symtabs_exp_notify_ftype

typedef void() expand_symtabs_exp_notify_ftype(compunit_symtab *symtab)

Definition at line 117 of file symfile.h.

◆ expand_symtabs_file_matcher_ftype

typedef bool() expand_symtabs_file_matcher_ftype(const char *filename, bool basenames)

Definition at line 106 of file symfile.h.

◆ expand_symtabs_symbol_matcher_ftype

typedef bool() expand_symtabs_symbol_matcher_ftype(const char *name)

Definition at line 112 of file symfile.h.

◆ symbol_compare_ftype

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

Definition at line 45 of file symfile.h.

◆ symbol_filename_ftype

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

Definition at line 100 of file symfile.h.

Enumeration Type Documentation

◆ dw_index_kind

enum dw_index_kind
strong
Enumerator
GDB_INDEX 
DEBUG_NAMES 

Definition at line 607 of file symfile.h.

◆ dwarf2_section_enum

Enumerator
DWARF2_DEBUG_FRAME 
DWARF2_EH_FRAME 

Definition at line 596 of file symfile.h.

◆ overlay_debugging_state

Enumerator
ovly_off 
ovly_on 
ovly_auto 

Definition at line 478 of file symfile.h.

Function Documentation

◆ add_compunit_symtab_to_objfile()

void add_compunit_symtab_to_objfile ( struct compunit_symtab cu)

◆ add_filename_language()

void add_filename_language ( const char *  ext,
enum language  lang 
)

Definition at line 2680 of file symfile.c.

References filename_language_table.

Referenced by add_set_language_command(), and set_ext_lang_command().

◆ add_symtab_fns()

void add_symtab_fns ( enum bfd_flavour  flavour,
const struct sym_fns  
)

◆ addr_info_make_relative()

void addr_info_make_relative ( struct section_addr_info addrs,
bfd *  abfd 
)

◆ alloc_section_addr_info()

struct section_addr_info* alloc_section_addr_info ( size_t  num_sections)

◆ allocate_compunit_symtab()

struct compunit_symtab* allocate_compunit_symtab ( struct objfile ,
const char *   
)

◆ allocate_symtab()

struct symtab* allocate_symtab ( struct compunit_symtab ,
const char *   
)

◆ build_section_addr_info_from_objfile()

struct section_addr_info* build_section_addr_info_from_objfile ( const struct objfile objfile)

◆ build_section_addr_info_from_section_table()

struct section_addr_info* build_section_addr_info_from_section_table ( const struct target_section start,
const struct target_section end 
)

◆ clear_symtab_users()

void clear_symtab_users ( symfile_add_flags  add_flags)

◆ deduce_language_from_filename()

enum language deduce_language_from_filename ( const char *  )

◆ default_symfile_offsets()

void default_symfile_offsets ( struct objfile objfile,
const struct section_addr_info  
)

◆ default_symfile_relocate()

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

Definition at line 3625 of file symfile.c.

References symfile_dummy_outputs().

◆ default_symfile_segments()

struct symfile_segment_data* default_symfile_segments ( bfd *  abfd)

◆ dwarf2_build_frame_info()

void dwarf2_build_frame_info ( struct objfile )

◆ dwarf2_build_psymtabs()

void dwarf2_build_psymtabs ( struct objfile )

◆ dwarf2_free_objfile()

void dwarf2_free_objfile ( struct objfile )

◆ dwarf2_get_section_info()

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

◆ dwarf2_has_info()

int dwarf2_has_info ( struct objfile ,
const struct dwarf2_debug_sections  
)

◆ dwarf2_initialize_objfile()

bool dwarf2_initialize_objfile ( struct objfile objfile,
dw_index_kind index_kind 
)

◆ elfmdebug_build_psymtabs()

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

◆ expand_symtabs_matching()

void expand_symtabs_matching ( gdb::function_view< expand_symtabs_file_matcher_ftype file_matcher,
const lookup_name_info lookup_name,
gdb::function_view< expand_symtabs_symbol_matcher_ftype symbol_matcher,
gdb::function_view< expand_symtabs_exp_notify_ftype expansion_notify,
enum search_domain  kind 
)

◆ find_lowest_section()

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

Definition at line 202 of file symfile.c.

Referenced by addr_info_make_relative().

◆ find_pc_mapped_section()

struct obj_section* find_pc_mapped_section ( CORE_ADDR  )

◆ find_pc_overlay()

struct obj_section* find_pc_overlay ( CORE_ADDR  )

◆ find_separate_debug_file_by_debuglink()

char* find_separate_debug_file_by_debuglink ( struct objfile )

◆ find_separate_debug_file_in_section()

gdb_bfd_ref_ptr find_separate_debug_file_in_section ( struct objfile )

◆ free_section_addr_info()

void free_section_addr_info ( struct section_addr_info )

◆ free_symfile_segment_data()

void free_symfile_segment_data ( struct symfile_segment_data data)

◆ get_section_index()

int get_section_index ( struct objfile ,
const char *   
)

Definition at line 1773 of file symfile.c.

References objfile::obfd.

Referenced by parse_partial_symbols(), and record_minimal_symbol().

◆ get_symfile_segment_data()

struct symfile_segment_data* get_symfile_segment_data ( bfd *  abfd)

◆ increment_reading_symtab()

scoped_restore_tmpl<int> increment_reading_symtab ( void  )

Definition at line 185 of file symfile.c.

References currently_reading_symtab, gdb_assert, and make_scoped_restore().

Referenced by dw2_instantiate_symtab(), and psymtab_to_symtab().

◆ map_symbol_filenames()

void map_symbol_filenames ( symbol_filename_ftype fun,
void *  data,
int  need_fullname 
)

◆ mdebug_build_psymtabs()

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

◆ overlay_mapped_address()

CORE_ADDR overlay_mapped_address ( CORE_ADDR  ,
struct obj_section  
)

◆ overlay_unmapped_address()

CORE_ADDR overlay_unmapped_address ( CORE_ADDR  ,
struct obj_section  
)

◆ pc_in_mapped_range()

CORE_ADDR pc_in_mapped_range ( CORE_ADDR  ,
struct obj_section  
)

◆ pc_in_unmapped_range()

CORE_ADDR pc_in_unmapped_range ( CORE_ADDR  ,
struct obj_section  
)

◆ print_symbol_loading_p()

int print_symbol_loading_p ( int  from_tty,
int  mainline,
int  full 
)

◆ relative_addr_info_to_section_offsets()

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

◆ section_is_mapped()

int section_is_mapped ( struct obj_section )

◆ section_is_overlay()

int section_is_overlay ( struct obj_section )

◆ set_initial_language()

void set_initial_language ( void  )

◆ simple_overlay_update()

void simple_overlay_update ( struct obj_section )

◆ symbol_file_add()

struct objfile* symbol_file_add ( const char *  ,
symfile_add_flags  ,
struct section_addr_info ,
objfile_flags   
)

◆ symbol_file_add_from_bfd()

struct objfile* symbol_file_add_from_bfd ( bfd *  ,
const char *  ,
symfile_add_flags  ,
struct section_addr_info ,
objfile_flags  ,
struct objfile parent 
)

◆ symbol_file_add_main()

void symbol_file_add_main ( const char *  args,
symfile_add_flags  add_flags 
)

◆ symbol_file_add_separate()

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

◆ symbol_file_clear()

void symbol_file_clear ( int  from_tty)

◆ symbol_overlayed_address()

CORE_ADDR symbol_overlayed_address ( CORE_ADDR  ,
struct obj_section  
)

Definition at line 3143 of file symfile.c.

◆ symfile_bfd_open()

gdb_bfd_ref_ptr symfile_bfd_open ( const char *  )

◆ symfile_map_offsets_to_segments()

int symfile_map_offsets_to_segments ( bfd *  ,
const struct symfile_segment_data ,
struct section_offsets ,
int  ,
const CORE_ADDR  
)

◆ symfile_relocate_debug_section()

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

Variable Documentation

◆ auto_solib_add

int auto_solib_add

◆ overlay_cache_invalid

int overlay_cache_invalid

◆ overlay_debugging

enum overlay_debugging_state overlay_debugging

◆ separate_debug_file_debug

int separate_debug_file_debug