|
GDB (xrefs)
|
#include "symfile-add-flags.h"Go to the source code of this file.
Macros | |
| #define | so_list_head current_program_space->so_list |
Functions | |
| void | clear_solib (void) |
| void | solib_add (const char *, int, int) |
| int | solib_read_symbols (struct so_list *, symfile_add_flags) |
| void | solib_create_inferior_hook (int from_tty) |
| char * | solib_name_from_address (struct program_space *, CORE_ADDR) |
| int | solib_contains_address_p (const struct so_list *, CORE_ADDR) |
| int | solib_keep_data_in_core (CORE_ADDR vaddr, unsigned long size) |
| int | in_solib_dynsym_resolve_code (CORE_ADDR) |
| void | no_shared_libraries (const char *ignored, int from_tty) |
| void | set_solib_ops (struct gdbarch *gdbarch, const struct target_so_ops *new_ops) |
| void | update_solib_list (int from_tty) |
| int | libpthread_name_p (const char *name) |
| CORE_ADDR | gdb_bfd_lookup_symbol (bfd *abfd, int(*match_sym)(const asymbol *, const void *), const void *data) |
| CORE_ADDR | gdb_bfd_lookup_symbol_from_symtab (bfd *abfd, int(*match_sym)(const asymbol *, const void *), const void *data) |
| void | update_solib_breakpoints (void) |
| void | handle_solib_event (void) |
| #define so_list_head current_program_space->so_list |
Definition at line 32 of file solib.h.
Referenced by clear_solib(), info_sharedlibrary_command(), master_so_list(), reload_shared_libraries_1(), remove_user_added_objfile(), solib_add(), solib_used(), and update_solib_list().
| CORE_ADDR gdb_bfd_lookup_symbol | ( | bfd * | abfd, |
| int(*)(const asymbol *, const void *) | match_sym, | ||
| const void * | data | ||
| ) |
Definition at line 1582 of file solib.c.
References bfd_lookup_symbol_from_dyn_symtab(), and gdb_bfd_lookup_symbol_from_symtab().
Referenced by enable_break(), and enable_break2().
| CORE_ADDR gdb_bfd_lookup_symbol_from_symtab | ( | bfd * | abfd, |
| int(*)(const asymbol *, const void *) | match_sym, | ||
| const void * | data | ||
| ) |
Definition at line 1483 of file solib.c.
References do_cleanups(), gdbarch_elf_make_msymbol_special(), gdbarch_elf_make_msymbol_special_p(), make_cleanup(), memset(), MSYMBOL_VALUE_RAW_ADDRESS, SET_MSYMBOL_VALUE_ADDRESS, target_gdbarch(), xfree(), and xmalloc().
Referenced by gdb_bfd_lookup_symbol().
| void handle_solib_event | ( | void | ) |
Definition at line 1286 of file solib.c.
References auto_solib_add, clear_program_space_solib_cache(), current_inferior(), target_so_ops::handle_event, target_terminal::inferior(), target_terminal::ours_for_output(), solib_add(), solib_ops(), and target_gdbarch().
Referenced by bpstat_stop_status(), and handle_inferior_event_1().
| int in_solib_dynsym_resolve_code | ( | CORE_ADDR | ) |
Definition at line 1239 of file solib.c.
References target_so_ops::in_dynsym_resolve_code, solib_ops(), and target_gdbarch().
Referenced by process_event_stop_test().
| int libpthread_name_p | ( | const char * | name | ) |
Definition at line 938 of file solib.c.
References name.
Referenced by has_libpthread(), libpthread_solib_p(), thread_db_new_objfile(), and try_thread_db_load_from_pdir().
| void no_shared_libraries | ( | const char * | ignored, |
| int | from_tty | ||
| ) |
Definition at line 1261 of file solib.c.
References clear_solib(), and objfile_purge_solibs().
Referenced by _initialize_solib(), detach_command(), disconnect_command(), follow_exec(), release_program_space(), remote_open_1(), symbol_file_clear(), and target_pre_inferior().
| void set_solib_ops | ( | struct gdbarch * | gdbarch, |
| const struct target_so_ops * | new_ops | ||
| ) |
Definition at line 77 of file solib.c.
References solib_data.
Referenced by arm_symbian_init_abi(), dicos_init_abi(), frv_gdbarch_init(), i386_darwin_init_abi(), i386nto_init_abi(), mips_linux_init_abi(), ppc_linux_init_abi(), rs6000_aix_init_osabi(), set_solib_svr4_fetch_link_map_offsets(), set_spu_solib_ops(), tic6x_uclinux_init_abi(), windows_init_abi(), and x86_darwin_init_abi_64().
| void solib_add | ( | const char * | , |
| int | , | ||
| int | |||
| ) |
Definition at line 961 of file solib.c.
References _, breakpoint_re_set(), current_program_space, error(), info_verbose, libpthread_solib_p(), print_symbol_loading_p(), printf_unfiltered(), re_comp(), reinit_frame_cache(), so_list_head, program_space::solib_add_generation, solib_read_symbols(), SYMFILE_DEFER_BP_RESET, SYMFILE_VERBOSE, and update_solib_list().
Referenced by enable_break(), frv_fetch_objfile_link_map(), handle_solib_event(), post_create_inferior(), reload_shared_libraries(), remote_start_remote(), sharedlibrary_command(), and svr4_fetch_objfile_link_map().
Definition at line 1148 of file solib.c.
References target_section::addr, target_section::endaddr, and so_list::sections.
Referenced by disable_breakpoints_in_unloaded_shlib(), and solib_name_from_address().
| void solib_create_inferior_hook | ( | int | from_tty | ) |
Definition at line 1228 of file solib.c.
References target_so_ops::solib_create_inferior_hook, solib_ops(), and target_gdbarch().
Referenced by follow_exec(), follow_fork_inferior(), post_create_inferior(), procfs_create_inferior(), procfs_post_attach(), and reload_shared_libraries().
| int solib_keep_data_in_core | ( | CORE_ADDR | vaddr, |
| unsigned long | size | ||
| ) |
Definition at line 1190 of file solib.c.
References target_so_ops::keep_data_in_core, size, solib_ops(), and target_gdbarch().
Referenced by gcore_create_callback().
| char* solib_name_from_address | ( | struct program_space * | , |
| CORE_ADDR | |||
| ) |
Definition at line 1172 of file solib.c.
References so_list::next, so_list::pspace, program_space::so_list, so_list::so_name, and solib_contains_address_p().
Referenced by disable_breakpoints_in_shlibs(), gdbpy_solib_name(), insert_bp_location(), print_frame(), and remove_breakpoint_1().
| int solib_read_symbols | ( | struct so_list * | , |
| symfile_add_flags | |||
| ) |
Definition at line 676 of file solib.c.
References _, so_list::abfd, so_list::addr_low, objfile::addr_low, ALL_OBJFILES, build_section_addr_info_from_section_table(), CATCH, current_inferior(), END_CATCH, exception_fprintf(), flags, free_section_addr_info(), gdb_stderr, OBJF_SHARED, so_list::objfile, objfile_name(), RETURN_MASK_ERROR, so_list::sections, so_list::sections_end, so_list::so_name, symbol_file_add_from_bfd(), so_list::symbols_loaded, inferior::symfile_flags, and TRY.
Referenced by bsd_uthread_solib_loaded(), ppc_linux_spe_context_solib_loaded(), reload_shared_libraries_1(), solib_add(), and spu_solib_loaded().
| void update_solib_breakpoints | ( | void | ) |
Definition at line 1275 of file solib.c.
References solib_ops(), target_gdbarch(), and target_so_ops::update_breakpoints.
Referenced by set_stop_on_solib_events().
| void update_solib_list | ( | int | from_tty | ) |
Definition at line 747 of file solib.c.
References _, CATCH, current_inferior(), current_program_space, target_so_ops::current_sos, END_CATCH, exception_fprintf(), free_so(), gdb_stderr, inferior_ptid, so_list::next, null_ptid, OBJF_USERLOADED, observer_notify_solib_loaded(), observer_notify_solib_unloaded(), target_so_ops::open_symbol_file_object, so_list::pspace, ptid_equal(), remove_target_sections(), RETURN_MASK_ALL, RETURN_MASK_ERROR, target_so_ops::same, so_list_head, so_list::so_original_name, solib_map_sections(), solib_ops(), solib_used(), symfile_objfile, target_gdbarch(), target_has_execution, TRY, VEC_safe_push, and warning().
Referenced by info_sharedlibrary_command(), mi_cmd_file_list_shared_libraries(), and solib_add().
1.8.14