GDB (xrefs)
|
#include "defs.h"
#include "bfd.h"
#include "elf-bfd.h"
#include "elf/common.h"
#include "elf/internal.h"
#include "elf/mips.h"
#include "symtab.h"
#include "symfile.h"
#include "objfiles.h"
#include "buildsym.h"
#include "stabsread.h"
#include "gdb-stabs.h"
#include "complaints.h"
#include "demangle.h"
#include "psympriv.h"
#include "filenames.h"
#include "probe.h"
#include "arch-utils.h"
#include "gdbtypes.h"
#include "value.h"
#include "infcall.h"
#include "gdbthread.h"
#include "regcache.h"
#include "bcache.h"
#include "gdb_bfd.h"
#include "build-id.h"
Go to the source code of this file.
Classes | |
struct | elfinfo |
struct | elf_gnu_ifunc_cache |
Macros | |
#define | SYMBOL_GOT_PLT_SUFFIX "@got.plt" |
#define | ST_REGULAR 0 |
#define | ST_DYNAMIC 1 |
#define | ST_SYNTHETIC 2 |
Variables | |
const struct sym_fns | elf_sym_fns_gdb_index |
const struct sym_fns | elf_sym_fns_lazy_psyms |
static const struct bfd_data * | probe_key = NULL |
static const struct objfile_data * | elf_objfile_gnu_ifunc_cache_data |
static const struct sym_probe_fns | elf_probe_fns |
static const struct sym_fns | elf_sym_fns |
static const struct gnu_ifunc_fns | elf_gnu_ifunc_fns |
#define ST_DYNAMIC 1 |
Definition at line 223 of file elfread.c.
Referenced by elf_read_minimal_symbols(), and elf_symtab_read().
#define ST_REGULAR 0 |
Definition at line 222 of file elfread.c.
Referenced by elf_read_minimal_symbols().
#define ST_SYNTHETIC 2 |
Definition at line 224 of file elfread.c.
Referenced by elf_read_minimal_symbols(), and elf_symtab_read().
#define SYMBOL_GOT_PLT_SUFFIX "@got.plt" |
Definition at line 74 of file elfread.c.
Referenced by elf_gnu_ifunc_resolve_by_got(), and elf_rel_plt_read().
void _initialize_elfread | ( | void | ) |
Definition at line 1438 of file elfread.c.
References add_symtab_fns(), elf_gnu_ifunc_fns, elf_objfile_gnu_ifunc_cache_data, gnu_ifunc_fns_p, probe_key, and probe_key_free().
Definition at line 648 of file elfread.c.
References elf_gnu_ifunc_cache::name.
Referenced by elf_gnu_ifunc_record_cache().
|
static |
Definition at line 638 of file elfread.c.
References elf_gnu_ifunc_cache::name.
Referenced by elf_gnu_ifunc_record_cache().
Definition at line 665 of file elfread.c.
References _, elf_gnu_ifunc_cache::addr, BMSYMBOL_VALUE_ADDRESS, dummy_obstack_deallocate(), elf_gnu_ifunc_cache_eq(), elf_gnu_ifunc_cache_hash(), elf_objfile_gnu_ifunc_cache_data, get_objfile_arch(), hashtab_obstack_allocate(), lookup_minimal_symbol_by_pc(), bound_minimal_symbol::minsym, MSYMBOL_OBJ_SECTION, objfile::obfd, bound_minimal_symbol::objfile, objfile::objfile_obstack, obstack_grow_str0, paddress(), and warning().
Referenced by elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolve_by_got(), and elf_gnu_ifunc_resolver_return_stop().
Definition at line 852 of file elfread.c.
References value::address, allocate_value(), builtin_type::builtin_func_func, builtin_type(), call_function_by_hand(), current_target, elf_gnu_ifunc_record_cache(), elf_gnu_ifunc_resolve_name(), find_pc_partial_function(), gdbarch_addr_bits_remove(), gdbarch_convert_from_func_ptr_addr(), set_value_address(), and value_as_address().
Definition at line 738 of file elfread.c.
References elf_gnu_ifunc_cache::addr, ALL_PSPACE_OBJFILES, current_program_space, elf_objfile_gnu_ifunc_cache_data, gdb_assert, and elf_gnu_ifunc_cache::name.
Referenced by elf_gnu_ifunc_resolve_name().
Definition at line 778 of file elfread.c.
References ALL_PSPACE_OBJFILES, BMSYMBOL_VALUE_ADDRESS, builtin_type::builtin_data_ptr, builtin_type(), current_program_space, current_target, elf_gnu_ifunc_record_cache(), extract_typed_address(), gdbarch_addr_bits_remove(), gdbarch_convert_from_func_ptr_addr(), get_objfile_arch(), lookup_minimal_symbol(), mst_slot_got_plt, MSYMBOL_SIZE, MSYMBOL_TYPE, objfile::obfd, SYMBOL_GOT_PLT_SUFFIX, target_read_memory(), and TYPE_LENGTH.
Referenced by elf_gnu_ifunc_resolve_name().
Definition at line 835 of file elfread.c.
References elf_gnu_ifunc_resolve_by_cache(), and elf_gnu_ifunc_resolve_by_got().
Referenced by elf_gnu_ifunc_resolve_addr().
|
static |
Definition at line 943 of file elfread.c.
References _, breakpoint::addr_string, allocate_value(), bp_breakpoint, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, builtin_type::builtin_func_func, builtin_type(), current_program_space, current_target, delete_breakpoint(), elf_gnu_ifunc_record_cache(), find_pc_line(), gdb_assert, gdbarch_addr_bits_remove(), gdbarch_convert_from_func_ptr_addr(), gdbarch_return_value(), get_current_frame(), get_frame_arch(), get_thread_regcache(), inferior_ptid, internal_error(), breakpoint::loc, symtabs_and_lines::nelts, bp_location::next, breakpoint::pspace, bp_location::related_address, breakpoint::related_breakpoint, symtabs_and_lines::sals, set_value_address(), breakpoint::type, TYPE_TARGET_TYPE, update_breakpoint_locations(), value_as_address(), value_contents_raw(), and value_type().
|
static |
Definition at line 891 of file elfread.c.
References bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, current_inferior(), symtab_and_line::explicit_pc, find_pc_overlay(), breakpoint::frame_id, frame_id_eq(), frame_id_p(), gdb_assert, get_current_frame(), get_frame_arch(), get_frame_pc(), get_prev_frame(), get_stack_frame_id(), inferior_ptid, init_sal(), breakpoint::loc, bp_location::next, symtab_and_line::pc, pid_to_thread_id(), inferior::pspace, symtab_and_line::pspace, breakpoint::related_breakpoint, bp_location::requested_address, symtab_and_line::section, set_momentary_breakpoint(), breakpoint::thread, and breakpoint::type.
|
static |
Definition at line 176 of file elfread.c.
References elfinfo::mdebugsect, and elfinfo::stabsect.
Referenced by elf_symfile_read().
|
static |
Definition at line 1289 of file elfread.c.
References buildsym_new_init(), and stabsread_new_init().
|
static |
Definition at line 1007 of file elfread.c.
References _, dbx_objfile_data_key, do_cleanups(), elf_rel_plt_read(), elf_symtab_read(), error(), fprintf_unfiltered(), gdb_stdlog, init_minimal_symbol_collection(), install_minimal_symbols(), make_cleanup(), make_cleanup_discard_minimal_symbols(), elfinfo::mdebugsect, objfile_per_bfd_storage::minsyms_read, objfile::obfd, objfile_name(), objfile::per_bfd, objfile::separate_debug_objfile_backlink, ST_DYNAMIC, ST_REGULAR, ST_SYNTHETIC, elfinfo::stabsect, symtab_create_debug, xfree(), and xmalloc().
Referenced by elf_symfile_read().
|
static |
Definition at line 534 of file elfread.c.
References builtin_type::builtin_data_ptr, builtin_type(), do_cleanups(), free_current_contents(), get_objfile_arch(), make_cleanup(), mst_slot_got_plt, name, objfile::obfd, record_minimal_symbol(), objfile::separate_debug_objfile_backlink, SET_MSYMBOL_SIZE, SYMBOL_GOT_PLT_SUFFIX, TYPE_LENGTH, and xrealloc().
Referenced by elf_read_minimal_symbols().
|
static |
Definition at line 1301 of file elfread.c.
References dwarf2_free_objfile().
|
static |
Definition at line 1309 of file elfread.c.
References objfile::flags, and OBJF_REORDERED.
Definition at line 1171 of file elfread.c.
References do_cleanups(), dwarf2_has_info(), dwarf2_initialize_objfile(), elf_locate_sections(), elf_read_minimal_symbols(), elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms, elfmdebug_build_psymtabs(), elfstab_build_psymtabs(), find_separate_debug_file_by_buildid(), find_separate_debug_file_by_debuglink(), make_cleanup(), make_cleanup_bfd_unref(), elfinfo::mdebugsect, objfile::obfd, objfile_has_partial_symbols(), objfile_set_sym_fns(), objfile::separate_debug_objfile, objfile::separate_debug_objfile_backlink, elfinfo::stabsect, symbol_file_add_separate(), symfile_bfd_open(), and xfree().
|
static |
Definition at line 79 of file elfread.c.
References _, symfile_segment_data::num_segments, symfile_segment_data::segment_bases, symfile_segment_data::segment_info, symfile_segment_data::segment_sizes, and warning().
|
static |
Definition at line 227 of file elfread.c.
References ANOFFSET, bcache(), minimal_symbol::created_by_gdb, DBX_SYMFILE_INFO, minimal_symbol::filename, objfile_per_bfd_storage::filename_cache, gdb_bfd_section_index(), gdbarch_elf_make_msymbol_special(), gdbarch_elf_make_msymbol_special_p(), gdbarch_record_special_symbol(), gdbarch_record_special_symbol_p(), get_objfile_arch(), len, mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, mst_unknown, MSYMBOL_SIZE, objfile::obfd, offset, objfile::per_bfd, record_minimal_symbol(), objfile::section_offsets, SET_MSYMBOL_SIZE, ST_DYNAMIC, ST_SYNTHETIC, and startswith().
Referenced by elf_read_minimal_symbols().
|
static |
Definition at line 1354 of file elfread.c.
References probe_ops::destroy, probe::pops, VEC(), VEC_free, and VEC_iterate.
Referenced by _initialize_elfread().
|
static |
Definition at line 1275 of file elfread.c.
References dwarf2_build_psymtabs(), and dwarf2_has_info().
|
static |
Definition at line 192 of file elfread.c.
References gdb_bfd_section_index(), gdbarch_addr_bits_remove(), get_objfile_arch(), mst_file_text, mst_text, mst_text_gnu_ifunc, objfile::obfd, and prim_record_minimal_symbol_full().
Referenced by elf_rel_plt_read(), and elf_symtab_read().
|
static |
Definition at line 1319 of file elfread.c.
References gdb_assert, probe_ops::get_probes, objfile::obfd, probe_key, VEC_iterate, and VEC_reserve.
Referenced by probe_key_free().
|
static |
Definition at line 1429 of file elfread.c.
Referenced by _initialize_elfread().
|
static |
Definition at line 623 of file elfread.c.
Referenced by _initialize_elfread(), elf_gnu_ifunc_record_cache(), and elf_gnu_ifunc_resolve_by_cache().
|
static |
Definition at line 1412 of file elfread.c.
Referenced by elf_symfile_read().
Definition at line 1395 of file elfread.c.
Referenced by elf_symfile_read().
|
static |
Definition at line 67 of file elfread.c.
Referenced by _initialize_elfread(), and VEC().