GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
#include "solib.h"
#include "solist.h"
#include "frv-tdep.h"
#include "objfiles.h"
#include "symtab.h"
#include "language.h"
#include "command.h"
#include "gdbcmd.h"
#include "elf/frv.h"
#include "gdb_bfd.h"
Go to the source code of this file.
Classes | |
struct | ext_elf32_fdpic_loadseg |
struct | ext_elf32_fdpic_loadmap |
struct | int_elf32_fdpic_loadseg |
struct | int_elf32_fdpic_loadmap |
struct | ext_elf32_fdpic_loadaddr |
struct | ext_link_map |
struct | lm_info |
Typedefs | |
typedef gdb_byte | ext_Elf32_Half[2] |
typedef gdb_byte | ext_Elf32_Addr[4] |
typedef gdb_byte | ext_Elf32_Word[4] |
typedef gdb_byte | ext_ptr[4] |
Enumerations | |
enum | { FRV_PTR_SIZE = 4 } |
Variables | |
static unsigned int | solib_frv_debug |
static struct lm_info * | main_executable_lm_info |
static CORE_ADDR | lm_base_cache = 0 |
static CORE_ADDR | main_lm_addr = 0 |
static CORE_ADDR | interp_text_sect_low |
static CORE_ADDR | interp_text_sect_high |
static CORE_ADDR | interp_plt_sect_low |
static CORE_ADDR | interp_plt_sect_high |
static int | enable_break2_done = 0 |
struct target_so_ops | frv_so_ops |
initialize_file_ftype | _initialize_frv_solib |
typedef gdb_byte ext_Elf32_Addr[4] |
Definition at line 46 of file solib-frv.c.
typedef gdb_byte ext_Elf32_Half[2] |
Definition at line 45 of file solib-frv.c.
typedef gdb_byte ext_Elf32_Word[4] |
Definition at line 47 of file solib-frv.c.
typedef gdb_byte ext_ptr[4] |
Definition at line 181 of file solib-frv.c.
anonymous enum |
Enumerator | |
---|---|
FRV_PTR_SIZE |
Definition at line 38 of file solib-frv.c.
void _initialize_frv_solib | ( | void | ) |
Definition at line 1175 of file solib-frv.c.
References _, add_setshow_zuinteger_cmd(), target_so_ops::bfd_open, class_maintenance, target_so_ops::clear_solib, target_so_ops::current_sos, target_so_ops::free_so, frv_clear_solib(), frv_current_sos(), frv_free_so(), frv_in_dynsym_resolve_code(), frv_relocate_section_addresses(), frv_so_ops, frv_solib_create_inferior_hook(), frv_special_symbol_handling(), target_so_ops::in_dynsym_resolve_code, target_so_ops::open_symbol_file_object, open_symbol_file_object(), target_so_ops::relocate_section_addresses, setdebuglist, showdebuglist, solib_bfd_open(), target_so_ops::solib_create_inferior_hook, solib_frv_debug, and target_so_ops::special_symbol_handling.
|
static |
Definition at line 487 of file solib-frv.c.
Referenced by enable_break2().
|
static |
Definition at line 456 of file solib-frv.c.
References int_elf32_fdpic_loadseg::addr, int_elf32_fdpic_loadmap::nsegs, int_elf32_fdpic_loadseg::p_memsz, int_elf32_fdpic_loadseg::p_vaddr, and int_elf32_fdpic_loadmap::segs.
Referenced by enable_break2(), and find_canonical_descriptor_in_load_object().
|
static |
Definition at line 723 of file solib-frv.c.
References create_solib_event_breakpoint(), entry_point_address_query(), exec_bfd, fprintf_unfiltered(), gdb_stdlog, hex_string_custom(), solib_frv_debug, symfile_objfile, and target_gdbarch().
Referenced by frv_solib_create_inferior_hook().
|
static |
Definition at line 517 of file solib-frv.c.
References _, CATCH, cmp_name(), create_solib_event_breakpoint(), displacement_from_map(), enable_break2_done, enable_break_failure_warning(), END_CATCH, exec_bfd, extract_unsigned_integer(), fetch_loadmap(), fprintf_unfiltered(), frv_fdpic_loadmap_addresses(), FRV_PTR_SIZE, gdb_bfd_lookup_symbol(), gdb_bfd_unref(), gdb_stdlog, gdbarch_byte_order(), hex_string_custom(), interp_plt_sect_high, interp_plt_sect_low, interp_text_sect_high, interp_text_sect_low, remove_solib_event_breakpoints(), RETURN_MASK_ALL, solib_bfd_open(), solib_frv_debug, status, target_gdbarch(), target_read_memory(), TRY, warning(), and xfree().
Referenced by frv_current_sos().
|
static |
Definition at line 477 of file solib-frv.c.
Referenced by enable_break2().
|
static |
Definition at line 97 of file solib-frv.c.
References ext_elf32_fdpic_loadseg::addr, int_elf32_fdpic_loadseg::addr, extract_unsigned_integer(), gdbarch_byte_order(), ext_elf32_fdpic_loadmap::nsegs, int_elf32_fdpic_loadmap::nsegs, ext_elf32_fdpic_loadseg::p_memsz, int_elf32_fdpic_loadseg::p_memsz, ext_elf32_fdpic_loadseg::p_vaddr, int_elf32_fdpic_loadseg::p_vaddr, ext_elf32_fdpic_loadmap::segs, int_elf32_fdpic_loadmap::segs, target_gdbarch(), target_read_memory(), version, ext_elf32_fdpic_loadmap::version, int_elf32_fdpic_loadmap::version, xfree(), and xmalloc().
Referenced by enable_break2(), frv_current_sos(), and frv_relocate_main_executable().
|
static |
Definition at line 1022 of file solib-frv.c.
References displacement_from_map(), lm_info::dyn_reloc_count, lm_info::dyn_relocs, lm_info::dyn_syms, extract_unsigned_integer(), FRV_PTR_SIZE, gdbarch_byte_order(), lm_info::map, target_gdbarch(), target_read_memory(), and xmalloc().
Referenced by frv_fdpic_find_canonical_descriptor().
|
static |
Definition at line 871 of file solib-frv.c.
References lm_info::dyn_relocs, lm_info::dyn_syms, enable_break2_done, lm_base_cache, main_lm_addr, lm_info::map, and xfree().
Referenced by _initialize_frv_solib().
|
static |
Definition at line 316 of file solib-frv.c.
References _, core_bfd, enable_break2(), extract_unsigned_integer(), fetch_loadmap(), fprintf_unfiltered(), frv_relocate_main_executable(), gdb_stdlog, gdbarch_byte_order(), lm_info::got_value, hex_string_custom(), ext_link_map::l_addr, ext_link_map::l_name, ext_link_map::l_next, lm_info::lm_addr, lm_addr(), lm_base(), so_list::lm_info, main_got(), main_lm_addr, ext_elf32_dsbt_loadaddr::map, lm_info::map, so_list::next, safe_strerror(), so_list::so_name, SO_NAME_MAX_PATH_SIZE, so_list::so_original_name, solib_frv_debug, target_gdbarch(), target_read_memory(), target_read_string(), warning(), xcalloc(), and xfree().
Referenced by _initialize_frv_solib().
Definition at line 973 of file solib-frv.c.
References so_list::abfd, find_canonical_descriptor_in_load_object(), find_pc_function(), frv_fdpic_find_global_pointer(), so_list::lm_info, master_so_list(), name, so_list::next, SYMBOL_LINKAGE_NAME, and symfile_objfile.
Referenced by find_func_descr().
Definition at line 937 of file solib-frv.c.
References int_elf32_fdpic_loadseg::addr, lm_info::got_value, so_list::lm_info, main_got(), lm_info::map, master_so_list(), so_list::next, int_elf32_fdpic_loadmap::nsegs, int_elf32_fdpic_loadseg::p_memsz, and int_elf32_fdpic_loadmap::segs.
Referenced by find_func_descr(), frv_convert_from_func_ptr_addr(), frv_fdpic_find_canonical_descriptor(), and frv_push_dummy_call().
Definition at line 1145 of file solib-frv.c.
References lm_info::lm_addr, so_list::lm_info, main_lm_addr, master_so_list(), so_list::next, so_list::objfile, solib_add(), and symfile_objfile.
Referenced by frv_gdbarch_init().
|
static |
Definition at line 887 of file solib-frv.c.
References lm_info::dyn_relocs, lm_info::dyn_syms, so_list::lm_info, lm_info::map, and xfree().
Referenced by _initialize_frv_solib().
Definition at line 445 of file solib-frv.c.
References in_plt_section(), interp_plt_sect_high, interp_plt_sect_low, interp_text_sect_high, and interp_text_sect_low.
Referenced by _initialize_frv_solib().
|
static |
Definition at line 776 of file solib-frv.c.
References _, int_elf32_fdpic_loadseg::addr, ALL_OBJFILE_OSECTIONS, ANOFFSET, do_cleanups(), error(), fetch_loadmap(), frv_fdpic_loadmap_addresses(), lm_info::got_value, main_got(), make_cleanup(), lm_info::map, int_elf32_fdpic_loadmap::nsegs, obj_section_addr, objfile_relocate(), offset, section_offsets::offsets, int_elf32_fdpic_loadseg::p_memsz, int_elf32_fdpic_loadseg::p_vaddr, int_elf32_fdpic_loadmap::segs, status, symfile_objfile, target_gdbarch(), xcalloc(), and xfree().
Referenced by frv_current_sos(), and frv_solib_create_inferior_hook().
|
static |
Definition at line 896 of file solib-frv.c.
References int_elf32_fdpic_loadseg::addr, target_section::addr, target_section::endaddr, so_list::lm_info, lm_info::map, int_elf32_fdpic_loadmap::nsegs, int_elf32_fdpic_loadseg::p_memsz, int_elf32_fdpic_loadseg::p_vaddr, and int_elf32_fdpic_loadmap::segs.
Referenced by _initialize_frv_solib().
|
static |
Definition at line 857 of file solib-frv.c.
References _, enable_break(), frv_relocate_main_executable(), and warning().
Referenced by _initialize_frv_solib().
|
static |
Definition at line 770 of file solib-frv.c.
Referenced by _initialize_frv_solib().
|
static |
Definition at line 264 of file solib-frv.c.
References BMSYMBOL_VALUE_ADDRESS, extract_unsigned_integer(), fprintf_unfiltered(), FRV_PTR_SIZE, gdb_stdlog, gdbarch_byte_order(), hex_string_custom(), lm_base_cache, lookup_minimal_symbol(), bound_minimal_symbol::minsym, solib_frv_debug, symfile_objfile, target_gdbarch(), and target_read_memory().
Referenced by frv_current_sos().
|
static |
Definition at line 922 of file solib-frv.c.
References BMSYMBOL_VALUE_ADDRESS, lookup_minimal_symbol(), and symfile_objfile.
Referenced by frv_current_sos(), frv_fdpic_find_global_pointer(), and frv_relocate_main_executable().
|
static |
Definition at line 243 of file solib-frv.c.
Referenced by _initialize_frv_solib().
initialize_file_ftype _initialize_frv_solib |
|
static |
Definition at line 514 of file solib-frv.c.
Referenced by enable_break2(), and frv_clear_solib().
struct target_so_ops frv_so_ops |
Definition at line 1169 of file solib-frv.c.
Referenced by _initialize_frv_solib(), and frv_gdbarch_init().
|
static |
Definition at line 442 of file solib-frv.c.
Referenced by dsbt_in_dynsym_resolve_code(), enable_break2(), frv_in_dynsym_resolve_code(), and svr4_in_dynsym_resolve_code().
|
static |
Definition at line 441 of file solib-frv.c.
Referenced by enable_break2(), and frv_in_dynsym_resolve_code().
|
static |
Definition at line 440 of file solib-frv.c.
Referenced by dsbt_in_dynsym_resolve_code(), enable_break2(), frv_in_dynsym_resolve_code(), and svr4_in_dynsym_resolve_code().
|
static |
Definition at line 439 of file solib-frv.c.
Referenced by enable_break2(), and frv_in_dynsym_resolve_code().
|
static |
Definition at line 250 of file solib-frv.c.
Referenced by frv_clear_solib(), and lm_base().
|
static |
Definition at line 234 of file solib-frv.c.
|
static |
Definition at line 253 of file solib-frv.c.
Referenced by frv_clear_solib(), frv_current_sos(), and frv_fetch_objfile_link_map().
|
static |
Definition at line 35 of file solib-frv.c.
Referenced by _initialize_frv_solib(), enable_break(), enable_break2(), frv_current_sos(), and lm_base().