GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-8.1/gdb/gdbcore.h File Reference
#include "bfd.h"
#include "exec.h"
#include "target.h"

Go to the source code of this file.

Classes

struct  core_fns
 
class  thread_section_name
 

Functions

int have_core_file_p (void)
 
void memory_error (enum target_xfer_status status, CORE_ADDR memaddr)
 
std::string memory_error_message (enum target_xfer_status err, struct gdbarch *gdbarch, CORE_ADDR memaddr)
 
void read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
 
void read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
 
void read_code (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
 
LONGEST read_memory_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
 
int safe_read_memory_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order, LONGEST *return_value)
 
ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
 
int safe_read_memory_unsigned_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order, ULONGEST *return_value)
 
LONGEST read_code_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
 
ULONGEST read_code_unsigned_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
 
void read_memory_string (CORE_ADDR, char *, int)
 
CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type)
 
void write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
 
void write_memory_with_notification (CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
 
void write_memory_unsigned_integer (CORE_ADDR addr, int len, enum bfd_endian byte_order, ULONGEST value)
 
void write_memory_signed_integer (CORE_ADDR addr, int len, enum bfd_endian byte_order, LONGEST value)
 
void specify_exec_file_hook (void(*hook)(const char *filename))
 
void core_file_command (const char *filename, int from_tty)
 
void exec_file_attach (const char *filename, int from_tty)
 
void exec_file_locate_attach (int pid, int defer_bp_reset, int from_tty)
 
void exec_file_clear (int from_tty)
 
void validate_files (void)
 
void set_gnutarget (const char *)
 
void deprecated_add_core_fns (struct core_fns *cf)
 
int default_core_sniffer (struct core_fns *cf, bfd *abfd)
 
int default_check_format (bfd *abfd)
 

Variables

void(* deprecated_exec_file_display_hook )(const char *filename)
 
void(* deprecated_file_changed_hook )(const char *filename)
 
bfd * core_bfd
 
struct target_opscore_target
 
int write_files
 
char * gnutarget
 

Function Documentation

◆ core_file_command()

void core_file_command ( const char *  filename,
int  from_tty 
)

◆ default_check_format()

int default_check_format ( bfd *  abfd)

Definition at line 162 of file corelow.c.

◆ default_core_sniffer()

int default_core_sniffer ( struct core_fns cf,
bfd *  abfd 
)

Definition at line 113 of file corelow.c.

◆ deprecated_add_core_fns()

void deprecated_add_core_fns ( struct core_fns cf)

Definition at line 102 of file corelow.c.

References core_file_fns, and core_fns::next.

Referenced by _initialize_arm_netbsd_nat(), and _initialize_cris_tdep().

◆ exec_file_attach()

void exec_file_attach ( const char *  filename,
int  from_tty 
)

◆ exec_file_clear()

void exec_file_clear ( int  from_tty)

Definition at line 121 of file exec.c.

References _, exec_close(), and printf_unfiltered().

◆ exec_file_locate_attach()

void exec_file_locate_attach ( int  pid,
int  defer_bp_reset,
int  from_tty 
)

◆ have_core_file_p()

int have_core_file_p ( void  )

◆ memory_error()

void memory_error ( enum target_xfer_status  status,
CORE_ADDR  memaddr 
)

◆ memory_error_message()

std::string memory_error_message ( enum target_xfer_status  err,
struct gdbarch gdbarch,
CORE_ADDR  memaddr 
)

◆ read_code()

void read_code ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

◆ read_code_integer()

LONGEST read_code_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 336 of file corefile.c.

References extract_signed_integer(), and read_code().

Referenced by i386_analyze_frame_setup().

◆ read_code_unsigned_integer()

ULONGEST read_code_unsigned_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

◆ read_memory()

void read_memory ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

Definition at line 258 of file corefile.c.

References read_memory_object(), and TARGET_OBJECT_MEMORY.

Referenced by ada_value_assign(), ada_value_primitive_packed_val(), alpha_extract_return_value(), alpha_return_value(), amd64_darwin_sigcontext_addr(), amd64_displaced_step_copy_insn(), amd64_relocate_instruction(), amd64_return_value(), amd64_windows_return_value(), amd64obsd_supply_pcb(), amd64obsd_supply_uthread(), avr_frame_prev_register(), avr_scan_prologue(), BP_MANIPULATION_ENDIAN(), dump_memory_to_file(), extract_call_winsize(), get_frame_memory(), get_running_thread_id(), h8300h_return_value(), i386_darwin_sigcontext_addr(), i386_darwin_sstep_at_sigreturn(), i386_displaced_step_copy_insn(), i386_linux_resume(), i386_linux_sigcontext_addr(), i386_relocate_instruction(), i386_return_value(), i386_skip_probe(), i386nbsd_supply_pcb(), i386obsd_supply_pcb(), i386obsd_supply_uthread(), ia64_frame_prev_register(), ia64_linux_sigcontext_register_address(), infpy_read_memory(), iq2000_extract_return_value(), lm32_extract_return_value(), m32c_return_value(), m68k_return_value(), m68k_svr4_return_value(), m68kbsd_supply_pcb(), mep_get_insn(), mep_return_value(), mips_linux_in_dynsym_stub(), mt_return_value(), open_symbol_file_object(), or1k_return_value(), pascal_val_print(), ppcnbsd_supply_pcb(), ppcobsd_supply_pcb(), print_it_exception(), print_object_command(), printf_c_string(), printf_wide_c_string(), read_fat_string_value(), read_known_tasks_array(), read_known_tasks_list(), dwarf_expr_executor::read_mem(), dwarf_evaluate_loc_desc::read_mem(), read_memory_integer(), read_memory_string(), read_memory_typed_address(), read_memory_unsigned_integer(), read_target_long_array(), recpy_bt_insn_data(), resume_1(), rw_pieced_value(), s390_displaced_step_copy_insn(), sparc32_return_value(), sparc64nbsd_supply_pcb(), sparc64obsd_supply_pcb(), spu_get_overlay_table(), supply_register_at_address(), value_assign(), vax_return_value(), and xtensa_push_dummy_call().

◆ read_memory_integer()

LONGEST read_memory_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

◆ read_memory_string()

void read_memory_string ( CORE_ADDR  ,
char *  ,
int   
)

Definition at line 356 of file corefile.c.

References read_memory().

Referenced by ada_exception_message_1(), and ada_tag_name_from_tsd().

◆ read_memory_typed_address()

CORE_ADDR read_memory_typed_address ( CORE_ADDR  addr,
struct type type 
)

◆ read_memory_unsigned_integer()

ULONGEST read_memory_unsigned_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 326 of file corefile.c.

References extract_unsigned_integer(), and read_memory().

Referenced by aarch64_displaced_step_copy_insn(), aarch64_software_single_step(), amd64_displaced_step_fixup(), amd64_windows_skip_trampoline_code(), amd64obsd_collect_uthread(), amd64obsd_supply_uthread(), amd64obsd_trapframe_cache(), append_ocl_sos(), arm_analyze_load_stack_chk_guard(), arm_get_next_pcs_read_memory_unsigned_integer(), arm_linux_get_next_pcs_syscall_next_pc(), arm_linux_get_syscall_number(), arm_linux_rt_sigreturn_init(), arm_linux_sigreturn_init(), arm_linux_sigreturn_next_pc(), arm_pe_skip_trampoline_code(), arm_process_displaced_insn(), arm_stack_frame_destroyed_p_1(), arm_wince_skip_main_prologue(), bfin_breakpoint_kind_from_pc(), bfin_skip_prologue(), BP_MANIPULATION(), branch_dest(), bsd_uthread_check_magic(), bsd_uthread_extra_thread_info(), bsd_uthread_lookup_offset(), bsd_uthread_thread_alive(), cleanup_block_load_all(), cleanup_block_store_pc(), cris_scan_prologue(), decode_prologue(), dip_prefix(), execute_l32e(), find_implementation_from_class(), find_step_target(), get_data_from_address(), get_frame_memory_unsigned(), h8300_analyze_prologue(), h8300_extract_return_value(), h8300_is_argument_spill(), hppa_fallback_frame_cache(), i386_darwin_sstep_at_sigreturn(), i386_displaced_step_fixup(), i386_fetch_pointer_argument(), i386_linux_resume(), i386_pe_skip_trampoline_code(), i386_svr4_sigcontext_addr(), i386bsd_sigcontext_addr(), i386nbsd_sigtramp_cache_init(), i386obsd_collect_uthread(), i386obsd_supply_uthread(), i386obsd_trapframe_cache(), ia64_convert_from_func_ptr_addr(), ia64_sigtramp_frame_prev_register(), iq2000_scan_prologue(), m32c_skip_trampoline_code(), m68hc11_analyze_instruction(), m68k_analyze_frame_setup(), m68k_analyze_prologue(), m68k_analyze_register_saves(), m68k_linux_get_sigtramp_info(), m88k_fetch_instruction(), move_mem_to_reg_movem_op(), moxie_analyze_prologue(), mt_skip_prologue(), nds32_analyze_epilogue(), nds32_analyze_prologue(), nds32_stack_frame_destroyed_p(), nios2_analyze_prologue(), none_reg_mode_jump_op(), ppc64_plt_entry_point(), ppc64_sysv_abi_push_dummy_call(), ppc_linux_sigtramp_cache(), ppc_process_record(), ppc_skip_trampoline_code(), read_insn(), read_objc_class(), read_objc_methlist_nmethods(), read_objc_method(), read_objc_object(), read_objc_super(), rs6000_convert_from_func_ptr_addr(), rs6000_skip_trampoline_code(), s390_linux_get_syscall_number(), s390_process_record(), s390_sigtramp_frame_unwind_cache(), sh64_frame_prev_register(), sh_analyze_prologue(), sh_stack_frame_destroyed_p(), solib_svr4_r_ldsomap(), sparc32_linux_step_trap(), sparc32_return_value(), sparc32obsd_supply_uthread(), sparc64_linux_step_trap(), sparc64obsd_supply_uthread(), spu_overlay_update_osect(), thumb_analyze_prologue(), thumb_process_displaced_insn(), tic6x_fetch_instruction(), v850_analyze_prologue(), xstormy16_analyze_prologue(), and xstormy16_stack_frame_destroyed_p().

◆ read_stack()

void read_stack ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

Definition at line 266 of file corefile.c.

References read_memory_object(), and TARGET_OBJECT_STACK_MEMORY.

◆ safe_read_memory_integer()

int safe_read_memory_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order,
LONGEST return_value 
)

◆ safe_read_memory_unsigned_integer()

int safe_read_memory_unsigned_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order,
ULONGEST return_value 
)

◆ set_gnutarget()

void set_gnutarget ( const char *  )

Definition at line 497 of file corefile.c.

References gnutarget_string, set_gnutarget_command(), and xfree().

Referenced by _initialize_core().

◆ specify_exec_file_hook()

void specify_exec_file_hook ( void(*)(const char *filename)  hook)

◆ validate_files()

void validate_files ( void  )

Definition at line 153 of file corefile.c.

References _, core_bfd, exec_bfd, and warning().

Referenced by core_open(), and exec_file_attach().

◆ write_memory()

void write_memory ( CORE_ADDR  memaddr,
const gdb_byte myaddr,
ssize_t  len 
)

Definition at line 394 of file corefile.c.

References memory_error(), status, target_write_memory(), and TARGET_XFER_E_IO.

Referenced by aarch64_push_dummy_call(), alpha_push_dummy_call(), amd64_displaced_step_copy_insn(), amd64_dtrace_disable_probe(), amd64_dtrace_enable_probe(), amd64_push_arguments(), amd64_push_dummy_call(), amd64_windows_adjust_args_passed_by_pointer(), amd64_windows_push_arguments(), amd64_windows_push_dummy_call(), amd64obsd_collect_uthread(), arc_push_dummy_call(), arm_displaced_init_closure(), arm_push_dummy_call(), avr_push_dummy_call(), bfin_push_dummy_call(), BP_MANIPULATION_ENDIAN(), call_function_by_hand_dummy(), cris_push_dummy_call(), ensure_lval(), find_func_descr(), frv_push_dummy_call(), h8300_push_dummy_call(), hppa32_push_dummy_call(), hppa64_push_dummy_call(), i386_darwin_push_dummy_call(), i386_darwin_sstep_at_sigreturn(), i386_displaced_step_copy_insn(), i386_linux_resume(), i386_push_dummy_call(), i386obsd_collect_uthread(), ia64_pseudo_register_write(), ia64_push_dummy_call(), ia64_store_argument_in_slot(), iq2000_push_dummy_call(), m32c_push_dummy_call(), m32c_return_value(), m32r_push_dummy_call(), m68hc11_push_dummy_call(), m68k_push_dummy_call(), m88k_store_arguments(), mep_push_dummy_call(), mips_eabi_push_dummy_call(), mips_n32n64_push_dummy_call(), mips_o32_push_dummy_call(), mips_o64_push_dummy_call(), mips_push_dummy_code(), mn10300_push_dummy_call(), msp430_push_dummy_call(), mt_push_dummy_call(), mt_return_value(), nds32_push_dummy_call(), nios2_push_dummy_call(), or1k_push_dummy_call(), or1k_return_value(), ppc64_sysv_abi_push_param(), ppc64_sysv_abi_push_val(), ppc_ravenscar_generic_store_registers(), ppc_sysv_abi_push_dummy_call(), push_large_arguments(), put_frame_register(), rl78_push_dummy_call(), rl78_return_value(), rs6000_lynx178_push_dummy_call(), rs6000_push_dummy_call(), rx_push_dummy_call(), s390_displaced_step_copy_insn(), s390_handle_arg(), score_push_dummy_call(), sh64_push_dummy_call(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sparc32_push_dummy_code(), sparc32_return_value(), sparc32_store_arguments(), sparc32obsd_collect_uthread(), sparc64_store_arguments(), sparc64obsd_collect_uthread(), sparc_ravenscar_store_registers(), tic6x_push_dummy_call(), tilegx_push_dummy_call(), v850_push_dummy_call(), value_coerce_to_target(), value_force_lval(), vax_push_dummy_call(), vax_store_arguments(), write_memory_ptid(), write_memory_signed_integer(), write_memory_unsigned_integer(), write_memory_with_notification(), xstormy16_push_dummy_call(), and xtensa_push_dummy_call().

◆ write_memory_signed_integer()

void write_memory_signed_integer ( CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order,
LONGEST  value 
)

◆ write_memory_unsigned_integer()

void write_memory_unsigned_integer ( CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order,
ULONGEST  value 
)

◆ write_memory_with_notification()

void write_memory_with_notification ( CORE_ADDR  memaddr,
const bfd_byte *  myaddr,
ssize_t  len 
)

Variable Documentation

◆ core_bfd

bfd* core_bfd

◆ core_target

struct target_ops* core_target

Definition at line 58 of file corefile.c.

Referenced by core_file_command(), and init_core_ops().

◆ deprecated_exec_file_display_hook

void(* deprecated_exec_file_display_hook) (const char *filename)

Definition at line 47 of file corefile.c.

Referenced by exec_file_attach(), and specify_exec_file_hook().

◆ deprecated_file_changed_hook

void(* deprecated_file_changed_hook) (const char *filename)

Definition at line 48 of file exec.c.

Referenced by file_command().

◆ gnutarget

char* gnutarget

◆ write_files

int write_files

Definition at line 62 of file exec.c.

Referenced by _initialize_exec(), bsd_kvm_open(), captured_main_1(), core_open(), and exec_file_attach().