GDB (xrefs)
|
Go to the source code of this file.
Macros | |
#define | exec_bfd current_program_space->ebfd |
#define | exec_bfd_mtime current_program_space->ebfd_mtime |
#define | exec_filename current_program_space->pspace_exec_filename |
Functions | |
int | build_section_table (struct bfd *, struct target_section **, struct target_section **) |
void | clear_section_table (struct target_section_table *table) |
enum target_xfer_status | exec_read_partial_read_only (gdb_byte *readbuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
enum target_xfer_status | section_table_xfer_memory_partial (gdb_byte *, const gdb_byte *, ULONGEST, ULONGEST, ULONGEST *, struct target_section *, struct target_section *, const char *) |
enum target_xfer_status | section_table_read_available_memory (gdb_byte *readbuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
void | exec_set_section_address (const char *, int, CORE_ADDR) |
void | remove_target_sections (void *owner) |
void | add_target_sections (void *owner, struct target_section *sections, struct target_section *sections_end) |
void | add_target_sections_of_objfile (struct objfile *objfile) |
void | print_section_info (struct target_section_table *table, bfd *abfd) |
void | exec_close (void) |
#define exec_bfd current_program_space->ebfd |
Definition at line 32 of file exec.h.
Referenced by add_symbol_file_from_memory_command(), add_vsyscall_page(), clear_solib(), compare_sections_command(), core_addr_to_ps_addr(), core_open(), cris_delayed_get_disassembler(), darwin_solib_create_inferior_hook(), default_gcore_arch(), default_gcore_mach(), default_gcore_target(), disable_breakpoints_in_unloaded_shlib(), elf_locate_base(), elf_lookup_lib_symbol(), enable_break(), enable_break2(), enable_thread_event(), exec_close(), exec_file_attach(), exec_files_info(), exec_read_partial_read_only(), find_program_interpreter(), find_source_lines(), gdbarch_update_p(), gdbsim_create_inferior(), gdbsim_files_info(), gdbsim_open(), get_sim_inferior_data(), lm_base(), m32r_create_inferior(), m32r_files_info(), m32r_load(), maintenance_info_sections(), mips_create_inferior(), mips_load(), monitor_create_inferior(), monitor_load(), objfile_find_memory_regions(), post_create_inferior(), print_section_info(), procfs_create_inferior(), procfs_post_attach(), ps_addr_to_core_addr(), remote_trace_set_readonly_regions(), reopen_exec_file(), reread_symbols(), rs6000_create_inferior(), rw_common(), svr4_current_sos_direct(), svr4_exec_displacement(), svr4_relocate_main_executable(), thread_db_get_thread_local_address(), and validate_files().
#define exec_bfd_mtime current_program_space->ebfd_mtime |
Definition at line 33 of file exec.h.
Referenced by exec_close(), exec_file_attach(), find_source_lines(), and reopen_exec_file().
#define exec_filename current_program_space->pspace_exec_filename |
Definition at line 34 of file exec.h.
Referenced by exec_close(), exec_file_attach(), and get_exec_file().
void add_target_sections | ( | void * | owner, |
struct target_section * | sections, | ||
struct target_section * | sections_end | ||
) |
Definition at line 492 of file exec.c.
References current_target_sections, exec_ops, target_section::owner, push_target(), resize_section_table(), target_section_table::sections, and target_is_pushed().
Referenced by exec_file_attach(), and solib_map_sections().
void add_target_sections_of_objfile | ( | struct objfile * | objfile | ) |
Definition at line 522 of file exec.c.
References target_section::addr, ALL_OBJFILE_OSECTIONS, current_target_sections, target_section::endaddr, gdb_assert, obj_section_addr, obj_section_endaddr, target_section::owner, resize_section_table(), target_section_table::sections, obj_section::the_bfd_section, and target_section::the_bfd_section.
Referenced by add_symbol_file_command(), and symbol_file_add_from_memory().
int build_section_table | ( | struct bfd * | , |
struct target_section ** | , | ||
struct target_section ** | |||
) |
Definition at line 470 of file exec.c.
References _, add_to_section_table(), internal_error(), xfree(), and xmalloc().
Referenced by core_open(), exec_file_attach(), record_full_core_open_1(), solib_map_sections(), and target_bfd_reopen().
void clear_section_table | ( | struct target_section_table * | table | ) |
Definition at line 433 of file exec.c.
References target_section_table::sections, target_section_table::sections_end, and xfree().
Referenced by exec_close_1(), release_program_space(), and resize_section_table().
void exec_close | ( | void | ) |
Definition at line 88 of file exec.c.
References exec_bfd, exec_bfd_mtime, exec_filename, gdb_bfd_unref(), remove_target_sections(), and xfree().
Referenced by exec_close_1(), exec_file_attach(), exec_file_clear(), and release_program_space().
enum target_xfer_status exec_read_partial_read_only | ( | gdb_byte * | readbuf, |
ULONGEST | offset, | ||
ULONGEST | len, | ||
ULONGEST * | xfered_len | ||
) |
Definition at line 611 of file exec.c.
References exec_bfd, len, size, TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by section_table_read_available_memory(), and tfile_xfer_partial().
Definition at line 980 of file exec.c.
References target_section::addr, current_target_sections, target_section::endaddr, target_section_table::sections, target_section_table::sections_end, and target_section::the_bfd_section.
Referenced by default_symfile_offsets(), objfile_relocate1(), and svr4_relocate_main_executable().
void print_section_info | ( | struct target_section_table * | table, |
bfd * | abfd | ||
) |
Definition at line 856 of file exec.c.
References _, target_section::addr, target_section::endaddr, exec_bfd, gdbarch_addr_bit(), gdbarch_addr_bits_remove(), gdbarch_from_bfd(), hex_string_custom(), info_verbose, paddress(), printf_filtered(), target_section_table::sections, target_section_table::sections_end, target_section::the_bfd_section, warning(), and wrap_here().
Referenced by core_files_info(), and exec_files_info().
void remove_target_sections | ( | void * | owner | ) |
Definition at line 568 of file exec.c.
References ALL_PSPACES, current_target_sections, exec_ops, gdb_assert, target_section::owner, resize_section_table(), target_section_table::sections, target_section_table::sections_end, program_space::target_sections, and unpush_target().
Referenced by clear_solib(), exec_close(), reload_shared_libraries_1(), symfile_free_objfile(), and update_solib_list().
enum target_xfer_status section_table_read_available_memory | ( | gdb_byte * | readbuf, |
ULONGEST | offset, | ||
ULONGEST | len, | ||
ULONGEST * | xfered_len | ||
) |
Definition at line 700 of file exec.c.
References do_cleanups(), exec_ops, exec_read_partial_read_only(), gdb_assert, len, mem_range::length, make_cleanup(), mem_ranges_overlap(), min, normalize_mem_ranges(), offset, target_section_table::sections, target_section_table::sections_end, mem_range::start, status, target_get_section_table(), TARGET_XFER_UNAVAILABLE, VEC(), VEC_cleanup, and VEC_iterate.
Referenced by tfile_xfer_partial().
enum target_xfer_status section_table_xfer_memory_partial | ( | gdb_byte * | , |
const gdb_byte * | , | ||
ULONGEST | , | ||
ULONGEST | , | ||
ULONGEST * | , | ||
struct target_section * | , | ||
struct target_section * | , | ||
const char * | |||
) |
Definition at line 754 of file exec.c.
References _, target_section::addr, target_section::endaddr, internal_error(), len, offset, TARGET_XFER_EOF, TARGET_XFER_OK, and target_section::the_bfd_section.
Referenced by core_xfer_partial(), exec_xfer_partial(), memory_xfer_partial_1(), and target_bfd_xfer_partial().