GDBserver
Public Attributes | List of all members
target_ops Struct Reference

#include "target.h"

Public Attributes

int(* create_inferior )(char *program, char **args)
 
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_conditional_breakpoints )(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)
 
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 )(const char *)
 
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 *, int 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)
 

Detailed Description

Definition at line 64 of file target.h.

Member Data Documentation

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

Definition at line 275 of file target.h.

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

Definition at line 85 of file target.h.

int(* target_ops::core_of_thread) (ptid_t)

Definition at line 298 of file target.h.

int(* target_ops::create_inferior) (char *program, char **args)

Definition at line 75 of file target.h.

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

Definition at line 94 of file target.h.

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

Definition at line 395 of file target.h.

void(* target_ops::done_accessing_memory) (void)

Definition at line 151 of file target.h.

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

Definition at line 368 of file target.h.

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

Definition at line 391 of file target.h.

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

Definition at line 128 of file target.h.

int(* target_ops::get_min_fast_tracepoint_insn_len) (void)

Definition at line 375 of file target.h.

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

Definition at line 321 of file target.h.

Referenced by handle_query().

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

Definition at line 250 of file target.h.

Referenced by handle_query().

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

Definition at line 295 of file target.h.

Referenced by handle_query().

void(* target_ops::handle_new_gdb_connection) (void)

Definition at line 291 of file target.h.

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

Definition at line 259 of file target.h.

Referenced by hostio_error().

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

Definition at line 205 of file target.h.

Referenced by reinsert_raw_breakpoint(), and set_raw_breakpoint_at().

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 353 of file target.h.

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

Definition at line 101 of file target.h.

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

Definition at line 89 of file target.h.

Referenced by kill_inferior().

void(* target_ops::look_up_symbols) (void)

Definition at line 178 of file target.h.

Referenced by handle_query().

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

Definition at line 98 of file target.h.

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

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

Definition at line 423 of file target.h.

Referenced by handle_open(), and handle_setfs().

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

Definition at line 437 of file target.h.

Referenced by handle_readlink(), and handle_setfs().

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

Definition at line 430 of file target.h.

Referenced by handle_setfs(), and handle_unlink().

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

Definition at line 327 of file target.h.

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

Definition at line 417 of file target.h.

Referenced by handle_query(), and handle_qxfer_exec_file().

int(* target_ops::prepare_to_access_memory) (void)

Definition at line 147 of file target.h.

void(* target_ops::process_qsupported) (const char *)

Definition at line 305 of file target.h.

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

Definition at line 378 of file target.h.

Referenced by handle_query(), and handle_qxfer_libraries_svr4().

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

Definition at line 262 of file target.h.

Referenced by handle_query(), and handle_qxfer_osdata().

int(* target_ops::qxfer_siginfo) (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_siginfo().

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

Definition at line 254 of file target.h.

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

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

Definition at line 189 of file target.h.

Referenced by arm_get_hwcap(), handle_query(), handle_qxfer_auxv(), and ppc_get_hwcap().

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

Definition at line 401 of file target.h.

Referenced by handle_qxfer_btrace().

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

Definition at line 406 of file target.h.

Referenced by handle_qxfer_btrace_conf().

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

Definition at line 301 of file target.h.

Referenced by handle_query(), and handle_qxfer_fdpic().

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

Definition at line 242 of file target.h.

Referenced by handle_query().

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

Definition at line 312 of file target.h.

Referenced by regcache_read_pc().

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

Definition at line 207 of file target.h.

Referenced by delete_raw_breakpoint(), and uninsert_raw_breakpoint().

void(* target_ops::request_interrupt) (void)

Definition at line 183 of file target.h.

Referenced by input_interrupt(), and putpkt_binary_1().

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

Definition at line 336 of file target.h.

int(* target_ops::start_non_stop) (int)

Definition at line 279 of file target.h.

Referenced by start_non_stop().

int(* target_ops::stopped_by_hw_breakpoint) (void)

Definition at line 219 of file target.h.

int(* target_ops::stopped_by_sw_breakpoint) (void)

Definition at line 212 of file target.h.

int(* target_ops::stopped_by_watchpoint) (void)

Definition at line 231 of file target.h.

Referenced by prepare_resume_reply().

CORE_ADDR(* target_ops::stopped_data_address) (void)

Definition at line 236 of file target.h.

Referenced by prepare_resume_reply().

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

Definition at line 134 of file target.h.

int(* target_ops::supports_agent) (void)

Definition at line 383 of file target.h.

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

Definition at line 386 of file target.h.

int(* target_ops::supports_conditional_breakpoints) (void)

Definition at line 227 of file target.h.

int(* target_ops::supports_disable_randomization) (void)

Definition at line 371 of file target.h.

int(* target_ops::supports_fork_events) (void)

Definition at line 285 of file target.h.

int(* target_ops::supports_multi_process) (void)

Definition at line 282 of file target.h.

int(* target_ops::supports_non_stop) (void)

Definition at line 271 of file target.h.

int(* target_ops::supports_range_stepping) (void)

Definition at line 409 of file target.h.

int(* target_ops::supports_stopped_by_hw_breakpoint) (void)

Definition at line 223 of file target.h.

int(* target_ops::supports_stopped_by_sw_breakpoint) (void)

Definition at line 216 of file target.h.

int(* target_ops::supports_tracepoints) (void)

Definition at line 309 of file target.h.

int(* target_ops::supports_vfork_events) (void)

Definition at line 288 of file target.h.

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

Definition at line 200 of file target.h.

Referenced by z_type_supported().

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

Definition at line 105 of file target.h.

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

Definition at line 318 of file target.h.

Referenced by queue_stop_reply_callback().

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

Definition at line 333 of file target.h.

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

Definition at line 122 of file target.h.

Referenced by mywait().

int(* target_ops::write_memory) (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
void(* target_ops::write_pc) (struct regcache *regcache, CORE_ADDR pc)

Definition at line 315 of file target.h.

Referenced by regcache_write_pc().


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