22 #if !defined (TARGET_H)
263 const gdb_byte *writebuf,
270 const gdb_byte *writebuf,
ULONGEST memaddr,
291 const char *annex, gdb_byte *buf,
329 const char *annex,
const gdb_byte *buf,
341 const char *annex,
const gdb_byte *buf,
343 void (*progress) (
ULONGEST,
void *),
360 const char *annex, gdb_byte **buf_p);
385 CORE_ADDR addr,
int len,
386 enum bfd_endian byte_order);
403 #define TARGET_DEBUG_PRINTER(FUNC)
424 #define TARGET_DEFAULT_IGNORE()
425 #define TARGET_DEFAULT_NORETURN(ARG)
426 #define TARGET_DEFAULT_RETURN(ARG)
427 #define TARGET_DEFAULT_FUNC(ARG)
585 char *,
char *,
char **,
int);
631 char *(*to_pid_to_str) (
struct target_ops *,
ptid_t)
633 char *(*to_extra_thread_info) (
struct target_ops *,
struct thread_info *)
635 char *(*to_thread_name) (
struct target_ops *,
struct thread_info *)
642 const char *command,
struct ui_file *output)
644 char *(*to_pid_to_exec_file) (
struct target_ops *,
int pid)
675 char * (*to_make_corefile_notes) (
struct target_ops *, bfd *,
int *)
678 gdb_byte * (*to_get_bookmark) (
struct target_ops *,
const char *,
int)
691 CORE_ADDR load_module_addr,
728 const gdb_byte *writebuf,
769 const struct target_desc *(*to_read_description) (
struct target_ops *ops)
777 long lwp,
long thread)
785 gdb_byte *endptr, CORE_ADDR *
typep, CORE_ADDR *valp)
795 CORE_ADDR start_addr,
ULONGEST search_space_len,
796 const gdb_byte *pattern,
ULONGEST pattern_len,
797 CORE_ADDR *found_addrp)
874 int flags,
int mode,
int warn_if_slow,
881 int fd,
const gdb_byte *write_buf,
int len,
888 int fd, gdb_byte *read_buf,
int len,
895 int fd,
struct stat *sb,
int *target_errno);
907 const char *filename,
915 char *(*to_fileio_readlink) (
struct target_ops *,
917 const char *filename,
986 CORE_ADDR addr1, CORE_ADDR addr2,
int *tpp)
1031 const char *user,
const char *notes,
1032 const char *stopnotes)
1056 ptid_t ptid, CORE_ADDR *addr)
1071 VEC(static_tracepoint_marker_p) *(*to_static_tracepoint_markers_by_strid) (
struct target_ops *,
const char *id)
1097 struct btrace_target_info *(*to_enable_btrace) (
struct target_ops *,
1099 const struct btrace_config *conf)
1104 struct btrace_target_info *tinfo)
1112 struct btrace_target_info *tinfo)
1118 struct btrace_data *data,
1119 struct btrace_target_info *btinfo,
1120 enum btrace_read_type
type)
1124 const struct btrace_config *(*to_btrace_conf) (
struct target_ops *
self,
1125 const struct btrace_target_info *)
1213 const struct frame_unwind *(*to_get_tailcall_unwinder) (
struct target_ops *
self)
1233 #define OPS_MAGIC 3840
1242 #define target_shortname (current_target.to_shortname)
1243 #define target_longname (current_target.to_longname)
1270 #define target_attach_no_wait \
1271 (current_target.to_attach_no_wait)
1278 #define target_post_attach(pid) \
1279 (*current_target.to_post_attach) (¤t_target, pid)
1306 extern void target_resume (ptid_t ptid,
int step,
enum gdb_signal signal);
1336 #define target_prepare_to_store(regcache) \
1337 (*current_target.to_prepare_to_store) (¤t_target, regcache)
1353 #define target_supports_multi_process() \
1354 (*current_target.to_supports_multi_process) (¤t_target)
1363 #define target_supports_enable_disable_tracepoint() \
1364 (*current_target.to_supports_enable_disable_tracepoint) (¤t_target)
1366 #define target_supports_string_tracing() \
1367 (*current_target.to_supports_string_tracing) (¤t_target)
1372 #define target_supports_evaluation_of_breakpoint_conditions() \
1373 (*current_target.to_supports_evaluation_of_breakpoint_conditions) (¤t_target)
1378 #define target_can_run_breakpoint_commands() \
1379 (*current_target.to_can_run_breakpoint_commands) (¤t_target)
1388 extern int target_read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
1390 extern int target_read_code (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
1449 void (*progress_cb) (
ULONGEST,
void *));
1453 #define target_files_info() \
1454 (*current_target.to_files_info) (¤t_target)
1510 #define target_terminal_info(arg, from_tty) \
1511 (*current_target.to_terminal_info) (¤t_target, arg, from_tty)
1540 #define target_post_startup_inferior(ptid) \
1541 (*current_target.to_post_startup_inferior) (¤t_target, ptid)
1548 #define target_insert_fork_catchpoint(pid) \
1549 (*current_target.to_insert_fork_catchpoint) (¤t_target, pid)
1551 #define target_remove_fork_catchpoint(pid) \
1552 (*current_target.to_remove_fork_catchpoint) (¤t_target, pid)
1554 #define target_insert_vfork_catchpoint(pid) \
1555 (*current_target.to_insert_vfork_catchpoint) (¤t_target, pid)
1557 #define target_remove_vfork_catchpoint(pid) \
1558 (*current_target.to_remove_vfork_catchpoint) (¤t_target, pid)
1575 #define target_insert_exec_catchpoint(pid) \
1576 (*current_target.to_insert_exec_catchpoint) (¤t_target, pid)
1578 #define target_remove_exec_catchpoint(pid) \
1579 (*current_target.to_remove_exec_catchpoint) (¤t_target, pid)
1601 #define target_set_syscall_catchpoint(pid, needed, any_count, table_size, table) \
1602 (*current_target.to_set_syscall_catchpoint) (¤t_target, \
1603 pid, needed, any_count, \
1609 #define target_has_exited(pid,wait_status,exit_status) \
1610 (*current_target.to_has_exited) (¤t_target, \
1611 pid,wait_status,exit_status)
1624 #define target_can_run(t) \
1625 ((t)->to_can_run) (t)
1685 #define target_rcmd(command, outbuf) \
1686 (*current_target.to_rcmd) (¤t_target, command, outbuf)
1694 #define target_has_all_memory target_has_all_memory_1 ()
1699 #define target_has_memory target_has_memory_1 ()
1705 #define target_has_stack target_has_stack_1 ()
1710 #define target_has_registers target_has_registers_1 ()
1726 #define target_has_execution target_has_execution_current ()
1741 #define target_can_lock_scheduler \
1742 (current_target.to_has_thread_control & tc_schedlock)
1748 #define target_can_async_p() (current_target.to_can_async_p (¤t_target))
1751 #define target_is_async_p() (current_target.to_is_async_p (¤t_target))
1754 #define target_async(ENABLE) \
1755 (current_target.to_async (¤t_target, (ENABLE)))
1757 #define target_execution_direction() \
1758 (current_target.to_execution_direction (¤t_target))
1772 #define target_extra_thread_info(TP) \
1773 (current_target.to_extra_thread_info (¤t_target, TP))
1792 #define target_pid_to_exec_file(pid) \
1793 (current_target.to_pid_to_exec_file) (¤t_target, pid)
1797 #define target_thread_architecture(ptid) \
1798 (current_target.to_thread_architecture (¤t_target, ptid))
1807 #define target_find_memory_regions(FUNC, DATA) \
1808 (current_target.to_find_memory_regions) (¤t_target, FUNC, DATA)
1814 #define target_make_corefile_notes(BFD, SIZE_P) \
1815 (current_target.to_make_corefile_notes) (¤t_target, BFD, SIZE_P)
1818 #define target_get_bookmark(ARGS, FROM_TTY) \
1819 (current_target.to_get_bookmark) (¤t_target, ARGS, FROM_TTY)
1821 #define target_goto_bookmark(ARG, FROM_TTY) \
1822 (current_target.to_goto_bookmark) (¤t_target, ARG, FROM_TTY)
1829 #define target_stopped_by_watchpoint() \
1830 ((*current_target.to_stopped_by_watchpoint) (¤t_target))
1835 #define target_stopped_by_sw_breakpoint() \
1836 ((*current_target.to_stopped_by_sw_breakpoint) (¤t_target))
1838 #define target_supports_stopped_by_sw_breakpoint() \
1839 ((*current_target.to_supports_stopped_by_sw_breakpoint) (¤t_target))
1841 #define target_stopped_by_hw_breakpoint() \
1842 ((*current_target.to_stopped_by_hw_breakpoint) (¤t_target))
1844 #define target_supports_stopped_by_hw_breakpoint() \
1845 ((*current_target.to_supports_stopped_by_hw_breakpoint) (¤t_target))
1849 #define target_have_steppable_watchpoint \
1850 (current_target.to_have_steppable_watchpoint)
1854 #define target_have_continuable_watchpoint \
1855 (current_target.to_have_continuable_watchpoint)
1870 #define target_can_use_hardware_watchpoint(TYPE,CNT,OTHERTYPE) \
1871 (*current_target.to_can_use_hw_breakpoint) (¤t_target, \
1872 TYPE, CNT, OTHERTYPE)
1877 #define target_region_ok_for_hw_watchpoint(addr, len) \
1878 (*current_target.to_region_ok_for_hw_watchpoint) (¤t_target, \
1888 #define target_insert_watchpoint(addr, len, type, cond) \
1889 (*current_target.to_insert_watchpoint) (¤t_target, \
1890 addr, len, type, cond)
1892 #define target_remove_watchpoint(addr, len, type, cond) \
1893 (*current_target.to_remove_watchpoint) (¤t_target, \
1894 addr, len, type, cond)
1915 #define target_insert_hw_breakpoint(gdbarch, bp_tgt) \
1916 (*current_target.to_insert_hw_breakpoint) (¤t_target, \
1919 #define target_remove_hw_breakpoint(gdbarch, bp_tgt) \
1920 (*current_target.to_remove_hw_breakpoint) (¤t_target, \
1931 #define target_stopped_data_address(target, addr_p) \
1932 (*(target)->to_stopped_data_address) (target, addr_p)
1936 #define target_watchpoint_addr_within_range(target, addr, start, length) \
1937 (*(target)->to_watchpoint_addr_within_range) (target, addr, start, length)
1949 #define target_can_accel_watchpoint_condition(addr, len, type, cond) \
1950 (*current_target.to_can_accel_watchpoint_condition) (¤t_target, \
1951 addr, len, type, cond)
1960 #define target_can_execute_reverse \
1961 current_target.to_can_execute_reverse (¤t_target)
1965 #define target_get_ada_task_ptid(lwp, tid) \
1966 (*current_target.to_get_ada_task_ptid) (¤t_target, lwp,tid)
1970 CORE_ADDR start_addr,
1972 const gdb_byte *pattern,
1974 CORE_ADDR *found_addrp);
1979 const gdb_byte *pattern,
1981 CORE_ADDR *found_addrp);
1987 #define target_filesystem_is_local() \
1988 current_target.to_filesystem_is_local (¤t_target)
1996 const char *filename,
int flags,
1997 int mode,
int *target_errno);
2002 const char *filename,
2011 ULONGEST offset,
int *target_errno);
2017 ULONGEST offset,
int *target_errno);
2034 const char *filename,
2043 const char *filename,
2059 const char *filename,
2070 const char *filename);
2075 #define target_trace_init() \
2076 (*current_target.to_trace_init) (¤t_target)
2078 #define target_download_tracepoint(t) \
2079 (*current_target.to_download_tracepoint) (¤t_target, t)
2081 #define target_can_download_tracepoint() \
2082 (*current_target.to_can_download_tracepoint) (¤t_target)
2084 #define target_download_trace_state_variable(tsv) \
2085 (*current_target.to_download_trace_state_variable) (¤t_target, tsv)
2087 #define target_enable_tracepoint(loc) \
2088 (*current_target.to_enable_tracepoint) (¤t_target, loc)
2090 #define target_disable_tracepoint(loc) \
2091 (*current_target.to_disable_tracepoint) (¤t_target, loc)
2093 #define target_trace_start() \
2094 (*current_target.to_trace_start) (¤t_target)
2096 #define target_trace_set_readonly_regions() \
2097 (*current_target.to_trace_set_readonly_regions) (¤t_target)
2099 #define target_get_trace_status(ts) \
2100 (*current_target.to_get_trace_status) (¤t_target, ts)
2102 #define target_get_tracepoint_status(tp,utp) \
2103 (*current_target.to_get_tracepoint_status) (¤t_target, tp, utp)
2105 #define target_trace_stop() \
2106 (*current_target.to_trace_stop) (¤t_target)
2108 #define target_trace_find(type,num,addr1,addr2,tpp) \
2109 (*current_target.to_trace_find) (¤t_target, \
2110 (type), (num), (addr1), (addr2), (tpp))
2112 #define target_get_trace_state_variable_value(tsv,val) \
2113 (*current_target.to_get_trace_state_variable_value) (¤t_target, \
2116 #define target_save_trace_data(filename) \
2117 (*current_target.to_save_trace_data) (¤t_target, filename)
2119 #define target_upload_tracepoints(utpp) \
2120 (*current_target.to_upload_tracepoints) (¤t_target, utpp)
2122 #define target_upload_trace_state_variables(utsvp) \
2123 (*current_target.to_upload_trace_state_variables) (¤t_target, utsvp)
2125 #define target_get_raw_trace_data(buf,offset,len) \
2126 (*current_target.to_get_raw_trace_data) (¤t_target, \
2127 (buf), (offset), (len))
2129 #define target_get_min_fast_tracepoint_insn_len() \
2130 (*current_target.to_get_min_fast_tracepoint_insn_len) (¤t_target)
2132 #define target_set_disconnected_tracing(val) \
2133 (*current_target.to_set_disconnected_tracing) (¤t_target, val)
2135 #define target_set_circular_trace_buffer(val) \
2136 (*current_target.to_set_circular_trace_buffer) (¤t_target, val)
2138 #define target_set_trace_buffer_size(val) \
2139 (*current_target.to_set_trace_buffer_size) (¤t_target, val)
2141 #define target_set_trace_notes(user,notes,stopnotes) \
2142 (*current_target.to_set_trace_notes) (¤t_target, \
2143 (user), (notes), (stopnotes))
2145 #define target_get_tib_address(ptid, addr) \
2146 (*current_target.to_get_tib_address) (¤t_target, (ptid), (addr))
2148 #define target_set_permissions() \
2149 (*current_target.to_set_permissions) (¤t_target)
2151 #define target_static_tracepoint_marker_at(addr, marker) \
2152 (*current_target.to_static_tracepoint_marker_at) (¤t_target, \
2155 #define target_static_tracepoint_markers_by_strid(marker_id) \
2156 (*current_target.to_static_tracepoint_markers_by_strid) (¤t_target, \
2159 #define target_traceframe_info() \
2160 (*current_target.to_traceframe_info) (¤t_target)
2162 #define target_use_agent(use) \
2163 (*current_target.to_use_agent) (¤t_target, use)
2165 #define target_can_use_agent() \
2166 (*current_target.to_can_use_agent) (¤t_target)
2168 #define target_augmented_libraries_svr4_read() \
2169 (*current_target.to_augmented_libraries_svr4_read) (¤t_target)
2173 #define target_log_command(p) \
2174 (*current_target.to_log_command) (¤t_target, p)
2190 const gdb_byte *data,
2221 extern void add_target (
struct target_ops *);
2224 completer_ftype *completer);
2288 (
struct target_ops *target);
2315 extern void noprocess (
void) ATTRIBUTE_NORETURN;
2339 extern
int remote_debug;
2342 extern
int baud_rate;
2345 extern
int serial_parity;
2348 extern
int remote_timeout;
2356 extern
int may_write_registers;
2357 extern
int may_write_memory;
2358 extern
int may_insert_breakpoints;
2359 extern
int may_insert_tracepoints;
2360 extern
int may_insert_fast_tracepoints;
2361 extern
int may_stop;
2372 extern struct btrace_target_info *
2383 struct btrace_target_info *,
2384 enum btrace_read_type);
2387 extern
const struct btrace_config *
int target_fileio_unlink(struct inferior *inf, const char *filename, int *target_errno)
int(* to_fileio_pread)(struct target_ops *, int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *target_errno)
int target_has_memory_1(void)
void complete_target_initialization(struct target_ops *t)
void target_done_generating_core(void)
int target_is_pushed(struct target_ops *t)
char * normal_pid_to_str(ptid_t ptid)
void target_detach(const char *, int)
void(* to_delete_record)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
void target_delete_record(void)
int(* to_supports_stopped_by_hw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int target_remove_breakpoint(struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
int(* to_supports_disable_randomization)(struct target_ops *)
int default_memory_remove_breakpoint(struct gdbarch *, struct bp_target_info *)
int(* to_is_async_p)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int(* to_upload_tracepoints)(struct target_ops *, struct uploaded_tp **utpp) TARGET_DEFAULT_RETURN(0)
void(* to_trace_init)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
enum btrace_error target_read_btrace(struct btrace_data *, struct btrace_target_info *, enum btrace_read_type)
int(* to_supports_evaluation_of_breakpoint_conditions)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void(* to_program_signals)(struct target_ops *, int, unsigned char *TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
void(* to_goto_bookmark)(struct target_ops *, const gdb_byte *, int) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_goto_record_begin)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
void target_store_registers(struct regcache *regcache, int regs)
int memory_validate_breakpoint(struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
void(* to_save_record)(struct target_ops *, const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
int(* to_find_memory_regions)(struct target_ops *, find_memory_region_ftype func, void *data) TARGET_DEFAULT_FUNC(dummy_find_memory_regions)
struct target_ops * find_attach_target(void)
int(* to_fileio_close)(struct target_ops *, int fd, int *target_errno)
struct cleanup * make_cleanup_restore_target_terminal(void)
struct target_section * sections_end
DEF_VEC_O(memory_read_result_s)
void target_mourn_inferior(void)
int memory_remove_breakpoint(struct target_ops *, struct gdbarch *, struct bp_target_info *)
int target_fileio_pwrite(int fd, const gdb_byte *write_buf, int len, ULONGEST offset, int *target_errno)
void(* to_xclose)(struct target_ops *targ)
int(* to_has_memory)(struct target_ops *)
void(* to_trace_start)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_flash_done)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
struct type ** const(pascal_builtin_types[])
void(* to_stop_recording)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int target_thread_alive(ptid_t ptid)
int memory_insert_breakpoint(struct target_ops *, struct gdbarch *, struct bp_target_info *)
int(* to_has_stack)(struct target_ops *)
static ptid_t default_get_ada_task_ptid(struct target_ops *self, long lwp, long tid)
void(* to_terminal_init)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int(* to_has_exited)(struct target_ops *, int, int, int *) TARGET_DEFAULT_RETURN(0)
int(* to_insert_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_FUNC(memory_insert_breakpoint)
void(* to_rcmd)(struct target_ops *, const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC(default_rcmd)
void target_load(const char *arg, int from_tty)
void(* to_insn_history_from)(struct target_ops *, ULONGEST from, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
int(* to_core_of_thread)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(-1)
int(* to_follow_fork)(struct target_ops *, int, int) TARGET_DEFAULT_FUNC(default_follow_fork)
struct btrace_target_info * target_enable_btrace(ptid_t ptid, const struct btrace_config *)
void target_save_record(const char *filename)
void(* to_terminal_ours_for_output)(struct target_ops *) TARGET_DEFAULT_IGNORE()
void(* to_call_history)(struct target_ops *, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_close)(struct target_ops *)
void target_check_pending_interrupt(void)
int target_supports_btrace(enum btrace_format)
int default_memory_insert_breakpoint(struct gdbarch *, struct bp_target_info *)
int target_fileio_pread(int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *target_errno)
void target_terminal_inferior(void)
void add_deprecated_target_alias(struct target_ops *t, char *alias)
const struct target_desc * target_read_description(struct target_ops *)
void(* to_set_disconnected_tracing)(struct target_ops *, int val) TARGET_DEFAULT_IGNORE()
const char * target_xfer_status_to_string(enum target_xfer_status status)
void(* to_check_pending_interrupt)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int target_verify_memory(const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
int(* to_remove_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_FUNC(memory_remove_breakpoint)
int(* to_supports_enable_disable_tracepoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int(* to_region_ok_for_hw_watchpoint)(struct target_ops *, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_region_ok_for_hw_watchpoint)
ptid_t(* to_wait)(struct target_ops *, ptid_t, struct target_waitstatus *, int TARGET_DEBUG_PRINTER(target_debug_print_options)) TARGET_DEFAULT_NORETURN(noprocess())
void(* to_info_record)(struct target_ops *) TARGET_DEFAULT_IGNORE()
void get_target_memory(struct target_ops *ops, CORE_ADDR addr, gdb_byte *buf, LONGEST len)
int target_write_raw_memory(CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
void(* to_trace_stop)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
static int default_follow_fork(struct target_ops *self, int follow_child, int detach_fork)
int(* to_supports_string_tracing)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
#define TARGET_DEFAULT_IGNORE()
static char * default_pid_to_str(struct target_ops *ops, ptid_t ptid)
LONGEST target_write(struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len)
void(* to_set_trace_buffer_size)(struct target_ops *, LONGEST val) TARGET_DEFAULT_IGNORE()
void target_insn_history_from(ULONGEST from, int size, int flags)
int default_child_has_registers(struct target_ops *ops)
CORE_ADDR target_translate_tls_address(struct objfile *objfile, CORE_ADDR offset)
int(* to_get_trace_state_variable_value)(struct target_ops *, int tsv, LONGEST *val) TARGET_DEFAULT_RETURN(0)
int target_async_permitted
void(* to_insn_history_range)(struct target_ops *, ULONGEST begin, ULONGEST end, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
int target_supports_delete_record(void)
struct target_ops * find_target_beneath(struct target_ops *)
int(* to_remove_exec_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
void target_close(struct target_ops *targ)
int target_search_memory(CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
void(* to_files_info)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int default_auxv_parse(struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
mach_port_t kern_return_t mach_port_t msgports mach_port_t kern_return_t pid_t pid mach_port_t kern_return_t mach_port_t task mach_port_t kern_return_t int flags
int target_fileio_close(int fd, int *target_errno)
ptid_t target_wait(ptid_t ptid, struct target_waitstatus *status, int options)
void target_insn_history_range(ULONGEST begin, ULONGEST end, int flags)
void target_insn_history(int size, int flags)
int(* to_insert_watchpoint)(struct target_ops *, CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(-1)
int(* to_remove_fork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
void(* to_disable_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
struct address_space * target_thread_address_space(ptid_t)
char * target_read_stralloc(struct target_ops *ops, enum target_object object, const char *annex)
void noprocess(void) ATTRIBUTE_NORETURN
static void default_terminal_info(struct target_ops *self, const char *args, int from_tty)
void target_prepare_to_generate_core(void)
void target_pass_signals(int nsig, unsigned char *pass_signals)
int target_read_code(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void target_fetch_registers(struct regcache *regcache, int regno)
struct target_ops * find_run_target(void)
void(* to_prepare_to_generate_core)(struct target_ops *) TARGET_DEFAULT_IGNORE()
void target_flash_done(void)
LONGEST target_read_alloc(struct target_ops *ops, enum target_object object, const char *annex, gdb_byte **buf_p)
void(* to_call_history_range)(struct target_ops *, ULONGEST begin, ULONGEST end, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
void target_call_history_range(ULONGEST begin, ULONGEST end, int flags)
#define target_debug_print_step(X)
struct target_ops current_target
int default_child_has_execution(struct target_ops *ops, ptid_t the_ptid)
int(* to_trace_find)(struct target_ops *, enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) TARGET_DEFAULT_RETURN(-1)
static int default_region_ok_for_hw_watchpoint(struct target_ops *self, CORE_ADDR addr, int len)
int target_has_all_memory_1(void)
void push_target(struct target_ops *)
int target_has_stack_1(void)
int(* to_watchpoint_addr_within_range)(struct target_ops *, CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_watchpoint_addr_within_range)
#define TARGET_DEFAULT_RETURN(ARG)
LONGEST(* to_get_raw_trace_data)(struct target_ops *, gdb_byte *buf, ULONGEST offset, LONGEST len) TARGET_DEFAULT_NORETURN(tcomplain())
void target_terminal_ours(void)
int target_write_memory_blocks(VEC(memory_write_request_s)*requests, enum flash_preserve_mode preserve_flash_p, void(*progress_cb)(ULONGEST, void *))
char * target_thread_name(struct thread_info *)
char * target_waitstatus_to_string(const struct target_waitstatus *)
static void generic_tls_error(void)
int(* to_remove_vfork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
int(* to_remove_watchpoint)(struct target_ops *, CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(-1)
mach_port_t mach_port_t name mach_port_t mach_port_t name error_t int status
int(* to_supports_stopped_by_sw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void(* to_resume)(struct target_ops *, ptid_t, int TARGET_DEBUG_PRINTER(target_debug_print_step), enum gdb_signal) TARGET_DEFAULT_NORETURN(noprocess())
int(* to_get_min_fast_tracepoint_insn_len)(struct target_ops *) TARGET_DEFAULT_RETURN(-1)
static struct gdbarch * default_thread_architecture(struct target_ops *ops, ptid_t ptid)
int(* to_can_run)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
static int default_watchpoint_addr_within_range(struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length)
CORE_ADDR(* to_get_thread_local_address)(struct target_ops *ops, ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) TARGET_DEFAULT_NORETURN(generic_tls_error())
int(* to_insert_exec_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
void update_target_permissions(void)
struct target_section * sections
void(* to_set_permissions)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int(* to_masked_watch_num_registers)(struct target_ops *, CORE_ADDR, CORE_ADDR) TARGET_DEFAULT_RETURN(-1)
int unpush_target(struct target_ops *)
int target_has_execution_1(ptid_t)
int(* to_has_execution)(struct target_ops *, ptid_t)
void target_goto_record_end(void)
void async_callback_ftype(enum inferior_event_type event_type, void *context)
void(* to_trace_set_readonly_regions)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
static struct address_space * default_thread_address_space(struct target_ops *self, ptid_t ptid)
int target_remove_mask_watchpoint(CORE_ADDR, CORE_ADDR, int)
void target_flash_erase(ULONGEST address, LONGEST length)
int(* to_fileio_fstat)(struct target_ops *, int fd, struct stat *sb, int *target_errno)
void(* to_get_tracepoint_status)(struct target_ops *, struct breakpoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN(tcomplain())
int default_child_has_all_memory(struct target_ops *ops)
char * target_fileio_readlink(struct inferior *inf, const char *filename, int *target_errno)
int(* to_upload_trace_state_variables)(struct target_ops *, struct uploaded_tsv **utsvp) TARGET_DEFAULT_RETURN(0)
enum target_xfer_status target_xfer_partial_ftype(struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
ULONGEST get_target_memory_unsigned(struct target_ops *ops, CORE_ADDR addr, int len, enum bfd_endian byte_order)
int(* to_augmented_libraries_svr4_read)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void add_target_with_completer(struct target_ops *t, completer_ftype *completer)
int(* to_insert_fork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
int target_read_stack(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void target_call_history(int size, int flags)
thread_control_capabilities
enum target_xfer_status(* to_xfer_partial)(struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) TARGET_DEFAULT_RETURN(TARGET_XFER_E_IO)
int(* to_search_memory)(struct target_ops *ops, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) TARGET_DEFAULT_FUNC(default_search_memory)
int target_record_is_replaying(void)
int default_child_has_memory(struct target_ops *ops)
char * target_get_osdata(const char *type)
int(* to_get_tib_address)(struct target_ops *, ptid_t ptid, CORE_ADDR *addr) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_detach)(struct target_ops *ops, const char *, int) TARGET_DEFAULT_IGNORE()
void(* to_async)(struct target_ops *, int) TARGET_DEFAULT_NORETURN(tcomplain())
struct bfd_section * the_bfd_section
void target_resume(ptid_t ptid, int step, enum gdb_signal signal)
LONGEST target_write_with_progress(struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len, void(*progress)(ULONGEST, void *), void *baton)
static enum exec_direction_kind default_execution_direction(struct target_ops *self)
int simple_verify_memory(struct target_ops *ops, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
int(* to_insert_hw_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
int(* to_can_run_breakpoint_commands)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int(* to_remove_mask_watchpoint)(struct target_ops *, CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_RETURN(1)
static int dummy_find_memory_regions(struct target_ops *self, find_memory_region_ftype ignore1, void *ignore2)
static void target_debug_print_signals(unsigned char *sigs)
void(* to_disconnect)(struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
int(* to_can_download_tracepoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void target_terminal_ours_for_output(void)
void(* to_log_command)(struct target_ops *, const char *) TARGET_DEFAULT_IGNORE()
enum btrace_error(* to_read_btrace)(struct target_ops *self, struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) TARGET_DEFAULT_NORETURN(tcomplain())
int(* to_auxv_parse)(struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC(default_auxv_parse)
int(* to_verify_memory)(struct target_ops *, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) TARGET_DEFAULT_FUNC(default_verify_memory)
int(* to_fileio_open)(struct target_ops *, struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, int *target_errno)
char * target_pid_to_str(ptid_t ptid)
void target_call_history_from(ULONGEST begin, int size, int flags)
void(* to_download_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
VEC(mem_region_s)*(*to_memory_map)(struct target_ops *) TARGET_DEFAULT_RETURN(NULL)
static void default_mourn_inferior(struct target_ops *self)
int(* to_remove_hw_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
const char const char int
enum exec_direction_kind(* to_execution_direction)(struct target_ops *) TARGET_DEFAULT_FUNC(default_execution_direction)
int target_terminal_is_inferior(void)
void(* to_flash_erase)(struct target_ops *, ULONGEST address, LONGEST length) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_fetch_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_IGNORE()
void target_require_runnable(void)
int target_info_proc(const char *, enum info_proc_what)
void(* to_mourn_inferior)(struct target_ops *) TARGET_DEFAULT_FUNC(default_mourn_inferior)
int(* to_set_trace_notes)(struct target_ops *, const char *user, const char *notes, const char *stopnotes) TARGET_DEFAULT_RETURN(0)
int(* to_can_use_hw_breakpoint)(struct target_ops *, int, int, int) TARGET_DEFAULT_RETURN(0)
static int default_search_memory(struct target_ops *self, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
const char *id TARGET_DEFAULT_NORETURN(tcomplain())
void pop_all_targets_above(enum strata above_stratum)
void(* to_pass_signals)(struct target_ops *, int, unsigned char *TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
void(* to_stop)(struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE()
void(* to_teardown_btrace)(struct target_ops *, struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
struct target_section * target_section_by_addr(struct target_ops *target, CORE_ADDR addr)
int(* to_save_trace_data)(struct target_ops *, const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_download_trace_state_variable)(struct target_ops *, struct trace_state_variable *tsv) TARGET_DEFAULT_NORETURN(tcomplain())
int target_follow_fork(int follow_child, int detach_fork)
int(* to_fileio_pwrite)(struct target_ops *, int fd, const gdb_byte *write_buf, int len, ULONGEST offset, int *target_errno)
int simple_search_memory(struct target_ops *ops, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
void(* to_kill)(struct target_ops *) TARGET_DEFAULT_NORETURN(noprocess())
int target_insert_breakpoint(struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
int target_fileio_fstat(int fd, struct stat *sb, int *target_errno)
int target_read_string(CORE_ADDR, char **, int, int *)
int(* to_can_accel_watchpoint_condition)(struct target_ops *, CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(0)
VEC(memory_read_result_s)*read_memory_robust(struct target_ops *ops
int(* to_stopped_by_sw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
#define TARGET_DEBUG_PRINTER(FUNC)
void(* to_goto_record_end)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_set_circular_trace_buffer)(struct target_ops *, int val) TARGET_DEFAULT_IGNORE()
static char * dummy_make_corefile_notes(struct target_ops *self, bfd *ignore1, int *ignore2)
void(* to_open)(const char *, int)
int target_core_of_thread(ptid_t ptid)
void add_target(struct target_ops *)
int target_insert_mask_watchpoint(CORE_ADDR, CORE_ADDR, int)
int(* to_ranged_break_num_registers)(struct target_ops *) TARGET_DEFAULT_RETURN(-1)
void(* to_call_history_from)(struct target_ops *, ULONGEST begin, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_post_attach)(struct target_ops *, int) TARGET_DEFAULT_IGNORE()
int(* to_can_async_p)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int target_read_raw_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void(* to_create_inferior)(struct target_ops *, char *, char *, char **, int)
int target_supports_disable_randomization(void)
int(* to_static_tracepoint_marker_at)(struct target_ops *, CORE_ADDR, struct static_tracepoint_marker *marker) TARGET_DEFAULT_RETURN(0)
int default_child_has_stack(struct target_ops *ops)
int(* to_stopped_by_watchpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int to_have_steppable_watchpoint
int(* to_get_trace_status)(struct target_ops *, struct trace_status *ts) TARGET_DEFAULT_RETURN(-1)
void initialize_targets(void)
char * target_options_to_string(int target_options)
void target_update_thread_list(void)
void(* to_terminal_ours)(struct target_ops *) TARGET_DEFAULT_IGNORE()
struct cleanup * make_show_memory_breakpoints_cleanup(int show)
int(* to_stopped_by_hw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
const struct btrace_config * target_btrace_conf(const struct btrace_target_info *)
int target_has_registers_1(void)
void free_memory_read_result_vector(void *)
void(* to_enable_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
char * target_fileio_read_stralloc(struct inferior *inf, const char *filename)
static int default_verify_memory(struct target_ops *self, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
void(* to_terminal_inferior)(struct target_ops *) TARGET_DEFAULT_IGNORE()
static void default_rcmd(struct target_ops *self, const char *command, struct ui_file *output)
const char * to_shortname
int to_have_continuable_watchpoint
unsigned long long ULONGEST
target_xfer_partial_ftype target_xfer_partial
void(* to_insn_history)(struct target_ops *, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
void target_stop_recording(void)
int(* to_record_is_replaying)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int(* to_supports_non_stop)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void target_program_signals(int nsig, unsigned char *program_signals)
int(* to_has_all_memory)(struct target_ops *)
void(* to_done_generating_core)(struct target_ops *) TARGET_DEFAULT_IGNORE()
struct target_ops * find_target_at(enum strata stratum)
int(* to_fileio_unlink)(struct target_ops *, struct inferior *inf, const char *filename, int *target_errno)
int(* to_insert_vfork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
int to_has_thread_control
int(* to_thread_alive)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(0)
void(* to_info_proc)(struct target_ops *, const char *, enum info_proc_what)
void target_terminal_init(void)
void(* to_attach)(struct target_ops *ops, const char *, int)
const struct frame_unwind * target_get_unwinder(void)
void target_disable_btrace(struct btrace_target_info *btinfo)
int(* to_use_agent)(struct target_ops *, int use) TARGET_DEFAULT_NORETURN(tcomplain())
int(* to_supports_btrace)(struct target_ops *, enum btrace_format) TARGET_DEFAULT_RETURN(0)
LONGEST target_read(struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len)
int(* to_stopped_data_address)(struct target_ops *, CORE_ADDR *) TARGET_DEFAULT_RETURN(0)
int(* to_set_syscall_catchpoint)(struct target_ops *, int, int, int, int, int *) TARGET_DEFAULT_RETURN(1)
void(* to_update_thread_list)(struct target_ops *) TARGET_DEFAULT_IGNORE()
int target_fileio_open_warn_if_slow(struct inferior *inf, const char *filename, int flags, int mode, int *target_errno)
void(* to_prepare_to_store)(struct target_ops *, struct regcache *) TARGET_DEFAULT_NORETURN(noprocess())
void target_disconnect(const char *, int)
DEF_VEC_P(static_tracepoint_marker_p)
void(* to_store_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_NORETURN(noprocess())
int(* find_memory_region_ftype)(CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, void *data)
int target_masked_watch_num_registers(CORE_ADDR addr, CORE_ADDR mask)
int(* to_has_registers)(struct target_ops *)
void target_stop(ptid_t ptid)
void pop_all_targets(void)
void target_teardown_btrace(struct btrace_target_info *btinfo)
int target_fileio_open(struct inferior *inf, const char *filename, int flags, int mode, int *target_errno)
static void target_debug_print_options(int options)
enum target_xfer_status raw_memory_xfer_partial(struct target_ops *ops, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, LONGEST len, ULONGEST *xfered_len)
ptid_t(* to_get_ada_task_ptid)(struct target_ops *, long lwp, long thread) TARGET_DEFAULT_FUNC(default_get_ada_task_ptid)
static void tcomplain(void)
int(* to_insert_mask_watchpoint)(struct target_ops *, CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_RETURN(1)
void(* to_disable_btrace)(struct target_ops *, struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
int target_ranged_break_num_registers(void)
void target_pre_inferior(int)
const struct frame_unwind * target_get_tailcall_unwinder(void)
struct target_section_table * target_get_section_table(struct target_ops *target)
mach_port_t mach_port_t name mach_port_t mach_port_t name error_t int int rusage_t pid_t pid
void target_goto_record_begin(void)
#define TARGET_DEFAULT_FUNC(ARG)
struct target_ops * beneath
int(* to_can_execute_reverse)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void(* to_load)(struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
void(* to_terminal_info)(struct target_ops *, const char *, int) TARGET_DEFAULT_FUNC(default_terminal_info)
void target_goto_record(ULONGEST insn)
int(* to_filesystem_is_local)(struct target_ops *) TARGET_DEFAULT_RETURN(1)
int(* to_supports_multi_process)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
void(* to_post_startup_inferior)(struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE()
int(* to_can_use_agent)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
int target_has_execution_current(void)
void(* to_goto_record)(struct target_ops *, ULONGEST insn) TARGET_DEFAULT_NORETURN(tcomplain())
LONGEST target_fileio_read_alloc(struct inferior *inf, const char *filename, gdb_byte **buf_p)
int target_supports_terminal_ours(void)
struct static_tracepoint_marker * static_tracepoint_marker_p
const ULONGEST const LONGEST len