GDBserver

Public Attributes | List of all members
target_ops Struct Reference

`#include "target.h"`

## Public Attributes
int(* | create_inferior )(const char *program, const std::vector< char *> &program_args)
void(* | post_create_inferior )(void)
int(* | attach )(unsigned long pid)
int(* | kill )(int pid)
int(* | detach )(int pid)
void(* | mourn )(struct process_info *proc)
void(* | join )(int pid)
int(* | thread_alive )(ptid_t pid)
void(* | resume )(struct thread_resume *resume_info, size_t n)
ptid_t(* | wait )(ptid_t ptid, struct target_waitstatus *status, int options)
void(* | fetch_registers )(struct regcache *regcache, int regno)
void(* | store_registers )(struct regcache *regcache, int regno)
int(* | prepare_to_access_memory )(void)
void(* | done_accessing_memory )(void)
int(* | read_memory )(CORE_ADDR memaddr, unsigned char *myaddr, int len)
int(* | write_memory )(CORE_ADDR memaddr, const unsigned char *myaddr, int len)
void(* | look_up_symbols )(void)
void(* | request_interrupt )(void)
int(* | read_auxv )(CORE_ADDR offset, unsigned char *myaddr, unsigned int len)
int(* | supports_z_point_type )(char z_type)
int(* | insert_point )(enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp)
int(* | remove_point )(enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp)
int(* | stopped_by_sw_breakpoint )(void)
int(* | supports_stopped_by_sw_breakpoint )(void)
int(* | stopped_by_hw_breakpoint )(void)
int(* | supports_stopped_by_hw_breakpoint )(void)
int(* | supports_hardware_single_step )(void)
int(* | stopped_by_watchpoint )(void)
CORE_ADDR(* | stopped_data_address )(void)
int(* | read_offsets )(CORE_ADDR *text, CORE_ADDR *data)
int(* | get_tls_address )(struct thread_info *thread, CORE_ADDR offset, CORE_ADDR load_module, CORE_ADDR *address)
int(* | qxfer_spu )(const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)
void(* | hostio_last_error )(char *buf)
int(* | qxfer_osdata )(const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)
int(* | qxfer_siginfo )(const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)
int(* | supports_non_stop )(void)
int(* | async )(int enable)
int(* | start_non_stop )(int)
int(* | supports_multi_process )(void)
int(* | supports_fork_events )(void)
int(* | supports_vfork_events )(void)
int(* | supports_exec_events )(void)
void(* | handle_new_gdb_connection )(void)
int(* | handle_monitor_command )(char *)
int(* | core_of_thread )(ptid_t)
int(* | read_loadmap )(const char *annex, CORE_ADDR offset, unsigned char *myaddr, unsigned int len)
void(* | process_qsupported )(char **features, int count)
int(* | supports_tracepoints )(void)
CORE_ADDR(* | read_pc )(struct regcache *regcache)
void(* | write_pc )(struct regcache *regcache, CORE_ADDR pc)
int(* | thread_stopped )(struct thread_info *thread)
int(* | get_tib_address )(ptid_t ptid, CORE_ADDR *address)
void(* | pause_all )(int freeze)
void(* | unpause_all )(int unfreeze)
void(* | stabilize_threads )(void)
int(* | install_fast_tracepoint_jump_pad )(CORE_ADDR tpoint, CORE_ADDR tpaddr, CORE_ADDR collector, CORE_ADDR lockaddr, ULONGEST orig_size, CORE_ADDR *jump_entry, CORE_ADDR *trampoline, ULONGEST *trampoline_size, unsigned char *jjump_pad_insn, ULONGEST *jjump_pad_insn_size, CORE_ADDR *adjusted_insn_addr, CORE_ADDR *adjusted_insn_addr_end, char *err)
struct emit_ops *(* | emit_ops )(void)
int(* | supports_disable_randomization )(void)
int(* | get_min_fast_tracepoint_insn_len )(void)
int(* | qxfer_libraries_svr4 )(const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)
int(* | supports_agent )(void)
int(* | supports_btrace )(struct target_ops *, enum btrace_format)
struct btrace_target_info *(* | enable_btrace )(ptid_t ptid, const struct btrace_config *conf)
int(* | disable_btrace )(struct btrace_target_info *tinfo)
int(* | read_btrace )(struct btrace_target_info *, struct buffer *, enum btrace_read_type type)
int(* | read_btrace_conf )(const struct btrace_target_info *, struct buffer *)
int(* | supports_range_stepping )(void)
char *(* | pid_to_exec_file )(int pid)
int(* | multifs_open )(int pid, const char *filename, int flags, mode_t mode)
int(* | multifs_unlink )(int pid, const char *filename)
ssize_t(* | multifs_readlink )(int pid, const char *filename, char *buf, size_t bufsiz)
int(* | breakpoint_kind_from_pc )(CORE_ADDR *pcptr)
const gdb_byte *(* | sw_breakpoint_from_kind )(int kind, int *size)
const char *(* | thread_name )(ptid_t thread)
int(* | breakpoint_kind_from_current_state )(CORE_ADDR *pcptr)
int(* | supports_software_single_step )(void)
int(* | supports_catch_syscall )(void)
int(* | get_ipa_tdesc_idx )(void)
bool(* | thread_handle )(ptid_t ptid, gdb_byte **handle, int *handle_len)

## Detailed Description

Definition at line 66 of file target.h.

## Member Data Documentation

## ◆ async

int(* target_ops::async) (int enable)

Definition at line 280 of file target.h.

## ◆ attach

int(* target_ops::attach) (unsigned long pid)

Definition at line 91 of file target.h.

## ◆ breakpoint_kind_from_current_state

int(* target_ops::breakpoint_kind_from_current_state) (CORE_ADDR *pcptr)

Definition at line 467 of file target.h.

Referenced by linux_wait_1().

## ◆ breakpoint_kind_from_pc

int(* target_ops::breakpoint_kind_from_pc) (CORE_ADDR *pcptr)

Definition at line 452 of file target.h.

## ◆ core_of_thread

int(* target_ops::core_of_thread) (ptid_t)

Definition at line 306 of file target.h.

## ◆ create_inferior

int(* target_ops::create_inferior) (const char *program, const std::vector< char * > &program_args)

Definition at line 76 of file target.h.

## ◆ detach

int(* target_ops::detach) (int pid)

Definition at line 100 of file target.h.

## ◆ disable_btrace

int(* target_ops::disable_btrace) (struct btrace_target_info *tinfo)

Definition at line 404 of file target.h.

## ◆ done_accessing_memory

void(* target_ops::done_accessing_memory) (void)

Definition at line 157 of file target.h.

Referenced by done_accessing_memory().

## ◆ emit_ops

struct emit_ops*(* target_ops::emit_ops) (void)

Definition at line 377 of file target.h.

## ◆ enable_btrace

struct btrace_target_info*(* target_ops::enable_btrace) (ptid_t ptid, const struct btrace_config *conf)

Definition at line 400 of file target.h.

## ◆ fetch_registers

void(* target_ops::fetch_registers) (struct regcache *regcache, int regno)

Definition at line 134 of file target.h.

## ◆ get_ipa_tdesc_idx

int(* target_ops::get_ipa_tdesc_idx) (void)

Definition at line 477 of file target.h.

## ◆ get_min_fast_tracepoint_insn_len

int(* target_ops::get_min_fast_tracepoint_insn_len) (void)

Definition at line 384 of file target.h.

## ◆ get_tib_address

int(* target_ops::get_tib_address) (ptid_t ptid, CORE_ADDR *address)

Definition at line 330 of file target.h.

Referenced by handle_query().

## ◆ get_tls_address

int(* target_ops::get_tls_address) (struct thread_info *thread, CORE_ADDR offset, CORE_ADDR load_module, CORE_ADDR *address)

Definition at line 255 of file target.h.

Referenced by handle_query().

## ◆ handle_monitor_command

int(* target_ops::handle_monitor_command) (char *)

Definition at line 303 of file target.h.

Referenced by handle_query().

## ◆ handle_new_gdb_connection

void(* target_ops::handle_new_gdb_connection) (void)

Definition at line 299 of file target.h.

## ◆ hostio_last_error

void(* target_ops::hostio_last_error) (char *buf)

Definition at line 264 of file target.h.

Referenced by hostio_error().

## ◆ insert_point

int(* target_ops::insert_point) (enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp)

Definition at line 211 of file target.h.

Referenced by reinsert_raw_breakpoint(), and set_raw_breakpoint_at().

## ◆ install_fast_tracepoint_jump_pad

int(* target_ops::install_fast_tracepoint_jump_pad) (CORE_ADDR tpoint, CORE_ADDR tpaddr, CORE_ADDR collector, CORE_ADDR lockaddr, ULONGEST orig_size, CORE_ADDR *jump_entry, CORE_ADDR *trampoline, ULONGEST *trampoline_size, unsigned char *jjump_pad_insn, ULONGEST *jjump_pad_insn_size, CORE_ADDR *adjusted_insn_addr, CORE_ADDR *adjusted_insn_addr_end, char *err)

Definition at line 362 of file target.h.

## ◆ join

void(* target_ops::join) (int pid)

Definition at line 107 of file target.h.

## ◆ kill

int(* target_ops::kill) (int pid)

Definition at line 95 of file target.h.

Referenced by kill_inferior().

## ◆ look_up_symbols

void(* target_ops::look_up_symbols) (void)

Definition at line 184 of file target.h.

Referenced by handle_query().

## ◆ mourn

void(* target_ops::mourn) (struct process_info *proc)

Definition at line 104 of file target.h.

Referenced by linux_detach(), linux_kill(), lynx_detach(), lynx_kill(), and target_mourn_inferior().

## ◆ multifs_open

int(* target_ops::multifs_open) (int pid, const char *filename, int flags, mode_t mode)

Definition at line 432 of file target.h.

Referenced by handle_open(), and handle_setfs().

## ◆ multifs_readlink

ssize_t(* target_ops::multifs_readlink) (int pid, const char *filename, char *buf, size_t bufsiz)

Definition at line 446 of file target.h.

Referenced by handle_readlink(), and handle_setfs().

## ◆ multifs_unlink

int(* target_ops::multifs_unlink) (int pid, const char *filename)

Definition at line 439 of file target.h.

Referenced by handle_setfs(), and handle_unlink().

## ◆ pause_all

void(* target_ops::pause_all) (int freeze)

Definition at line 336 of file target.h.

## ◆ pid_to_exec_file

char*(* target_ops::pid_to_exec_file) (int pid)

Definition at line 426 of file target.h.

Referenced by handle_query(), and handle_qxfer_exec_file().

## ◆ post_create_inferior

void(* target_ops::post_create_inferior) (void)

Definition at line 81 of file target.h.

## ◆ prepare_to_access_memory

int(* target_ops::prepare_to_access_memory) (void)

Definition at line 153 of file target.h.

Referenced by prepare_to_access_memory().

## ◆ process_qsupported

void(* target_ops::process_qsupported) (char **features, int count)

Definition at line 314 of file target.h.

## ◆ qxfer_libraries_svr4

int(* target_ops::qxfer_libraries_svr4) (const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)

Definition at line 387 of file target.h.

Referenced by handle_query(), and handle_qxfer_libraries_svr4().

## ◆ qxfer_osdata

int(* target_ops::qxfer_osdata) (const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)

Definition at line 267 of file target.h.

Referenced by handle_query(), and handle_qxfer_osdata().

## ◆ qxfer_siginfo

int(* target_ops::qxfer_siginfo) (const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)

Definition at line 272 of file target.h.

Referenced by handle_query(), and handle_qxfer_siginfo().

## ◆ qxfer_spu

int(* target_ops::qxfer_spu) (const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)

Definition at line 259 of file target.h.

Referenced by handle_query(), handle_qxfer_spu(), and ppc_breakpoint_at().

## ◆ read_auxv

int(* target_ops::read_auxv) (CORE_ADDR offset, unsigned char *myaddr, unsigned int len)

Definition at line 195 of file target.h.

Referenced by arm_get_hwcap(), handle_query(), handle_qxfer_auxv(), ppc_get_auxv(), and s390_get_hwcap().

## ◆ read_btrace

int(* target_ops::read_btrace) (struct btrace_target_info *, struct buffer *, enum btrace_read_type type)

Definition at line 409 of file target.h.

Referenced by handle_qxfer_btrace().

## ◆ read_btrace_conf

int(* target_ops::read_btrace_conf) (const struct btrace_target_info *, struct buffer *)

Definition at line 415 of file target.h.

Referenced by handle_qxfer_btrace_conf().

## ◆ read_loadmap

int(* target_ops::read_loadmap) (const char *annex, CORE_ADDR offset, unsigned char *myaddr, unsigned int len)

Definition at line 309 of file target.h.

Referenced by handle_query(), and handle_qxfer_fdpic().

## ◆ read_memory

int(* target_ops::read_memory) (CORE_ADDR memaddr, unsigned char *myaddr, int len)

Definition at line 166 of file target.h.

Referenced by aarch64_breakpoint_at(), arm_breakpoint_at(), arm_get_syscall_trapinfo(), arm_sigreturn_next_pc(), cris_breakpoint_at(), m32r_breakpoint_at(), mips_breakpoint_at(), nios2_breakpoint_at(), parse_spufs_run(), ppc_breakpoint_at(), ppc_get_pc(), read_inferior_memory(), sh_breakpoint_at(), sparc_breakpoint_at(), sparc_store_gregset_from_stack(), tic6x_breakpoint_at(), tile_breakpoint_at(), validate_inserted_breakpoint(), x86_breakpoint_at(), and xtensa_breakpoint_at().

## ◆ read_offsets

int(* target_ops::read_offsets) (CORE_ADDR *text, CORE_ADDR *data)

Definition at line 247 of file target.h.

Referenced by handle_query().

## ◆ read_pc

CORE_ADDR(* target_ops::read_pc) (struct regcache *regcache)

Definition at line 321 of file target.h.

Referenced by regcache_read_pc().

## ◆ remove_point

int(* target_ops::remove_point) (enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp)

Definition at line 213 of file target.h.

Referenced by delete_raw_breakpoint(), and uninsert_raw_breakpoint().

## ◆ request_interrupt

void(* target_ops::request_interrupt) (void)

Definition at line 189 of file target.h.

Referenced by getpkt(), handle_v_requests(), input_interrupt(), and putpkt_binary_1().

## ◆ resume

void(* target_ops::resume) (struct thread_resume *resume_info, size_t n)

Definition at line 115 of file target.h.

Referenced by resume(), target_continue(), target_continue_no_signal(), and target_stop_and_wait().

## ◆ stabilize_threads

void(* target_ops::stabilize_threads) (void)

Definition at line 345 of file target.h.

## ◆ start_non_stop

int(* target_ops::start_non_stop) (int)

Definition at line 284 of file target.h.

Referenced by start_non_stop().

## ◆ stopped_by_hw_breakpoint

int(* target_ops::stopped_by_hw_breakpoint) (void)

Definition at line 225 of file target.h.

## ◆ stopped_by_sw_breakpoint

int(* target_ops::stopped_by_sw_breakpoint) (void)

Definition at line 218 of file target.h.

## ◆ stopped_by_watchpoint

int(* target_ops::stopped_by_watchpoint) (void)

Definition at line 236 of file target.h.

Referenced by prepare_resume_reply().

## ◆ stopped_data_address

CORE_ADDR(* target_ops::stopped_data_address) (void)

Definition at line 241 of file target.h.

Referenced by prepare_resume_reply().

## ◆ store_registers

void(* target_ops::store_registers) (struct regcache *regcache, int regno)

Definition at line 140 of file target.h.

## ◆ supports_agent

int(* target_ops::supports_agent) (void)

Definition at line 392 of file target.h.

## ◆ supports_btrace

int(* target_ops::supports_btrace) (struct target_ops *, enum btrace_format)

Definition at line 395 of file target.h.

## ◆ supports_catch_syscall

int(* target_ops::supports_catch_syscall) (void)

Definition at line 474 of file target.h.

## ◆ supports_disable_randomization

int(* target_ops::supports_disable_randomization) (void)

Definition at line 380 of file target.h.

## ◆ supports_exec_events

int(* target_ops::supports_exec_events) (void)

Definition at line 296 of file target.h.

## ◆ supports_fork_events

int(* target_ops::supports_fork_events) (void)

Definition at line 290 of file target.h.

## ◆ supports_hardware_single_step

int(* target_ops::supports_hardware_single_step) (void)

Definition at line 232 of file target.h.

## ◆ supports_multi_process

int(* target_ops::supports_multi_process) (void)

Definition at line 287 of file target.h.

Referenced by target_supports_multi_process().

## ◆ supports_non_stop

int(* target_ops::supports_non_stop) (void)

Definition at line 276 of file target.h.

## ◆ supports_range_stepping

int(* target_ops::supports_range_stepping) (void)

Definition at line 418 of file target.h.

## ◆ supports_software_single_step

int(* target_ops::supports_software_single_step) (void)

Definition at line 470 of file target.h.

## ◆ supports_stopped_by_hw_breakpoint

int(* target_ops::supports_stopped_by_hw_breakpoint) (void)

Definition at line 229 of file target.h.

## ◆ supports_stopped_by_sw_breakpoint

int(* target_ops::supports_stopped_by_sw_breakpoint) (void)

Definition at line 222 of file target.h.

## ◆ supports_tracepoints

int(* target_ops::supports_tracepoints) (void)

Definition at line 318 of file target.h.

## ◆ supports_vfork_events

int(* target_ops::supports_vfork_events) (void)

Definition at line 293 of file target.h.

## ◆ supports_z_point_type

int(* target_ops::supports_z_point_type) (char z_type)

Definition at line 206 of file target.h.

Referenced by z_type_supported().

## ◆ sw_breakpoint_from_kind

const gdb_byte*(* target_ops::sw_breakpoint_from_kind) (int kind, int *size)

Definition at line 457 of file target.h.

Referenced by bp_opcode(), bp_size(), default_breakpoint_kind_from_pc(), and linux_wait_1().

## ◆ thread_alive

int(* target_ops::thread_alive) (ptid_t pid)

Definition at line 111 of file target.h.

## ◆ thread_handle

bool(* target_ops::thread_handle) (ptid_t ptid, gdb_byte **handle, int *handle_len)

Definition at line 482 of file target.h.

## ◆ thread_name

const char*(* target_ops::thread_name) (ptid_t thread)

Definition at line 461 of file target.h.

## ◆ thread_stopped

int(* target_ops::thread_stopped) (struct thread_info *thread)

Definition at line 327 of file target.h.

Referenced by prepare_to_access_memory(), and queue_stop_reply_callback().

## ◆ unpause_all

void(* target_ops::unpause_all) (int unfreeze)

Definition at line 342 of file target.h.

## ◆ wait

ptid_t(* target_ops::wait) (ptid_t ptid, struct target_waitstatus *status, int options)

Definition at line 128 of file target.h.

Referenced by target_wait().

## ◆ write_memory

int(* target_ops::write_memory) (CORE_ADDR memaddr, const unsigned char *myaddr, int len)

Definition at line 175 of file target.h.

Referenced by insert_memory_breakpoint(), ppc_set_pc(), sparc_fill_gregset_to_stack(), and write_inferior_memory().

## ◆ write_pc

void(* target_ops::write_pc) (struct regcache *regcache, CORE_ADDR pc)

Definition at line 324 of file target.h.

Referenced by regcache_write_pc().

The documentation for this struct was generated from the following file:

- /tmp/gdb-8.1/gdb/gdbserver/target.h