GDB (xrefs)

Classes | Functions
target.h File Reference
`#include "target/waitstatus.h"`

Go to the source code of this file.

## Classes
class | target_terminal
class | target_terminal::scoped_restore_terminal_state

## Functions
int | target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
int | target_read_uint32 (CORE_ADDR memaddr, uint32_t *result)
int | target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
void | target_stop_and_wait (ptid_t ptid)
void | target_continue_no_signal (ptid_t ptid)
void | target_continue (ptid_t ptid, enum gdb_signal signal)
ptid_t | target_wait (ptid_t ptid, struct target_waitstatus *status, int options)
void | target_mourn_inferior (ptid_t ptid)
int | target_supports_multi_process (void)

## Function Documentation

## ◆ target_continue()

void target_continue | ( | ptid_t | ptid,
|  | enum gdb_signal | signal
| ) |  |

Definition at line 3383 of file target.c.

References target_resume().

Referenced by startup_inferior().

## ◆ target_continue_no_signal()

void target_continue_no_signal | ( | ptid_t | ptid | ) |

Definition at line 3375 of file target.c.

References target_resume().

Referenced by agent_run_command(), cleanup_target_stop(), procfs_wait(), and startup_inferior().

## ◆ target_mourn_inferior()

void target_mourn_inferior | ( | ptid_t | ptid | ) |

Definition at line 2298 of file target.c.

References current_target, gdb_assert, inferior_ptid, thread_info::ptid, ptid_equal(), and target_ops::to_mourn_inferior.

Referenced by darwin_kill_inferior(), gdbsim_kill(), get_windows_debug_event(), gnu_kill_inferior(), handle_inferior_event_1(), inf_ptrace_kill(), interrupt_query(), linux_nat_attach(), linux_nat_kill(), procfs_kill_inferior(), record_mourn_inferior(), remote_detach_1(), remote_kill(), startup_inferior(), and windows_kill_inferior().

## ◆ target_read_memory()

int target_read_memory | ( | CORE_ADDR | memaddr,
|  | gdb_byte * | myaddr,
|  | ssize_t | len
| ) |  |

Definition at line 1370 of file target.c.

References target_ops::beneath, current_target, TARGET_OBJECT_MEMORY, and target_read().

Referenced by aarch64_fbsd_sigframe_init(), aarch64_get_longjmp_target(), aarch64_process_record(), aarch64_stub_unwind_sniffer(), agent_run_command(), alpha_get_longjmp_target(), alpha_read_insn(), alpha_skip_prologue(), alphanbsd_sigtramp_offset(), amd64_get_longjmp_target(), amd64_skip_main_prologue(), amd64_stack_frame_destroyed_p(), amd64_windows_find_unwind_info(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), amd64_windows_skip_prologue(), amd64_x32_analyze_stack_align(), arc_get_longjmp_target(), arm_breakpoint_kind_from_current_state(), arm_breakpoint_kind_from_pc(), arm_get_longjmp_target(), arm_skip_bx_reg(), arm_stub_unwind_sniffer(), arm_symbian_skip_trampoline_code(), BP_MANIPULATION(), bsd_uthread_wait(), call0_analyze_prologue(), call0_ret(), cp_print_value(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr_at_init(), darwin_read_exec_load_addr_from_dyld(), darwin_validate_exec_header(), default_memory_insert_breakpoint(), displaced_step_prepare_throw(), do_search_struct_field(), dsbt_current_sos(), elf_gnu_ifunc_resolve_by_got(), elf_locate_base(), enable_break2(), execute_code(), fetch_instruction(), fetch_loadmap(), fetch_mips_16(), find_canonical_descriptor_in_load_object(), find_extant_func_descr(), frv_analyze_prologue(), frv_current_sos(), frv_linux_pc_in_sigtramp(), frv_linux_sigcontext_reg_addr(), frv_skip_main_prologue(), gcore_copy_callback(), gdbscm_memory_port_fill_input(), hppa64_convert_code_addr_to_fptr(), hppa_linux_find_global_pointer(), hppa_match_insns(), hppa_stack_frame_destroyed_p(), hppabsd_find_global_pointer(), i386_darwin_sstep_at_sigreturn(), i386_get_longjmp_target(), i386_in_stack_tramp_p(), i386_linux_resume(), i386_stack_frame_destroyed_p(), ia64_breakpoint_from_pc(), ia64_convert_from_func_ptr_addr(), ia64_find_global_pointer_from_dynamic_section(), ia64_memory_insert_breakpoint(), ia64_memory_remove_breakpoint(), insns_match_pattern(), jit_read_code_entry(), jit_read_descriptor(), jit_reader_try_read_symtab(), jit_target_read_impl(), ld_so_xfer_auxv(), lm_base(), lm_info_read(), load_progress(), m32c_analyze_prologue(), m32r_memory_insert_breakpoint(), m68hc11_pseudo_register_read(), m68k_get_longjmp_target(), mem_bfd_iovec_pread(), memory_validate_breakpoint(), mi_cmd_trace_frame_collected(), microblaze_linux_memory_remove_breakpoint(), mips64_fbsd_sigframe_init(), mips64_linux_get_longjmp_target(), mips_fbsd_sigframe_init(), mips_fetch_instruction(), mips_get_mips16_fn_stub_pc(), mips_linux_get_longjmp_target(), mips_skip_pic_trampoline_code(), mips_stub_frame_sniffer(), mipsnbsd_get_longjmp_target(), mn10300_analyze_prologue(), moxie_process_readu(), msp430_get_opcode_byte(), nds32_get_longjmp_target(), nios2_get_longjmp_target(), nios2_stub_frame_sniffer(), nto_read_auxv_from_initial_stack(), parse_spufs_run(), partial_memory_read(), pascal_object_print_value(), pdc_read_data(), ppc_linux_memory_remove_breakpoint(), ppc_linux_spe_context(), ppu2spu_sniffer(), program_breakpoint_here_p(), ps_xfer_memory(), read_memory_backward(), read_program_header(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), record_read_memory(), remote_fileio_func_open(), remote_fileio_func_rename(), remote_fileio_func_stat(), remote_fileio_func_system(), remote_fileio_func_unlink(), remote_fileio_func_write(), rl78_get_opcode_byte(), rs6000_fetch_instruction(), rs6000_skip_main_prologue(), rw_common(), s390_process_record(), s390_readinstruction(), s390_sigtramp_frame_sniffer(), s390_stack_frame_destroyed_p(), safe_frame_unwind_memory(), safe_read_memory_integer(), safe_read_memory_unsigned_integer(), scan_dyntag(), score3_adjust_pc_and_fetch_inst(), score7_breakpoint_kind_from_pc(), score7_fetch_inst(), score7_malloc_and_get_memblock(), search_struct_method(), skip_prologue(), skip_prologue_hard_way(), sparc64_linux_get_longjmp_target(), sparc_fetch_instruction(), sparc_supply_rwindow(), spu2ppu_sniffer(), spu_analyze_prologue(), spu_bfd_iovec_pread(), spu_frame_unwind_cache(), spu_get_longjmp_target(), spu_software_single_step(), spu_stack_frame_destroyed_p(), stap_modify_semaphore(), target_read_memory_bfd(), target_read_string(), target_read_uint32(), target_write_memory_blocks(), thumb2_copy_table_branch(), thumb_stack_frame_destroyed_p(), tic6x_get_longjmp_target(), tilegx_get_longjmp_target(), val_print_string(), xstormy16_find_jmp_table_entry(), and xtensa_scan_prologue().

## ◆ target_read_uint32()

int target_read_uint32 | ( | CORE_ADDR | memaddr,
|  | uint32_t * | result
| ) |  |

Definition at line 1385 of file target.c.

References extract_unsigned_integer(), gdbarch_byte_order(), target_gdbarch(), and target_read_memory().

Referenced by agent_capability_check(), and agent_get_helper_thread_id().

## ◆ target_stop_and_wait()

void target_stop_and_wait | ( | ptid_t | ptid | ) |

Definition at line 3358 of file target.c.

References memset(), non_stop, status, target_stop(), and target_wait().

Referenced by agent_run_command().

## ◆ target_supports_multi_process()

int target_supports_multi_process | ( | void |  | ) |

Definition at line 2643 of file target.c.

References current_target, and target_ops::to_supports_multi_process.

Referenced by startup_inferior(), and user_visible_resume_ptid().

## ◆ target_wait()

ptid_t target_wait | ( | ptid_t | ptid,
|  | struct target_waitstatus * | status,
|  | int | options
| ) |  |

Definition at line 2177 of file target.c.

References current_target, thread_info::ptid, status, and target_ops::to_wait.

Referenced by do_target_wait(), process_initial_stop_replies(), spu_skip_standalone_loader(), startup_inferior(), target_stop_and_wait(), and wait_one().

## ◆ target_write_memory()

int target_write_memory | ( | CORE_ADDR | memaddr,
|  | const gdb_byte * | myaddr,
|  | ssize_t | len
| ) |  |

Definition at line 1451 of file target.c.

References target_ops::beneath, current_target, TARGET_OBJECT_MEMORY, and target_write().

Referenced by agent_run_command(), append_insns(), copy_sections(), gdbscm_memory_port_flush(), gdbscm_memory_port_write(), ia64_memory_insert_breakpoint(), ld_so_xfer_auxv(), m32r_memory_insert_breakpoint(), m68hc11_pseudo_register_write(), pdc_write_data(), ps_xfer_memory(), record_full_exec_insn(), remote_fileio_func_fstat(), remote_fileio_func_gettimeofday(), remote_fileio_func_read(), remote_fileio_func_stat(), restore_binary_file(), restore_section_callback(), rw_common(), sparc_collect_rwindow(), spu_push_dummy_call(), stap_modify_semaphore(), store_regs(), and write_memory().