GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
symfile.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "bfdlink.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "frame.h"
#include "target.h"
#include "value.h"
#include "symfile.h"
#include "objfiles.h"
#include "source.h"
#include "gdbcmd.h"
#include "breakpoint.h"
#include "language.h"
#include "complaints.h"
#include "demangle.h"
#include "inferior.h"
#include "regcache.h"
#include "filenames.h"
#include "gdbsupport/gdb_obstack.h"
#include "completer.h"
#include "bcache.h"
#include "hashtab.h"
#include "readline/tilde.h"
#include "block.h"
#include "observable.h"
#include "exec.h"
#include "parser-defs.h"
#include "varobj.h"
#include "elf-bfd.h"
#include "solib.h"
#include "remote.h"
#include "stack.h"
#include "gdb_bfd.h"
#include "cli/cli-utils.h"
#include "gdbsupport/byte-vector.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/selftest.h"
#include "cli/cli-style.h"
#include "gdbsupport/forward-scope-exit.h"
#include "gdbsupport/buildargv.h"
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <ctype.h>
#include <chrono>
#include <algorithm>

Go to the source code of this file.

Classes

struct  registered_sym_fns
 
struct  load_progress_data
 
struct  load_progress_section_data
 
struct  load_section_data
 
struct  filename_language
 

Macros

#define DEBUG_SUBDIRECTORY   ".debug"
 
#define READNOW_READNEVER_HELP    "The '-readnow' option will cause GDB to read the entire symbol file\n\immediately. This makes the command slower, but may make future operations\n\faster.\n\The '-readnever' option will prevent GDB from reading the symbol file's\n\symbolic debug information."
 

Typedefs

using clear_symtab_users_cleanup = FORWARD_SCOPE_EXIT (clear_symtab_users)
 

Enumerations

enum  ovly_index { VMA , OSIZE , LMA , MAPPED }
 

Functions

static void symbol_file_add_main_1 (const char *args, symfile_add_flags add_flags, objfile_flags flags, CORE_ADDR reloff)
 
static const struct sym_fnsfind_sym_fns (bfd *)
 
static void overlay_invalidate_all (void)
 
static void simple_free_overlay_table (void)
 
static void read_target_long_array (CORE_ADDR, unsigned int *, int, int, enum bfd_endian)
 
static int simple_read_overlay_table (void)
 
static int simple_overlay_update_1 (struct obj_section *)
 
static void symfile_find_segment_sections (struct objfile *objfile)
 
int print_symbol_loading_p (int from_tty, int exec, int full)
 
scoped_restore_tmpl< int > increment_reading_symtab (void)
 
static void find_lowest_section (asection *sect, asection **lowest)
 
section_addr_info build_section_addr_info_from_section_table (const target_section_table &table)
 
static section_addr_info build_section_addr_info_from_bfd (bfd *abfd)
 
section_addr_info build_section_addr_info_from_objfile (const struct objfile *objfile)
 
static void init_objfile_sect_indices (struct objfile *objfile)
 
static void place_section (bfd *abfd, asection *sect, section_offsets &offsets, CORE_ADDR &lowest)
 
void relative_addr_info_to_section_offsets (section_offsets &section_offsets, const section_addr_info &addrs)
 
static const char * addr_section_name (const char *s)
 
static bool addrs_section_compar (const struct other_sections *a, const struct other_sections *b)
 
static std::vector< const struct other_sections * > addrs_section_sort (const section_addr_info &addrs)
 
void addr_info_make_relative (section_addr_info *addrs, bfd *abfd)
 
void default_symfile_offsets (struct objfile *objfile, const section_addr_info &addrs)
 
symfile_segment_data_up default_symfile_segments (bfd *abfd)
 
static void read_symbols (struct objfile *objfile, symfile_add_flags add_flags)
 
static void init_entry_point_info (struct objfile *objfile)
 
static void syms_from_objfile_1 (struct objfile *objfile, section_addr_info *addrs, symfile_add_flags add_flags)
 
static void syms_from_objfile (struct objfile *objfile, section_addr_info *addrs, symfile_add_flags add_flags)
 
static void finish_new_objfile (struct objfile *objfile, symfile_add_flags add_flags)
 
static struct objfilesymbol_file_add_with_addrs (const gdb_bfd_ref_ptr &abfd, const char *name, symfile_add_flags add_flags, section_addr_info *addrs, objfile_flags flags, struct objfile *parent)
 
void symbol_file_add_separate (const gdb_bfd_ref_ptr &bfd, const char *name, symfile_add_flags symfile_flags, struct objfile *objfile)
 
struct objfilesymbol_file_add_from_bfd (const gdb_bfd_ref_ptr &abfd, const char *name, symfile_add_flags add_flags, section_addr_info *addrs, objfile_flags flags, struct objfile *parent)
 
struct objfilesymbol_file_add (const char *name, symfile_add_flags add_flags, section_addr_info *addrs, objfile_flags flags)
 
void symbol_file_add_main (const char *args, symfile_add_flags add_flags)
 
void symbol_file_clear (int from_tty)
 
static int separate_debug_file_exists (const std::string &name, unsigned long crc, struct objfile *parent_objfile, deferred_warnings *warnings)
 
static void show_debug_file_directory (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static std::string find_separate_debug_file (const char *dir, const char *canon_dir, const char *debuglink, unsigned long crc32, struct objfile *objfile, deferred_warnings *warnings)
 
static void terminate_after_last_dir_separator (char *path)
 
std::string find_separate_debug_file_by_debuglink (struct objfile *objfile, deferred_warnings *warnings)
 
static void validate_readnow_readnever (objfile_flags flags)
 
void symbol_file_command (const char *args, int from_tty)
 
void set_initial_language (void)
 
gdb_bfd_ref_ptr symfile_bfd_open (const char *name)
 
gdb_bfd_ref_ptr symfile_bfd_open_no_error (const char *name) noexcept
 
int get_section_index (struct objfile *objfile, const char *section_name)
 
void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *sf)
 
static void load_command (const char *arg, int from_tty)
 
static void load_progress (ULONGEST bytes, void *untyped_arg)
 
static void load_one_section (bfd *abfd, asection *asec, struct load_section_data *args)
 
static void print_transfer_performance (struct ui_file *stream, unsigned long data_count, unsigned long write_count, std::chrono::steady_clock::duration d)
 
void generic_load (const char *args, int from_tty)
 
static void set_objfile_default_section_offset (struct objfile *objf, const section_addr_info &addrs, CORE_ADDR offset)
 
static void add_symbol_file_command (const char *args, int from_tty)
 
static void remove_symbol_file_command (const char *args, int from_tty)
 
void reread_symbols (int from_tty)
 
void add_filename_language (const char *ext, enum language lang)
 
static void show_ext_args (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void set_ext_lang_command (const char *args, int from_tty, struct cmd_list_element *e)
 
static void info_ext_lang_command (const char *args, int from_tty)
 
enum language deduce_language_from_filename (const char *filename)
 
struct symtaballocate_symtab (struct compunit_symtab *cust, const char *filename, const char *filename_for_id)
 
struct compunit_symtaballocate_compunit_symtab (struct objfile *objfile, const char *name)
 
void add_compunit_symtab_to_objfile (struct compunit_symtab *cu)
 
void clear_symtab_users (symfile_add_flags add_flags)
 
int section_is_overlay (struct obj_section *section)
 
int section_is_mapped (struct obj_section *osect)
 
bool pc_in_unmapped_range (CORE_ADDR pc, struct obj_section *section)
 
bool pc_in_mapped_range (CORE_ADDR pc, struct obj_section *section)
 
static int sections_overlap (struct obj_section *a, struct obj_section *b)
 
CORE_ADDR overlay_unmapped_address (CORE_ADDR pc, struct obj_section *section)
 
CORE_ADDR overlay_mapped_address (CORE_ADDR pc, struct obj_section *section)
 
CORE_ADDR symbol_overlayed_address (CORE_ADDR address, struct obj_section *section)
 
struct obj_sectionfind_pc_overlay (CORE_ADDR pc)
 
struct obj_sectionfind_pc_mapped_section (CORE_ADDR pc)
 
static void list_overlays_command (const char *args, int from_tty)
 
static void map_overlay_command (const char *args, int from_tty)
 
static void unmap_overlay_command (const char *args, int from_tty)
 
static void overlay_auto_command (const char *args, int from_tty)
 
static void overlay_manual_command (const char *args, int from_tty)
 
static void overlay_off_command (const char *args, int from_tty)
 
static void overlay_load_command (const char *args, int from_tty)
 
void simple_overlay_update (struct obj_section *osect)
 
bfd_byte * default_symfile_relocate (struct objfile *objfile, asection *sectp, bfd_byte *buf)
 
bfd_byte * symfile_relocate_debug_section (struct objfile *objfile, asection *sectp, bfd_byte *buf)
 
symfile_segment_data_up get_symfile_segment_data (bfd *abfd)
 
int symfile_map_offsets_to_segments (bfd *abfd, const struct symfile_segment_data *data, section_offsets &offsets, int num_segment_bases, const CORE_ADDR *segment_bases)
 
static void symfile_free_objfile (struct objfile *objfile)
 
bool 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, block_search_flags search_flags, enum search_domain kind)
 
void map_symbol_filenames (gdb::function_view< symbol_filename_ftype > fun, bool need_fullname)
 
void _initialize_symfile ()
 

Variables

int(* deprecated_ui_load_progress_hook )(const char *section, unsigned long num)
 
void(* deprecated_show_load_progress )(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size)
 
void(* deprecated_pre_add_symbol_hook )(const char *)
 
void(* deprecated_post_add_symbol_hook )(void)
 
int readnow_symbol_files
 
int readnever_symbol_files
 
static std::vector< registered_sym_fnssymtab_fns
 
const char print_symbol_loading_off [] = "off"
 
const char print_symbol_loading_brief [] = "brief"
 
const char print_symbol_loading_full [] = "full"
 
static const char * print_symbol_loading_enums []
 
static const char * print_symbol_loading = print_symbol_loading_full
 
bool auto_solib_add = true
 
int currently_reading_symtab = 0
 
bool separate_debug_file_debug = false
 
std::string debug_file_directory
 
static int validate_download = 0
 
static std::vector< filename_languagefilename_language_table
 
static std::string ext_args
 
enum overlay_debugging_state overlay_debugging = ovly_off
 
int overlay_cache_invalid = 0
 
static struct cmd_list_elementoverlaylist
 
static unsigned(* cache_ovly_table )[4] = 0
 
static unsigned cache_novlys = 0
 
static CORE_ADDR cache_ovly_table_base = 0
 

Macro Definition Documentation

◆ DEBUG_SUBDIRECTORY

#define DEBUG_SUBDIRECTORY   ".debug"

Definition at line 1366 of file symfile.c.

Referenced by find_separate_debug_file().

◆ READNOW_READNEVER_HELP

#define READNOW_READNEVER_HELP    "The '-readnow' option will cause GDB to read the entire symbol file\n\immediately. This makes the command slower, but may make future operations\n\faster.\n\The '-readnever' option will prevent GDB from reading the symbol file's\n\symbolic debug information."

Typedef Documentation

◆ clear_symtab_users_cleanup

using clear_symtab_users_cleanup = FORWARD_SCOPE_EXIT (clear_symtab_users)

Definition at line 82 of file symfile.c.

Enumeration Type Documentation

◆ ovly_index

enum ovly_index
Enumerator
VMA 
OSIZE 
LMA 
MAPPED 

Definition at line 3418 of file symfile.c.

Function Documentation

◆ _initialize_symfile()

void _initialize_symfile ( )

Definition at line 3850 of file symfile.c.

Referenced by initialize_all_files().

◆ 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 2715 of file symfile.c.

References filename_language_table.

Referenced by add_set_language_command(), and set_ext_lang_command().

◆ add_symbol_file_command()

static void add_symbol_file_command ( const char * args,
int from_tty )
static

◆ add_symtab_fns()

void add_symtab_fns ( enum bfd_flavour flavour,
const struct sym_fns * sf )

Definition at line 1804 of file symfile.c.

References symtab_fns.

Referenced by _initialize_machoread(), and _initialize_xcoffread().

◆ addr_info_make_relative()

void addr_info_make_relative ( section_addr_info * addrs,
bfd * abfd )

◆ addr_section_name()

static const char * addr_section_name ( const char * s)
static

◆ addrs_section_compar()

static bool addrs_section_compar ( const struct other_sections * a,
const struct other_sections * b )
static

Definition at line 449 of file symfile.c.

References addr_section_name(), other_sections::name, and other_sections::sectindex.

Referenced by addrs_section_sort().

◆ addrs_section_sort()

static std::vector< const struct other_sections * > addrs_section_sort ( const section_addr_info & addrs)
static

Definition at line 465 of file symfile.c.

References addrs_section_compar().

Referenced by addr_info_make_relative(), and set_objfile_default_section_offset().

◆ allocate_compunit_symtab()

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

◆ allocate_symtab()

struct symtab * allocate_symtab ( struct compunit_symtab * cust,
const char * filename,
const char * filename_for_id )

◆ build_section_addr_info_from_bfd()

static section_addr_info build_section_addr_info_from_bfd ( bfd * abfd)
static

Definition at line 240 of file symfile.c.

References gdb_bfd_section_index().

Referenced by addr_info_make_relative(), and build_section_addr_info_from_objfile().

◆ build_section_addr_info_from_objfile()

section_addr_info build_section_addr_info_from_objfile ( const struct objfile * objfile)

◆ build_section_addr_info_from_section_table()

section_addr_info build_section_addr_info_from_section_table ( const target_section_table & table)

Definition at line 218 of file symfile.c.

References gdb_bfd_section_index().

Referenced by solib_read_symbols().

◆ clear_symtab_users()

void clear_symtab_users ( symfile_add_flags add_flags)

◆ deduce_language_from_filename()

enum language deduce_language_from_filename ( const char * filename)

◆ default_symfile_offsets()

void default_symfile_offsets ( struct objfile * objfile,
const section_addr_info & addrs )

◆ default_symfile_relocate()

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

Definition at line 3595 of file symfile.c.

References gdb_bfd_sections().

◆ default_symfile_segments()

symfile_segment_data_up default_symfile_segments ( bfd * abfd)

Definition at line 711 of file symfile.c.

◆ expand_symtabs_matching()

bool 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,
block_search_flags search_flags,
enum search_domain kind )

◆ find_lowest_section()

static void find_lowest_section ( asection * sect,
asection ** lowest )
static

Definition at line 201 of file symfile.c.

Referenced by addr_info_make_relative().

◆ find_pc_mapped_section()

struct obj_section * find_pc_mapped_section ( CORE_ADDR pc)

◆ find_pc_overlay()

struct obj_section * find_pc_overlay ( CORE_ADDR pc)

◆ find_separate_debug_file()

static std::string find_separate_debug_file ( const char * dir,
const char * canon_dir,
const char * debuglink,
unsigned long crc32,
struct objfile * objfile,
deferred_warnings * warnings )
static

◆ find_separate_debug_file_by_debuglink()

std::string find_separate_debug_file_by_debuglink ( struct objfile * objfile,
deferred_warnings * warnings )

◆ find_sym_fns()

static const struct sym_fns * find_sym_fns ( bfd * abfd)
static

Definition at line 1815 of file symfile.c.

References symtab_fns.

Referenced by get_symfile_segment_data(), reread_symbols(), and syms_from_objfile_1().

◆ finish_new_objfile()

static void finish_new_objfile ( struct objfile * objfile,
symfile_add_flags add_flags )
static

◆ generic_load()

void generic_load ( const char * args,
int from_tty )

◆ get_section_index()

int get_section_index ( struct objfile * objfile,
const char * section_name )

Definition at line 1787 of file symfile.c.

References objfile::obfd.

Referenced by parse_partial_symbols(), and record_minimal_symbol().

◆ get_symfile_segment_data()

symfile_segment_data_up 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.

Referenced by dw2_instantiate_symtab(), and psymtab_to_symtab().

◆ info_ext_lang_command()

static void info_ext_lang_command ( const char * args,
int from_tty )
static

Definition at line 2792 of file symfile.c.

References filename_language_table, gdb_printf(), and language_str().

◆ init_entry_point_info()

static void init_entry_point_info ( struct objfile * objfile)
static

◆ init_objfile_sect_indices()

static void init_objfile_sect_indices ( struct objfile * objfile)
static

◆ list_overlays_command()

static void list_overlays_command ( const char * args,
int from_tty )
static

◆ load_command()

static void load_command ( const char * arg,
int from_tty )
static

◆ load_one_section()

static void load_one_section ( bfd * abfd,
asection * asec,
struct load_section_data * args )
static

Definition at line 2005 of file symfile.c.

References size, and xmalloc().

Referenced by generic_load().

◆ load_progress()

static void load_progress ( ULONGEST bytes,
void * untyped_arg )
static

◆ map_overlay_command()

static void map_overlay_command ( const char * args,
int from_tty )
static

◆ map_symbol_filenames()

void map_symbol_filenames ( gdb::function_view< symbol_filename_ftype > fun,
bool need_fullname )

◆ overlay_auto_command()

static void overlay_auto_command ( const char * args,
int from_tty )
static

◆ overlay_invalidate_all()

static void overlay_invalidate_all ( void )
static

◆ overlay_load_command()

static void overlay_load_command ( const char * args,
int from_tty )
static

◆ overlay_manual_command()

static void overlay_manual_command ( const char * args,
int from_tty )
static

◆ overlay_mapped_address()

CORE_ADDR overlay_mapped_address ( CORE_ADDR pc,
struct obj_section * section )

◆ overlay_off_command()

static void overlay_off_command ( const char * args,
int from_tty )
static

◆ overlay_unmapped_address()

CORE_ADDR overlay_unmapped_address ( CORE_ADDR pc,
struct obj_section * section )

◆ pc_in_mapped_range()

bool pc_in_mapped_range ( CORE_ADDR pc,
struct obj_section * section )

◆ pc_in_unmapped_range()

bool pc_in_unmapped_range ( CORE_ADDR pc,
struct obj_section * section )

◆ place_section()

static void place_section ( bfd * abfd,
asection * sect,
section_offsets & offsets,
CORE_ADDR & lowest )
static

Definition at line 340 of file symfile.c.

References gdb_bfd_section_index().

Referenced by default_symfile_offsets().

◆ print_symbol_loading_p()

int print_symbol_loading_p ( int from_tty,
int exec,
int full )

◆ print_transfer_performance()

static void print_transfer_performance ( struct ui_file * stream,
unsigned long data_count,
unsigned long write_count,
std::chrono::steady_clock::duration d )
static

Definition at line 2123 of file symfile.c.

References current_uiout, ui_out::field_unsigned(), ui_out::is_mi_like_p(), rate, and ui_out::text().

Referenced by generic_load().

◆ read_symbols()

static void read_symbols ( struct objfile * objfile,
symfile_add_flags add_flags )
static

◆ read_target_long_array()

static void read_target_long_array ( CORE_ADDR memaddr,
unsigned int * myaddr,
int len,
int size,
enum bfd_endian byte_order )
static

Definition at line 3438 of file symfile.c.

References extract_unsigned_integer(), read_memory(), and size.

Referenced by simple_overlay_update_1(), and simple_read_overlay_table().

◆ relative_addr_info_to_section_offsets()

void relative_addr_info_to_section_offsets ( section_offsets & section_offsets,
const section_addr_info & addrs )

Definition at line 404 of file symfile.c.

References other_sections::addr, and other_sections::sectindex.

Referenced by default_symfile_offsets(), and objfile_relocate().

◆ remove_symbol_file_command()

static void remove_symbol_file_command ( const char * args,
int from_tty )
static

◆ reread_symbols()

void reread_symbols ( int from_tty)

◆ section_is_mapped()

int section_is_mapped ( struct obj_section * osect)

◆ section_is_overlay()

int section_is_overlay ( struct obj_section * section)

◆ sections_overlap()

static int sections_overlap ( struct obj_section * a,
struct obj_section * b )
static

Definition at line 3093 of file symfile.c.

References obj_section::addr(), and obj_section::endaddr().

Referenced by map_overlay_command().

◆ separate_debug_file_exists()

static int separate_debug_file_exists ( const std::string & name,
unsigned long crc,
struct objfile * parent_objfile,
deferred_warnings * warnings )
static

◆ set_ext_lang_command()

static void set_ext_lang_command ( const char * args,
int from_tty,
struct cmd_list_element * e )
static

◆ set_initial_language()

void set_initial_language ( void )

◆ set_objfile_default_section_offset()

static void set_objfile_default_section_offset ( struct objfile * objf,
const section_addr_info & addrs,
CORE_ADDR offset )
static

◆ show_debug_file_directory()

static void show_debug_file_directory ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 1356 of file symfile.c.

References gdb_printf().

◆ show_ext_args()

static void show_ext_args ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 2723 of file symfile.c.

References gdb_printf().

◆ simple_free_overlay_table()

static void simple_free_overlay_table ( void )
static

Definition at line 3426 of file symfile.c.

References cache_novlys, cache_ovly_table, cache_ovly_table_base, and xfree().

Referenced by simple_read_overlay_table().

◆ simple_overlay_update()

void simple_overlay_update ( struct obj_section * osect)

◆ simple_overlay_update_1()

static int simple_overlay_update_1 ( struct obj_section * osect)
static

◆ simple_read_overlay_table()

static int simple_read_overlay_table ( void )
static

◆ symbol_file_add()

struct objfile * symbol_file_add ( const char * name,
symfile_add_flags add_flags,
section_addr_info * addrs,
objfile_flags flags )

◆ symbol_file_add_from_bfd()

struct objfile * symbol_file_add_from_bfd ( const gdb_bfd_ref_ptr & abfd,
const char * name,
symfile_add_flags add_flags,
section_addr_info * addrs,
objfile_flags flags,
struct objfile * parent )

◆ symbol_file_add_main()

void symbol_file_add_main ( const char * args,
symfile_add_flags add_flags )

◆ symbol_file_add_main_1()

static void symbol_file_add_main_1 ( const char * args,
symfile_add_flags add_flags,
objfile_flags flags,
CORE_ADDR reloff )
static

◆ symbol_file_add_separate()

void symbol_file_add_separate ( const gdb_bfd_ref_ptr & bfd,
const char * name,
symfile_add_flags symfile_flags,
struct objfile * objfile )

◆ symbol_file_add_with_addrs()

static struct objfile * symbol_file_add_with_addrs ( const gdb_bfd_ref_ptr & abfd,
const char * name,
symfile_add_flags add_flags,
section_addr_info * addrs,
objfile_flags flags,
struct objfile * parent )
static

◆ symbol_file_clear()

void symbol_file_clear ( int from_tty)

◆ symbol_file_command()

void symbol_file_command ( const char * args,
int from_tty )

◆ symbol_overlayed_address()

CORE_ADDR symbol_overlayed_address ( CORE_ADDR address,
struct obj_section * section )

◆ symfile_bfd_open()

gdb_bfd_ref_ptr symfile_bfd_open ( const char * name)

◆ symfile_bfd_open_no_error()

gdb_bfd_ref_ptr symfile_bfd_open_no_error ( const char * name)
noexcept

Definition at line 1769 of file symfile.c.

References err, name, and symfile_bfd_open().

Referenced by elf_symfile_read_dwarf2().

◆ symfile_find_segment_sections()

static void symfile_find_segment_sections ( struct objfile * objfile)
static

◆ symfile_free_objfile()

static void symfile_free_objfile ( struct objfile * objfile)
static

Definition at line 3748 of file symfile.c.

References objfile::pspace, and program_space::remove_target_sections().

◆ symfile_map_offsets_to_segments()

int symfile_map_offsets_to_segments ( bfd * abfd,
const struct symfile_segment_data * data,
section_offsets & offsets,
int num_segment_bases,
const CORE_ADDR * segment_bases )

◆ symfile_relocate_debug_section()

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

◆ syms_from_objfile()

static void syms_from_objfile ( struct objfile * objfile,
section_addr_info * addrs,
symfile_add_flags add_flags )
static

Definition at line 978 of file symfile.c.

References init_entry_point_info(), and syms_from_objfile_1().

Referenced by symbol_file_add_with_addrs().

◆ syms_from_objfile_1()

static void syms_from_objfile_1 ( struct objfile * objfile,
section_addr_info * addrs,
symfile_add_flags add_flags )
static

◆ terminate_after_last_dir_separator()

static void terminate_after_last_dir_separator ( char * path)
static

Definition at line 1516 of file symfile.c.

Referenced by find_separate_debug_file_by_debuglink().

◆ unmap_overlay_command()

static void unmap_overlay_command ( const char * args,
int from_tty )
static

◆ validate_readnow_readnever()

static void validate_readnow_readnever ( objfile_flags flags)
static

Definition at line 1593 of file symfile.c.

References flags, OBJF_READNEVER, and OBJF_READNOW.

Variable Documentation

◆ auto_solib_add

bool auto_solib_add = true

◆ cache_novlys

unsigned cache_novlys = 0
static

◆ cache_ovly_table

unsigned(* cache_ovly_table)[4] = 0
static

◆ cache_ovly_table_base

CORE_ADDR cache_ovly_table_base = 0
static

◆ currently_reading_symtab

int currently_reading_symtab = 0

Definition at line 179 of file symfile.c.

Referenced by check_typedef(), and increment_reading_symtab().

◆ debug_file_directory

std::string debug_file_directory

◆ deprecated_post_add_symbol_hook

void(* deprecated_post_add_symbol_hook) (void) ( void )

Definition at line 80 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

◆ deprecated_pre_add_symbol_hook

void(* deprecated_pre_add_symbol_hook) (const char *) ( const char * )

Definition at line 79 of file symfile.c.

Referenced by symbol_file_add_with_addrs().

◆ deprecated_show_load_progress

void(* deprecated_show_load_progress) (const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size) ( const char * section,
unsigned long section_sent,
unsigned long section_size,
unsigned long total_sent,
unsigned long total_size )

Definition at line 74 of file symfile.c.

Referenced by load_progress(), and mi_interp::resume().

◆ deprecated_ui_load_progress_hook

int(* deprecated_ui_load_progress_hook) (const char *section, unsigned long num) ( const char * section,
unsigned long num )

Definition at line 72 of file symfile.c.

Referenced by load_progress().

◆ ext_args

std::string ext_args
static

Definition at line 2721 of file symfile.c.

Referenced by set_ext_lang_command().

◆ filename_language_table

std::vector<filename_language> filename_language_table
static

◆ overlay_cache_invalid

int overlay_cache_invalid = 0

◆ overlay_debugging

enum overlay_debugging_state overlay_debugging = ovly_off

◆ overlaylist

struct cmd_list_element* overlaylist
static

Definition at line 3379 of file symfile.c.

◆ print_symbol_loading

const char* print_symbol_loading = print_symbol_loading_full
static

Definition at line 145 of file symfile.c.

Referenced by print_symbol_loading_p().

◆ print_symbol_loading_brief

const char print_symbol_loading_brief[] = "brief"

Definition at line 136 of file symfile.c.

Referenced by print_symbol_loading_p().

◆ print_symbol_loading_enums

const char* print_symbol_loading_enums[]
static
Initial value:
=
{
NULL
}
const char print_symbol_loading_brief[]
Definition symfile.c:136
const char print_symbol_loading_off[]
Definition symfile.c:135
const char print_symbol_loading_full[]
Definition symfile.c:137

Definition at line 138 of file symfile.c.

◆ print_symbol_loading_full

const char print_symbol_loading_full[] = "full"

Definition at line 137 of file symfile.c.

Referenced by print_symbol_loading_p().

◆ print_symbol_loading_off

const char print_symbol_loading_off[] = "off"

Definition at line 135 of file symfile.c.

Referenced by print_symbol_loading_p().

◆ readnever_symbol_files

int readnever_symbol_files

◆ readnow_symbol_files

int readnow_symbol_files

◆ separate_debug_file_debug

bool separate_debug_file_debug = false

◆ symtab_fns

std::vector<registered_sym_fns> symtab_fns
static

Definition at line 131 of file symfile.c.

Referenced by add_symtab_fns(), and find_sym_fns().

◆ validate_download

int validate_download = 0
static

Definition at line 1886 of file symfile.c.

Referenced by load_progress().