GDB (xrefs)
|
#include "symtab.h"
#include "probe.h"
#include "symfile-add-flags.h"
#include "objfile-flags.h"
#include "gdb_bfd.h"
#include "gdbsupport/function-view.h"
#include "target-section.h"
#include "quick-symbol.h"
Go to the source code of this file.
Classes | |
struct | other_sections |
struct | symfile_segment_data |
struct | symfile_segment_data::segment |
struct | sym_probe_fns |
struct | sym_fns |
Typedefs | |
typedef std::vector< other_sections > | section_addr_info |
using | symfile_segment_data_up = std::unique_ptr<symfile_segment_data> |
Enumerations | |
enum | overlay_debugging_state { ovly_off , ovly_on , ovly_auto } |
Variables | |
bool | auto_solib_add |
enum overlay_debugging_state | overlay_debugging |
int | overlay_cache_invalid |
bool | separate_debug_file_debug |
int | readnow_symbol_files |
int | readnever_symbol_files |
typedef std::vector<other_sections> section_addr_info |
using symfile_segment_data_up = std::unique_ptr<symfile_segment_data> |
|
extern |
Definition at line 2894 of file symfile.c.
References objfile::compunit_symtabs, compunit_symtab::next, and compunit_symtab::objfile().
Referenced by buildsym_compunit::end_compunit_symtab_with_blockvector(), finalize_symtab(), and new_symtab().
|
extern |
Definition at line 2715 of file symfile.c.
References filename_language_table.
Referenced by add_set_language_command(), and set_ext_lang_command().
|
extern |
Definition at line 1804 of file symfile.c.
References symtab_fns.
Referenced by _initialize_machoread(), and _initialize_xcoffread().
|
extern |
Definition at line 483 of file symfile.c.
References other_sections::addr, addr_section_name(), addrs_section_sort(), build_section_addr_info_from_bfd(), find_lowest_section(), gdb_bfd_sections(), name, and other_sections::sectindex.
Referenced by objfile_relocate(), and syms_from_objfile_1().
|
extern |
Definition at line 2868 of file symfile.c.
References name, compunit_symtab::name, objfile::objfile_obstack, compunit_symtab::set_debugformat(), compunit_symtab::set_objfile(), and symtab_create_debug_printf_v.
Referenced by buildsym_compunit::buildsym_compunit(), finalize_symtab(), and new_symtab().
|
inlinestatic |
Definition at line 211 of file symfile.h.
References allocate_symtab(), and symtab::filename.
|
extern |
Definition at line 2821 of file symfile.c.
References compunit_symtab::add_filetab(), deduce_language_from_filename(), symtab::filename, symtab::filename_for_id, symtab::fullname, objfile::intern(), compunit_symtab::objfile(), objfile_name(), objfile::objfile_obstack, symtab::set_compunit(), symtab::set_language(), symtab_create_debug, and symtab_create_debug_printf_v.
Referenced by allocate_symtab(), dwarf_decode_lines(), buildsym_compunit::end_compunit_symtab_with_blockvector(), finalize_symtab(), new_symtab(), and dwarf2_cu::setup_type_unit_groups().
|
extern |
Definition at line 257 of file symfile.c.
References build_section_addr_info_from_bfd(), objfile::obfd, and objfile::section_offsets.
Referenced by objfile_relocate(), set_objfile_default_section_offset(), and symbol_file_add_separate().
|
extern |
Definition at line 218 of file symfile.c.
References gdb_bfd_section_index().
Referenced by solib_read_symbols().
|
extern |
Definition at line 2905 of file symfile.c.
References gdb::observers::all_objfiles_removed, breakpoint_re_set(), clear_current_source_symtab_and_line(), clear_displays(), clear_last_displayed_sal(), clear_pc_function_cache(), current_program_space, and SYMFILE_DEFER_BP_RESET.
Referenced by do_module_cleanup(), finish_new_objfile(), remove_symbol_file_command(), reread_symbols(), symbol_file_clear(), and program_space::~program_space().
|
extern |
Definition at line 2802 of file symfile.c.
References filename_language_table, and language_unknown.
Referenced by allocate_symtab(), parse_partial_symbols(), buildsym_compunit::patch_subfile_names(), read_dbx_symtab(), read_xcoff_symtab(), scan_xcoff_symtab(), start_psymtab(), buildsym_compunit::start_subfile(), and xcoff_start_psymtab().
|
extern |
Definition at line 625 of file symfile.c.
References exec_set_section_address(), gdb_bfd_count_sections(), gdb_bfd_sections(), init_objfile_sect_indices(), objfile::obfd, place_section(), relative_addr_info_to_section_offsets(), and objfile::section_offsets.
Referenced by xcoff_symfile_offsets().
|
extern |
Definition at line 3595 of file symfile.c.
References gdb_bfd_sections().
|
extern |
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 ) |
Definition at line 3759 of file symfile.c.
References current_program_space, objfile::expand_symtabs_matching(), program_space::objfiles(), and UNDEF_DOMAIN.
Referenced by ada_add_global_exceptions(), ada_language::collect_symbol_completion_matches(), default_collect_symbol_completion_matches_break_on(), and gdbpy_lookup_static_symbols().
|
extern |
Definition at line 3203 of file symfile.c.
References current_program_space, program_space::objfiles(), overlay_debugging, pc_in_mapped_range(), section_is_mapped(), and objfile::sections().
Referenced by block_for_pc(), blockvector_for_pc(), find_pc_compunit_symtab(), find_pc_function(), find_pc_section(), and jump_command().
|
extern |
Definition at line 3174 of file symfile.c.
References current_program_space, program_space::objfiles(), overlay_debugging, pc_in_mapped_range(), pc_in_unmapped_range(), section_is_mapped(), section_is_overlay(), and objfile::sections().
Referenced by amd_dbgapi_target_breakpoint::amd_dbgapi_target_breakpoint(), arm_linux_copy_svc(), build_address_symbolic(), call_function_by_hand_dummy(), convert_address_location_to_sals(), elf_gnu_ifunc_resolver_stop(), find_pc_line(), find_pc_partial_function_sym(), handle_step_into_function(), insert_hp_step_resume_breakpoint_at_frame(), insert_single_step_breakpoint(), insert_step_resume_breakpoint_at_caller(), internal_breakpoint::internal_breakpoint(), memory_xfer_partial_1(), parse_probes_in_pspace(), process_event_stop_test(), and set_momentary_breakpoint_at_pc().
|
extern |
Definition at line 1533 of file symfile.c.
References find_separate_debug_file(), objfile::obfd, objfile_name(), and terminate_after_last_dir_separator().
Referenced by coff_symfile_read(), and elf_symfile_read_dwarf2().
|
extern |
Definition at line 226 of file minidebug.c.
References gdb_bfd_openr_iovec(), registry< T >::get(), gnutarget, objfile::obfd, and objfile_name().
Referenced by read_symbols().
|
extern |
Definition at line 2037 of file symfile.c.
References breakpoint_re_set(), current_uiout, load_progress_data::data_count, error_no_arg(), ui_out::field_core_addr(), ui_out::field_unsigned(), flash_discard, gdb_bfd_open(), gdb_bfd_sections(), gdb_stdout, gdbarch_addr_bits_remove(), get_current_regcache(), gnutarget, load_section_data::load_offset, load_one_section(), load_progress(), print_transfer_performance(), regcache_write_pc(), load_section_data::requests, target_gdbarch(), target_write_memory_blocks(), ui_out::text(), load_progress_data::total_size, and load_progress_data::write_count.
Referenced by remote_target::load().
|
extern |
Definition at line 1787 of file symfile.c.
References objfile::obfd.
Referenced by parse_partial_symbols(), and record_minimal_symbol().
symfile_segment_data_up get_symfile_segment_data | ( | bfd * | abfd | ) |
Definition at line 3642 of file symfile.c.
References find_sym_fns(), and sym_fns::sym_segments.
Referenced by remote_target::get_offsets(), solib_target_relocate_section_addresses(), and symfile_find_segment_sections().
|
extern |
Definition at line 185 of file symfile.c.
References currently_reading_symtab.
Referenced by dw2_instantiate_symtab(), and psymtab_to_symtab().
void map_symbol_filenames | ( | gdb::function_view< symbol_filename_ftype > | fun, |
bool | need_fullname ) |
Definition at line 3784 of file symfile.c.
References current_program_space, objfile::map_symbol_filenames(), and program_space::objfiles().
Referenced by info_sources_worker(), and make_source_files_completion_list().
|
extern |
Definition at line 3126 of file symfile.c.
References pc_in_unmapped_range(), section_is_overlay(), and obj_section::the_bfd_section.
Referenced by build_address_symbolic(), find_pc_line(), find_pc_partial_function_sym(), info_symbol_command(), memory_xfer_partial_1(), and skip_prologue_sal().
|
extern |
Definition at line 3108 of file symfile.c.
References pc_in_mapped_range(), section_is_overlay(), and obj_section::the_bfd_section.
Referenced by find_pc_line(), find_pc_partial_function_sym(), info_address_command(), insert_bp_location(), skip_prologue_sal(), and symbol_overlayed_address().
|
extern |
Definition at line 3077 of file symfile.c.
References obj_section::addr(), and section_is_overlay().
Referenced by find_pc_mapped_section(), find_pc_overlay(), and overlay_unmapped_address().
|
extern |
Definition at line 3055 of file symfile.c.
References obj_section::offset(), section_is_overlay(), size, and obj_section::the_bfd_section.
Referenced by build_address_symbolic(), find_pc_line(), find_pc_overlay(), find_pc_partial_function_sym(), info_symbol_command(), memory_xfer_partial_1(), and overlay_mapped_address().
|
extern |
Definition at line 161 of file symfile.c.
References info_verbose, print_symbol_loading, print_symbol_loading_brief, print_symbol_loading_full, and print_symbol_loading_off.
Referenced by reload_shared_libraries_1(), reread_symbols(), solib_add(), and symbol_file_add_with_addrs().
|
extern |
Definition at line 404 of file symfile.c.
References other_sections::addr, and other_sections::sectindex.
Referenced by default_symfile_offsets(), and objfile_relocate().
|
extern |
Definition at line 3019 of file symfile.c.
References objfile::arch(), gdbarch_overlay_update(), gdbarch_overlay_update_p(), obj_section::objfile, overlay_cache_invalid, overlay_debugging, overlay_invalidate_all(), ovly_auto, obj_section::ovly_mapped, ovly_off, ovly_on, and section_is_overlay().
Referenced by bp_location_inserted_here_p(), breakpoint_here_p(), code_breakpoint::breakpoint_hit(), breakpoint_in_range_p(), find_pc_mapped_section(), find_pc_overlay(), info_symbol_command(), insert_bp_location(), is_addr_in_objfile(), jump_command(), list_overlays_command(), remove_breakpoint_1(), skip_prologue_sal(), and symbol_overlayed_address().
|
extern |
Definition at line 2983 of file symfile.c.
References overlay_debugging, and obj_section::the_bfd_section.
Referenced by bp_location_inserted_here_p(), breakpoint_here_p(), code_breakpoint::breakpoint_hit(), breakpoint_in_range_p(), clear_command(), find_pc_overlay(), info_address_command(), info_symbol_command(), insert_bp_location(), is_addr_in_objfile(), jump_command(), map_overlay_command(), overlay_invalidate_all(), overlay_mapped_address(), overlay_unmapped_address(), pc_in_mapped_range(), pc_in_unmapped_range(), remove_breakpoint_1(), section_is_mapped(), simple_overlay_update(), skip_prologue_sal(), symbol_overlayed_address(), z80_overlay_update(), and z80_overlay_update_1().
|
extern |
Definition at line 1690 of file symfile.c.
References current_language, expected_language, general_symbol_info::language(), language_c, language_mode_manual, language_unknown, lookup_symbol_in_language(), main_language(), main_name(), name, set_language(), block_symbol::symbol, and VAR_DOMAIN.
Referenced by set_language(), and symbol_file_add_main_1().
|
extern |
Definition at line 3542 of file symfile.c.
References cache_novlys, cache_ovly_table, cache_ovly_table_base, current_program_space, LMA, lookup_minimal_symbol(), MAPPED, bound_minimal_symbol::minsym, program_space::objfiles(), section_is_overlay(), objfile::sections(), simple_overlay_update_1(), simple_read_overlay_table(), minimal_symbol::value_address(), and VMA.
Referenced by csky_gdbarch_init(), ft32_gdbarch_init(), m32r_gdbarch_init(), and moxie_gdbarch_init().
|
extern |
Definition at line 1168 of file symfile.c.
References flags, name, symbol_file_add_from_bfd(), and symfile_bfd_open().
Referenced by add_symbol_file_command(), and symbol_file_add_main_1().
|
extern |
Definition at line 1155 of file symfile.c.
References flags, name, and symbol_file_add_with_addrs().
Referenced by compile_object_load(), jit_bfd_try_read_symtab(), macho_add_oso_symfile(), solib_read_symbols(), symbol_file_add(), and symbol_file_add_from_memory().
|
extern |
Definition at line 1186 of file symfile.c.
References symbol_file_add_main_1().
Referenced by add_inferior_command(), clone_program_space(), locate_exec_from_corefile_build_id(), open_symbol_file_object(), symbol_file_add_main_adapter(), try_open_exec_file(), and validate_exec_file().
|
extern |
Definition at line 1134 of file symfile.c.
References build_section_addr_info_from_objfile(), objfile::flags, name, OBJF_MAINLINE, OBJF_READNOW, OBJF_SHARED, OBJF_USERLOADED, and symbol_file_add_with_addrs().
Referenced by coff_symfile_read(), elf_symfile_read_dwarf2(), macho_symfile_read(), objfpy_add_separate_debug_file(), and read_symbols().
|
extern |
Definition at line 1210 of file symfile.c.
References clear_symtab_users(), current_program_space, program_space::free_all_objfiles(), gdb_printf(), have_full_symbols(), have_partial_symbols(), no_shared_libraries(), objfile_name(), query(), and program_space::symfile_object_file.
Referenced by symbol_file_command().
|
extern |
|
extern |
Definition at line 1724 of file symfile.c.
References gdb_bfd_open(), gnutarget, is_target_filename(), name, O_BINARY, openp(), OPF_RETURN_REALPATH, and OPF_TRY_CWD_FIRST.
Referenced by coff_symfile_read(), objfpy_add_separate_debug_file(), symbol_file_add(), and symfile_bfd_open_no_error().
|
externnoexcept |
Definition at line 1769 of file symfile.c.
References err, name, and symfile_bfd_open().
Referenced by elf_symfile_read_dwarf2().
|
extern |
Definition at line 3668 of file symfile.c.
Referenced by remote_target::get_offsets(), and solib_target_relocate_section_addresses().
|
extern |
Definition at line 3633 of file symfile.c.
References bound_minimal_symbol::objfile, objfile::sf, and sym_fns::sym_relocate.
Referenced by dbx_read_symtab(), elfstab_build_psymtabs(), and dwarf2_section_info::read().
|
extern |
Definition at line 149 of file symfile.c.
Referenced by enable_break(), handle_solib_event(), post_create_inferior(), reload_shared_libraries(), reload_shared_libraries_1(), rocm_solib_target_inferior_created(), remote_target::start_remote_1(), and svr4_fetch_objfile_link_map().
|
extern |
Definition at line 2976 of file symfile.c.
Referenced by fetch_inferior_event(), load_command(), poll_one_curr_target(), section_is_mapped(), and wait_for_inferior().
enum overlay_debugging_state overlay_debugging |
|
extern |
Definition at line 92 of file symfile.c.
Referenced by captured_main_1(), symbol_file_add_with_addrs(), and validate_readnow_readnever().
|
extern |
Definition at line 88 of file symfile.c.
Referenced by captured_main_1(), reread_symbols(), symbol_file_add_with_addrs(), and validate_readnow_readnever().
|
extern |
Definition at line 1235 of file symfile.c.
Referenced by build_id_to_debug_bfd_1(), find_separate_debug_file(), find_separate_debug_file_by_buildid(), and separate_debug_file_exists().