GDB (xrefs)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/target.h File Reference
#include "target/resume.h"
#include "target/wait.h"
#include "target/waitstatus.h"
#include "bfd.h"
#include "symtab.h"
#include "memattr.h"
#include "vec.h"
#include "gdb_signals.h"
#include "btrace.h"
#include "command.h"

Go to the source code of this file.

Classes

struct  syscall
struct  memory_read_result
struct  target_ops
struct  memory_write_request
struct  target_section
struct  target_section_table

Defines

#define OPS_MAGIC   3840
#define target_shortname   (current_target.to_shortname)
#define target_longname   (current_target.to_longname)
#define target_attach_no_wait   (current_target.to_attach_no_wait)
#define target_post_attach(pid)   (*current_target.to_post_attach) (pid)
#define target_prepare_to_store(regcache)   (*current_target.to_prepare_to_store) (regcache)
#define target_supports_multi_process()   (*current_target.to_supports_multi_process) ()
#define target_supports_enable_disable_tracepoint()   (*current_target.to_supports_enable_disable_tracepoint) ()
#define target_supports_string_tracing()   (*current_target.to_supports_string_tracing) ()
#define target_supports_evaluation_of_breakpoint_conditions()   (*current_target.to_supports_evaluation_of_breakpoint_conditions) ()
#define target_can_run_breakpoint_commands()   (*current_target.to_can_run_breakpoint_commands) ()
#define target_files_info()   (*current_target.to_files_info) (&current_target)
#define target_terminal_init()   (*current_target.to_terminal_init) ()
#define target_terminal_ours_for_output()   (*current_target.to_terminal_ours_for_output) ()
#define target_terminal_ours()   (*current_target.to_terminal_ours) ()
#define target_terminal_save_ours()   (*current_target.to_terminal_save_ours) ()
#define target_terminal_info(arg, from_tty)   (*current_target.to_terminal_info) (arg, from_tty)
#define target_post_startup_inferior(ptid)   (*current_target.to_post_startup_inferior) (ptid)
#define target_insert_fork_catchpoint(pid)   (*current_target.to_insert_fork_catchpoint) (pid)
#define target_remove_fork_catchpoint(pid)   (*current_target.to_remove_fork_catchpoint) (pid)
#define target_insert_vfork_catchpoint(pid)   (*current_target.to_insert_vfork_catchpoint) (pid)
#define target_remove_vfork_catchpoint(pid)   (*current_target.to_remove_vfork_catchpoint) (pid)
#define target_insert_exec_catchpoint(pid)   (*current_target.to_insert_exec_catchpoint) (pid)
#define target_remove_exec_catchpoint(pid)   (*current_target.to_remove_exec_catchpoint) (pid)
#define target_set_syscall_catchpoint(pid, needed, any_count, table_size, table)
#define target_has_exited(pid, wait_status, exit_status)   (*current_target.to_has_exited) (pid,wait_status,exit_status)
#define target_can_run(t)   ((t)->to_can_run) ()
#define target_rcmd(command, outbuf)   (*current_target.to_rcmd) (command, outbuf)
#define target_has_all_memory   target_has_all_memory_1 ()
#define target_has_memory   target_has_memory_1 ()
#define target_has_stack   target_has_stack_1 ()
#define target_has_registers   target_has_registers_1 ()
#define target_has_execution   target_has_execution_current ()
#define target_can_lock_scheduler   (current_target.to_has_thread_control & tc_schedlock)
#define target_can_async_p()   (current_target.to_can_async_p ())
#define target_is_async_p()   (current_target.to_is_async_p ())
#define target_async(CALLBACK, CONTEXT)   (current_target.to_async ((CALLBACK), (CONTEXT)))
#define target_execution_direction()   (current_target.to_execution_direction ())
#define target_extra_thread_info(TP)   (current_target.to_extra_thread_info (TP))
#define target_pid_to_exec_file(pid)   (current_target.to_pid_to_exec_file) (pid)
#define target_thread_architecture(ptid)   (current_target.to_thread_architecture (&current_target, ptid))
#define target_find_memory_regions(FUNC, DATA)   (current_target.to_find_memory_regions) (FUNC, DATA)
#define target_make_corefile_notes(BFD, SIZE_P)   (current_target.to_make_corefile_notes) (BFD, SIZE_P)
#define target_get_bookmark(ARGS, FROM_TTY)   (current_target.to_get_bookmark) (ARGS, FROM_TTY)
#define target_goto_bookmark(ARG, FROM_TTY)   (current_target.to_goto_bookmark) (ARG, FROM_TTY)
#define target_stopped_by_watchpoint   (*current_target.to_stopped_by_watchpoint)
#define target_have_steppable_watchpoint   (current_target.to_have_steppable_watchpoint)
#define target_have_continuable_watchpoint   (current_target.to_have_continuable_watchpoint)
#define target_can_use_hardware_watchpoint(TYPE, CNT, OTHERTYPE)   (*current_target.to_can_use_hw_breakpoint) (TYPE, CNT, OTHERTYPE);
#define target_region_ok_for_hw_watchpoint(addr, len)   (*current_target.to_region_ok_for_hw_watchpoint) (addr, len)
#define target_insert_watchpoint(addr, len, type, cond)   (*current_target.to_insert_watchpoint) (addr, len, type, cond)
#define target_remove_watchpoint(addr, len, type, cond)   (*current_target.to_remove_watchpoint) (addr, len, type, cond)
#define target_insert_hw_breakpoint(gdbarch, bp_tgt)   (*current_target.to_insert_hw_breakpoint) (gdbarch, bp_tgt)
#define target_remove_hw_breakpoint(gdbarch, bp_tgt)   (*current_target.to_remove_hw_breakpoint) (gdbarch, bp_tgt)
#define target_stopped_data_address(target, addr_p)   (*target.to_stopped_data_address) (target, addr_p)
#define target_watchpoint_addr_within_range(target, addr, start, length)   (*target.to_watchpoint_addr_within_range) (target, addr, start, length)
#define target_can_accel_watchpoint_condition(addr, len, type, cond)   (*current_target.to_can_accel_watchpoint_condition) (addr, len, type, cond)
#define target_can_execute_reverse
#define target_get_ada_task_ptid(lwp, tid)   (*current_target.to_get_ada_task_ptid) (lwp,tid)
#define target_trace_init()   (*current_target.to_trace_init) ()
#define target_download_tracepoint(t)   (*current_target.to_download_tracepoint) (t)
#define target_can_download_tracepoint()   (*current_target.to_can_download_tracepoint) ()
#define target_download_trace_state_variable(tsv)   (*current_target.to_download_trace_state_variable) (tsv)
#define target_enable_tracepoint(loc)   (*current_target.to_enable_tracepoint) (loc)
#define target_disable_tracepoint(loc)   (*current_target.to_disable_tracepoint) (loc)
#define target_trace_start()   (*current_target.to_trace_start) ()
#define target_trace_set_readonly_regions()   (*current_target.to_trace_set_readonly_regions) ()
#define target_get_trace_status(ts)   (*current_target.to_get_trace_status) (ts)
#define target_get_tracepoint_status(tp, utp)   (*current_target.to_get_tracepoint_status) (tp, utp)
#define target_trace_stop()   (*current_target.to_trace_stop) ()
#define target_trace_find(type, num, addr1, addr2, tpp)   (*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))
#define target_get_trace_state_variable_value(tsv, val)   (*current_target.to_get_trace_state_variable_value) ((tsv), (val))
#define target_save_trace_data(filename)   (*current_target.to_save_trace_data) (filename)
#define target_upload_tracepoints(utpp)   (*current_target.to_upload_tracepoints) (utpp)
#define target_upload_trace_state_variables(utsvp)   (*current_target.to_upload_trace_state_variables) (utsvp)
#define target_get_raw_trace_data(buf, offset, len)   (*current_target.to_get_raw_trace_data) ((buf), (offset), (len))
#define target_get_min_fast_tracepoint_insn_len()   (*current_target.to_get_min_fast_tracepoint_insn_len) ()
#define target_set_disconnected_tracing(val)   (*current_target.to_set_disconnected_tracing) (val)
#define target_set_circular_trace_buffer(val)   (*current_target.to_set_circular_trace_buffer) (val)
#define target_set_trace_buffer_size(val)   (*current_target.to_set_trace_buffer_size) (val)
#define target_set_trace_notes(user, notes, stopnotes)   (*current_target.to_set_trace_notes) ((user), (notes), (stopnotes))
#define target_get_tib_address(ptid, addr)   (*current_target.to_get_tib_address) ((ptid), (addr))
#define target_set_permissions()   (*current_target.to_set_permissions) ()
#define target_static_tracepoint_marker_at(addr, marker)   (*current_target.to_static_tracepoint_marker_at) (addr, marker)
#define target_static_tracepoint_markers_by_strid(marker_id)   (*current_target.to_static_tracepoint_markers_by_strid) (marker_id)
#define target_traceframe_info()   (*current_target.to_traceframe_info) ()
#define target_use_agent(use)   (*current_target.to_use_agent) (use)
#define target_can_use_agent()   (*current_target.to_can_use_agent) ()
#define target_augmented_libraries_svr4_read()   (*current_target.to_augmented_libraries_svr4_read) ()
#define target_log_command(p)

Typedefs

typedef struct
static_tracepoint_marker
static_tracepoint_marker_p
typedef struct memory_read_result memory_read_result_s
typedef struct memory_write_request memory_write_request_s

Enumerations

enum  strata {
  dummy_stratum, file_stratum, process_stratum, thread_stratum,
  record_stratum, arch_stratum
}
enum  thread_control_capabilities { tc_none = 0, tc_schedlock = 1 }
enum  inferior_event_type { INF_REG_EVENT, INF_TIMER, INF_EXEC_COMPLETE, INF_EXEC_CONTINUE }
enum  target_object {
  TARGET_OBJECT_AVR, TARGET_OBJECT_SPU, TARGET_OBJECT_MEMORY, TARGET_OBJECT_RAW_MEMORY,
  TARGET_OBJECT_STACK_MEMORY, TARGET_OBJECT_UNWIND_TABLE, TARGET_OBJECT_AUXV, TARGET_OBJECT_WCOOKIE,
  TARGET_OBJECT_MEMORY_MAP, TARGET_OBJECT_FLASH, TARGET_OBJECT_AVAILABLE_FEATURES, TARGET_OBJECT_LIBRARIES,
  TARGET_OBJECT_LIBRARIES_SVR4, TARGET_OBJECT_LIBRARIES_AIX, TARGET_OBJECT_OSDATA, TARGET_OBJECT_SIGNAL_INFO,
  TARGET_OBJECT_THREADS, TARGET_OBJECT_STATIC_TRACE_DATA, TARGET_OBJECT_HPUX_UREGS, TARGET_OBJECT_HPUX_SOLIB_GOT,
  TARGET_OBJECT_TRACEFRAME_INFO, TARGET_OBJECT_FDPIC, TARGET_OBJECT_DARWIN_DYLD_INFO, TARGET_OBJECT_OPENVMS_UIB,
  TARGET_OBJECT_BTRACE
}
enum  target_xfer_error { TARGET_XFER_E_IO = -1, TARGET_XFER_E_UNAVAILABLE = -2 }
enum  trace_find_type {
  tfind_number, tfind_pc, tfind_tp, tfind_range,
  tfind_outside
}
enum  flash_preserve_mode { flash_preserve, flash_discard }

Functions

char * target_waitstatus_to_string (const struct target_waitstatus *)
char * target_options_to_string (int target_options)
const char * target_xfer_error_to_string (enum target_xfer_error err)
 DEF_VEC_P (static_tracepoint_marker_p)
LONGEST target_read (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len)
 DEF_VEC_O (memory_read_result_s)
void free_memory_read_result_vector (void *)
 VEC (memory_read_result_s)*read_memory_robust(struct target_ops *ops
LONGEST target_write (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len)
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)
LONGEST target_read_alloc (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte **buf_p)
char * target_read_stralloc (struct target_ops *ops, enum target_object object, const char *annex)
LONGEST target_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, void *readbuf, const void *writebuf, ULONGEST offset, LONGEST len)
void get_target_memory (struct target_ops *ops, CORE_ADDR addr, gdb_byte *buf, LONGEST len)
ULONGEST get_target_memory_unsigned (struct target_ops *ops, CORE_ADDR addr, int len, enum bfd_endian byte_order)
void target_close (struct target_ops *targ)
void target_attach (char *, int)
void target_detach (char *, int)
void target_disconnect (char *, int)
void target_resume (ptid_t ptid, int step, enum gdb_signal signal)
ptid_t target_wait (ptid_t ptid, struct target_waitstatus *status, int options)
void target_fetch_registers (struct regcache *regcache, int regno)
void target_store_registers (struct regcache *regcache, int regs)
struct address_spacetarget_thread_address_space (ptid_t)
int target_info_proc (char *, enum info_proc_what)
int target_supports_disable_randomization (void)
void target_dcache_invalidate (void)
int target_read_string (CORE_ADDR, char **, int, int *)
int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
int target_read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
int target_write_raw_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
 VEC (mem_region_s)*target_memory_map(void)
void target_flash_erase (ULONGEST address, LONGEST length)
void target_flash_done (void)
 DEF_VEC_O (memory_write_request_s)
int target_write_memory_blocks (VEC(memory_write_request_s)*requests, enum flash_preserve_mode preserve_flash_p, void(*progress_cb)(ULONGEST, void *))
int target_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
int target_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
void target_terminal_inferior (void)
void target_kill (void)
void target_load (char *arg, int from_tty)
void target_create_inferior (char *exec_file, char *args, char **env, int from_tty)
int target_follow_fork (int follow_child, int detach_fork)
void target_mourn_inferior (void)
void target_pass_signals (int nsig, unsigned char *pass_signals)
void target_program_signals (int nsig, unsigned char *program_signals)
int target_thread_alive (ptid_t ptid)
void target_find_new_threads (void)
void target_stop (ptid_t ptid)
int target_has_all_memory_1 (void)
int target_has_memory_1 (void)
int target_has_stack_1 (void)
int target_has_registers_1 (void)
int target_has_execution_1 (ptid_t)
int target_has_execution_current (void)
int default_child_has_all_memory (struct target_ops *ops)
int default_child_has_memory (struct target_ops *ops)
int default_child_has_stack (struct target_ops *ops)
int default_child_has_registers (struct target_ops *ops)
int default_child_has_execution (struct target_ops *ops, ptid_t the_ptid)
int target_supports_non_stop (void)
char * target_pid_to_str (ptid_t ptid)
char * normal_pid_to_str (ptid_t ptid)
char * target_thread_name (struct thread_info *)
int target_insert_mask_watchpoint (CORE_ADDR, CORE_ADDR, int)
int target_remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, int)
int target_ranged_break_num_registers (void)
int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask)
struct target_desctarget_read_description (struct target_ops *)
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)
int target_search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
int target_fileio_open (const char *filename, int flags, int mode, int *target_errno)
int target_fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, int *target_errno)
int target_fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *target_errno)
int target_fileio_close (int fd, int *target_errno)
int target_fileio_unlink (const char *filename, int *target_errno)
char * target_fileio_readlink (const char *filename, int *target_errno)
LONGEST target_fileio_read_alloc (const char *filename, gdb_byte **buf_p)
char * target_fileio_read_stralloc (const char *filename)
int target_core_of_thread (ptid_t ptid)
int target_verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
void add_target (struct target_ops *)
void add_target_with_completer (struct target_ops *t, completer_ftype *completer)
void complete_target_initialization (struct target_ops *t)
void add_deprecated_target_alias (struct target_ops *t, char *alias)
void push_target (struct target_ops *)
int unpush_target (struct target_ops *)
void target_pre_inferior (int)
void target_preopen (int)
void pop_all_targets (void)
void pop_all_targets_above (enum strata above_stratum)
int target_is_pushed (struct target_ops *t)
CORE_ADDR target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset)
struct target_sectiontarget_section_by_addr (struct target_ops *target, CORE_ADDR addr)
struct target_section_tabletarget_get_section_table (struct target_ops *target)
int memory_remove_breakpoint (struct gdbarch *, struct bp_target_info *)
int memory_insert_breakpoint (struct gdbarch *, struct bp_target_info *)
int default_memory_remove_breakpoint (struct gdbarch *, struct bp_target_info *)
int default_memory_insert_breakpoint (struct gdbarch *, struct bp_target_info *)
void initialize_targets (void)
void noprocess (void) ATTRIBUTE_NORETURN
void target_require_runnable (void)
void find_default_attach (struct target_ops *, char *, int)
void find_default_create_inferior (struct target_ops *, char *, char *, char **, int)
struct target_opsfind_target_beneath (struct target_ops *)
char * target_get_osdata (const char *type)
struct cleanupmake_show_memory_breakpoints_cleanup (int show)
void update_target_permissions (void)
void target_ignore (void)
int target_supports_btrace (void)
struct btrace_target_infotarget_enable_btrace (ptid_t ptid)
void target_disable_btrace (struct btrace_target_info *btinfo)
void target_teardown_btrace (struct btrace_target_info *btinfo)
 VEC (btrace_block_s)*target_read_btrace(struct btrace_target_info *
enum btrace_read_type void target_stop_recording (void)
void target_info_record (void)
void target_save_record (const char *filename)
int target_supports_delete_record (void)
void target_delete_record (void)
int target_record_is_replaying (void)
void target_goto_record_begin (void)
void target_goto_record_end (void)
void target_goto_record (ULONGEST insn)
void target_insn_history (int size, int flags)
void target_insn_history_from (ULONGEST from, int size, int flags)
void target_insn_history_range (ULONGEST begin, ULONGEST end, int flags)
void target_call_history (int size, int flags)
void target_call_history_from (ULONGEST begin, int size, int flags)
void target_call_history_range (ULONGEST begin, ULONGEST end, int flags)

Variables

ULONGEST offset
ULONGEST LONGEST len
struct target_ops current_target
int target_async_permitted
int remote_debug
int baud_rate
int remote_timeout
int may_write_registers
int may_write_memory
int may_insert_breakpoints
int may_insert_tracepoints
int may_insert_fast_tracepoints
int may_stop

Define Documentation

#define OPS_MAGIC   3840
#define target_async (   CALLBACK,
  CONTEXT 
)    (current_target.to_async ((CALLBACK), (CONTEXT)))
#define target_attach_no_wait   (current_target.to_attach_no_wait)

Definition at line 934 of file target.h.

Referenced by attach_command().

#define target_augmented_libraries_svr4_read ( )    (*current_target.to_augmented_libraries_svr4_read) ()

Definition at line 1758 of file target.h.

Referenced by solist_update_incremental().

#define target_can_accel_watchpoint_condition (   addr,
  len,
  type,
  cond 
)    (*current_target.to_can_accel_watchpoint_condition) (addr, len, type, cond)

Definition at line 1582 of file target.h.

Referenced by watchpoint_locations_match().

#define target_can_async_p ( )    (current_target.to_can_async_p ())
#define target_can_download_tracepoint ( )    (*current_target.to_can_download_tracepoint) ()

Definition at line 1677 of file target.h.

Referenced by download_tracepoint_locations().

Value:
(current_target.to_can_execute_reverse ? \
      current_target.to_can_execute_reverse () : 0)

Definition at line 1592 of file target.h.

Referenced by default_execution_direction(), exec_reverse_continue(), exec_reverse_once(), mi_cmd_list_target_features(), and set_exec_direction_func().

#define target_can_lock_scheduler   (current_target.to_has_thread_control & tc_schedlock)

Definition at line 1400 of file target.h.

Referenced by set_schedlock_func().

#define target_can_run (   t)    ((t)->to_can_run) ()
#define target_can_run_breakpoint_commands ( )    (*current_target.to_can_run_breakpoint_commands) ()

Definition at line 1042 of file target.h.

Referenced by build_target_command_list(), and update_dprintf_command_list().

#define target_can_use_agent ( )    (*current_target.to_can_use_agent) ()

Definition at line 1755 of file target.h.

#define target_can_use_hardware_watchpoint (   TYPE,
  CNT,
  OTHERTYPE 
)    (*current_target.to_can_use_hw_breakpoint) (TYPE, CNT, OTHERTYPE);
#define target_disable_tracepoint (   loc)    (*current_target.to_disable_tracepoint) (loc)

Definition at line 1686 of file target.h.

Referenced by disable_breakpoint(), and disable_command().

#define target_download_trace_state_variable (   tsv)    (*current_target.to_download_trace_state_variable) (tsv)

Definition at line 1680 of file target.h.

Referenced by start_tracing().

#define target_download_tracepoint (   t)    (*current_target.to_download_tracepoint) (t)

Definition at line 1674 of file target.h.

Referenced by download_tracepoint_locations(), and start_tracing().

#define target_enable_tracepoint (   loc)    (*current_target.to_enable_tracepoint) (loc)

Definition at line 1683 of file target.h.

Referenced by enable_breakpoint_disp(), and enable_command().

#define target_execution_direction ( )    (current_target.to_execution_direction ())

Definition at line 1419 of file target.h.

Referenced by fetch_inferior_event().

#define target_extra_thread_info (   TP)    (current_target.to_extra_thread_info (TP))

Definition at line 1434 of file target.h.

Referenced by print_thread_info(), and thread_find_command().

#define target_files_info ( )    (*current_target.to_files_info) (&current_target)

Definition at line 1117 of file target.h.

Referenced by program_info().

#define target_find_memory_regions (   FUNC,
  DATA 
)    (current_target.to_find_memory_regions) (FUNC, DATA)

Definition at line 1469 of file target.h.

Referenced by gcore_memory_sections().

#define target_get_ada_task_ptid (   lwp,
  tid 
)    (*current_target.to_get_ada_task_ptid) (lwp,tid)

Definition at line 1598 of file target.h.

Referenced by ptid_from_atcb_common().

#define target_get_bookmark (   ARGS,
  FROM_TTY 
)    (current_target.to_get_bookmark) (ARGS, FROM_TTY)

Definition at line 1480 of file target.h.

Referenced by save_bookmark_command().

#define target_get_min_fast_tracepoint_insn_len ( )    (*current_target.to_get_min_fast_tracepoint_insn_len) ()

Definition at line 1722 of file target.h.

Referenced by i386_fast_tracepoint_valid_at().

#define target_get_raw_trace_data (   buf,
  offset,
  len 
)    (*current_target.to_get_raw_trace_data) ((buf), (offset), (len))

Definition at line 1719 of file target.h.

Referenced by trace_save().

#define target_get_tib_address (   ptid,
  addr 
)    (*current_target.to_get_tib_address) ((ptid), (addr))

Definition at line 1737 of file target.h.

Referenced by display_one_tib(), and tlb_value_read().

#define target_get_trace_state_variable_value (   tsv,
  val 
)    (*current_target.to_get_trace_state_variable_value) ((tsv), (val))
#define target_get_trace_status (   ts)    (*current_target.to_get_trace_status) (ts)
#define target_get_tracepoint_status (   tp,
  utp 
)    (*current_target.to_get_tracepoint_status) (tp, utp)

Definition at line 1698 of file target.h.

Referenced by trace_save(), and trace_status_command().

#define target_goto_bookmark (   ARG,
  FROM_TTY 
)    (current_target.to_goto_bookmark) (ARG, FROM_TTY)

Definition at line 1483 of file target.h.

Referenced by goto_bookmark_command().

Definition at line 1353 of file target.h.

#define target_has_exited (   pid,
  wait_status,
  exit_status 
)    (*current_target.to_has_exited) (pid,wait_status,exit_status)

Definition at line 1279 of file target.h.

#define target_have_continuable_watchpoint   (current_target.to_have_continuable_watchpoint)

Definition at line 1501 of file target.h.

#define target_have_steppable_watchpoint   (current_target.to_have_steppable_watchpoint)

Definition at line 1496 of file target.h.

Referenced by handle_inferior_event(), and procfs_insert_watchpoint().

#define target_insert_exec_catchpoint (   pid)    (*current_target.to_insert_exec_catchpoint) (pid)

Definition at line 1246 of file target.h.

Referenced by insert_catch_exec().

#define target_insert_fork_catchpoint (   pid)    (*current_target.to_insert_fork_catchpoint) (pid)

Definition at line 1219 of file target.h.

Referenced by insert_catch_fork().

#define target_insert_hw_breakpoint (   gdbarch,
  bp_tgt 
)    (*current_target.to_insert_hw_breakpoint) (gdbarch, bp_tgt)

Definition at line 1550 of file target.h.

Referenced by bkpt_insert_location().

#define target_insert_vfork_catchpoint (   pid)    (*current_target.to_insert_vfork_catchpoint) (pid)

Definition at line 1225 of file target.h.

Referenced by insert_catch_vfork().

#define target_insert_watchpoint (   addr,
  len,
  type,
  cond 
)    (*current_target.to_insert_watchpoint) (addr, len, type, cond)

Definition at line 1530 of file target.h.

Referenced by insert_watchpoint().

#define target_is_async_p ( )    (current_target.to_is_async_p ())
#define target_log_command (   p)
Value:

Definition at line 1763 of file target.h.

Referenced by execute_command(), and mi_execute_command().

#define target_longname   (current_target.to_longname)

Definition at line 909 of file target.h.

Referenced by kill_command().

#define target_make_corefile_notes (   BFD,
  SIZE_P 
)    (current_target.to_make_corefile_notes) (BFD, SIZE_P)

Definition at line 1476 of file target.h.

Referenced by linux_make_corefile_notes_1(), and write_gcore_file().

#define target_pid_to_exec_file (   pid)    (current_target.to_pid_to_exec_file) (pid)

Definition at line 1454 of file target.h.

Referenced by attach_command_post_wait().

#define target_post_attach (   pid)    (*current_target.to_post_attach) (pid)
#define target_post_startup_inferior (   ptid)    (*current_target.to_post_startup_inferior) (ptid)

Definition at line 1211 of file target.h.

Referenced by inf_ptrace_create_inferior().

#define target_prepare_to_store (   regcache)    (*current_target.to_prepare_to_store) (regcache)

Definition at line 1000 of file target.h.

Referenced by regcache_raw_write().

#define target_rcmd (   command,
  outbuf 
)    (*current_target.to_rcmd) (command, outbuf)

Definition at line 1344 of file target.h.

Referenced by do_monitor_command().

#define target_region_ok_for_hw_watchpoint (   addr,
  len 
)    (*current_target.to_region_ok_for_hw_watchpoint) (addr, len)

Definition at line 1520 of file target.h.

Referenced by can_use_hardware_watchpoint(), and resources_needed_watchpoint().

#define target_remove_exec_catchpoint (   pid)    (*current_target.to_remove_exec_catchpoint) (pid)

Definition at line 1249 of file target.h.

Referenced by remove_catch_exec().

#define target_remove_fork_catchpoint (   pid)    (*current_target.to_remove_fork_catchpoint) (pid)

Definition at line 1222 of file target.h.

Referenced by remove_catch_fork().

#define target_remove_hw_breakpoint (   gdbarch,
  bp_tgt 
)    (*current_target.to_remove_hw_breakpoint) (gdbarch, bp_tgt)

Definition at line 1553 of file target.h.

Referenced by bkpt_remove_location(), and remove_breakpoint_1().

#define target_remove_vfork_catchpoint (   pid)    (*current_target.to_remove_vfork_catchpoint) (pid)

Definition at line 1228 of file target.h.

Referenced by remove_catch_vfork().

#define target_remove_watchpoint (   addr,
  len,
  type,
  cond 
)    (*current_target.to_remove_watchpoint) (addr, len, type, cond)

Definition at line 1533 of file target.h.

Referenced by remove_watchpoint().

#define target_save_trace_data (   filename)    (*current_target.to_save_trace_data) (filename)

Definition at line 1710 of file target.h.

Referenced by tfile_target_save().

#define target_set_circular_trace_buffer (   val)    (*current_target.to_set_circular_trace_buffer) (val)

Definition at line 1728 of file target.h.

Referenced by set_circular_trace_buffer(), and start_tracing().

#define target_set_disconnected_tracing (   val)    (*current_target.to_set_disconnected_tracing) (val)

Definition at line 1725 of file target.h.

Referenced by set_disconnected_tracing(), and start_tracing().

#define target_set_permissions ( )    (*current_target.to_set_permissions) ()

Definition at line 1740 of file target.h.

#define target_set_syscall_catchpoint (   pid,
  needed,
  any_count,
  table_size,
  table 
)
Value:
(*current_target.to_set_syscall_catchpoint) (pid, needed, any_count, \
                                                  table_size, table)

Definition at line 1272 of file target.h.

Referenced by insert_catch_syscall(), and remove_catch_syscall().

#define target_set_trace_buffer_size (   val)    (*current_target.to_set_trace_buffer_size) (val)

Definition at line 1731 of file target.h.

Referenced by set_trace_buffer_size(), and start_tracing().

#define target_set_trace_notes (   user,
  notes,
  stopnotes 
)    (*current_target.to_set_trace_notes) ((user), (notes), (stopnotes))
#define target_shortname   (current_target.to_shortname)
#define target_static_tracepoint_marker_at (   addr,
  marker 
)    (*current_target.to_static_tracepoint_marker_at) (addr, marker)
#define target_static_tracepoint_markers_by_strid (   marker_id)    (*current_target.to_static_tracepoint_markers_by_strid) (marker_id)
#define target_stopped_by_watchpoint   (*current_target.to_stopped_by_watchpoint)

Definition at line 1491 of file target.h.

Referenced by handle_inferior_event(), record_full_wait_1(), and watchpoints_triggered().

#define target_stopped_data_address (   target,
  addr_p 
)    (*target.to_stopped_data_address) (target, addr_p)

Definition at line 1564 of file target.h.

Referenced by handle_inferior_event(), and watchpoints_triggered().

#define target_supports_enable_disable_tracepoint ( )    (*current_target.to_supports_enable_disable_tracepoint) ()
#define target_supports_evaluation_of_breakpoint_conditions ( )    (*current_target.to_supports_evaluation_of_breakpoint_conditions) ()
#define target_supports_multi_process ( )    (*current_target.to_supports_multi_process) ()

Definition at line 1017 of file target.h.

Referenced by startup_inferior(), and user_visible_resume_ptid().

#define target_supports_string_tracing ( )    (*current_target.to_supports_string_tracing) ()

Definition at line 1030 of file target.h.

Referenced by decode_agent_options().

#define target_terminal_info (   arg,
  from_tty 
)    (*current_target.to_terminal_info) (arg, from_tty)

Definition at line 1172 of file target.h.

Referenced by term_info().

#define target_terminal_init ( )    (*current_target.to_terminal_init) ()
#define target_terminal_ours ( )    (*current_target.to_terminal_ours) ()
#define target_terminal_ours_for_output ( )    (*current_target.to_terminal_ours_for_output) ()
#define target_terminal_save_ours ( )    (*current_target.to_terminal_save_ours) ()

Definition at line 1166 of file target.h.

Referenced by tui_disable(), and tui_enable().

#define target_thread_architecture (   ptid)    (current_target.to_thread_architecture (&current_target, ptid))
#define target_trace_find (   type,
  num,
  addr1,
  addr2,
  tpp 
)    (*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))

Definition at line 1704 of file target.h.

Referenced by set_current_traceframe(), set_remote_traceframe(), and tfind_1().

#define target_trace_init ( )    (*current_target.to_trace_init) ()

Definition at line 1671 of file target.h.

Referenced by start_tracing().

#define target_trace_set_readonly_regions ( )    (*current_target.to_trace_set_readonly_regions) ()

Definition at line 1692 of file target.h.

Referenced by start_tracing().

#define target_trace_start ( )    (*current_target.to_trace_start) ()

Definition at line 1689 of file target.h.

Referenced by start_tracing().

#define target_trace_stop ( )    (*current_target.to_trace_stop) ()

Definition at line 1701 of file target.h.

Referenced by stop_tracing().

#define target_traceframe_info ( )    (*current_target.to_traceframe_info) ()

Definition at line 1749 of file target.h.

Referenced by get_traceframe_info().

#define target_upload_trace_state_variables (   utsvp)    (*current_target.to_upload_trace_state_variables) (utsvp)

Definition at line 1716 of file target.h.

Referenced by trace_save().

#define target_upload_tracepoints (   utpp)    (*current_target.to_upload_tracepoints) (utpp)

Definition at line 1713 of file target.h.

Referenced by trace_save().

#define target_use_agent (   use)    (*current_target.to_use_agent) (use)

Definition at line 1752 of file target.h.

Referenced by set_can_use_agent().

#define target_watchpoint_addr_within_range (   target,
  addr,
  start,
  length 
)    (*target.to_watchpoint_addr_within_range) (target, addr, start, length)

Definition at line 1569 of file target.h.

Referenced by watchpoints_triggered().


Typedef Documentation

Definition at line 263 of file target.h.

Definition at line 1084 of file target.h.

Definition at line 234 of file target.h.


Enumeration Type Documentation

Enumerator:
flash_preserve 
flash_discard 

Definition at line 1088 of file target.h.

Enumerator:
INF_REG_EVENT 
INF_TIMER 
INF_EXEC_COMPLETE 
INF_EXEC_CONTINUE 

Definition at line 112 of file target.h.

enum strata
Enumerator:
dummy_stratum 
file_stratum 
process_stratum 
thread_stratum 
record_stratum 
arch_stratum 

Definition at line 71 of file target.h.

Enumerator:
TARGET_OBJECT_AVR 
TARGET_OBJECT_SPU 
TARGET_OBJECT_MEMORY 
TARGET_OBJECT_RAW_MEMORY 
TARGET_OBJECT_STACK_MEMORY 
TARGET_OBJECT_UNWIND_TABLE 
TARGET_OBJECT_AUXV 
TARGET_OBJECT_WCOOKIE 
TARGET_OBJECT_MEMORY_MAP 
TARGET_OBJECT_FLASH 
TARGET_OBJECT_AVAILABLE_FEATURES 
TARGET_OBJECT_LIBRARIES 
TARGET_OBJECT_LIBRARIES_SVR4 
TARGET_OBJECT_LIBRARIES_AIX 
TARGET_OBJECT_OSDATA 
TARGET_OBJECT_SIGNAL_INFO 
TARGET_OBJECT_THREADS 
TARGET_OBJECT_STATIC_TRACE_DATA 
TARGET_OBJECT_HPUX_UREGS 
TARGET_OBJECT_HPUX_SOLIB_GOT 
TARGET_OBJECT_TRACEFRAME_INFO 
TARGET_OBJECT_FDPIC 
TARGET_OBJECT_DARWIN_DYLD_INFO 
TARGET_OBJECT_OPENVMS_UIB 
TARGET_OBJECT_BTRACE 

Definition at line 131 of file target.h.

Enumerator:
TARGET_XFER_E_IO 
TARGET_XFER_E_UNAVAILABLE 

Definition at line 204 of file target.h.

Enumerator:
tc_none 
tc_schedlock 

Definition at line 81 of file target.h.

Enumerator:
tfind_number 
tfind_pc 
tfind_tp 
tfind_range 
tfind_outside 

Definition at line 225 of file target.h.


Function Documentation

void add_deprecated_target_alias ( struct target_ops t,
char *  alias 
)
void add_target ( struct target_ops )
void add_target_with_completer ( struct target_ops t,
completer_ftype *  completer 
)
int default_child_has_execution ( struct target_ops ops,
ptid_t  the_ptid 
)
void find_default_attach ( struct target_ops ,
char *  ,
int   
)

Definition at line 3115 of file target.c.

References find_default_run_target(), and target_ops::to_attach.

Referenced by init_core_ops(), init_dummy_target(), and init_exec_ops().

void find_default_create_inferior ( struct target_ops ,
char *  ,
char *  ,
char **  ,
int   
)
struct target_ops* find_target_beneath ( struct target_ops ) [read]
void free_memory_read_result_vector ( void *  )

Definition at line 2204 of file target.c.

References memory_read_result::data, VEC, VEC_free, VEC_iterate, and xfree().

Referenced by mi_cmd_data_read_memory_bytes().

void get_target_memory ( struct target_ops ops,
CORE_ADDR  addr,
gdb_byte buf,
LONGEST  len 
)
ULONGEST get_target_memory_unsigned ( struct target_ops ops,
CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order 
)
void initialize_targets ( void  )
int memory_insert_breakpoint ( struct gdbarch ,
struct bp_target_info  
)
int memory_remove_breakpoint ( struct gdbarch ,
struct bp_target_info  
)
void noprocess ( void  )
char* normal_pid_to_str ( ptid_t  ptid)
void pop_all_targets ( void  )

Definition at line 1108 of file target.c.

References dummy_stratum, and pop_all_targets_above().

Referenced by quit_force().

void pop_all_targets_above ( enum strata  above_stratum)
void push_target ( struct target_ops )
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 target_attach ( char *  ,
int   
)
void target_call_history ( int  size,
int  flags 
)
void target_call_history_from ( ULONGEST  begin,
int  size,
int  flags 
)
void target_call_history_range ( ULONGEST  begin,
ULONGEST  end,
int  flags 
)
void target_close ( struct target_ops targ)
void target_create_inferior ( char *  exec_file,
char *  args,
char **  env,
int  from_tty 
)
void target_dcache_invalidate ( void  )
void target_delete_record ( void  )

Definition at line 4271 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_delete_record.

Referenced by cmd_record_delete().

void target_detach ( char *  ,
int   
)
void target_disable_btrace ( struct btrace_target_info btinfo)

Definition at line 4162 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_disable_btrace.

Referenced by btrace_disable().

void target_disconnect ( char *  ,
int   
)

Definition at line 4147 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_enable_btrace.

Referenced by btrace_enable().

void target_fetch_registers ( struct regcache regcache,
int  regno 
)
int target_fileio_close ( int  fd,
int target_errno 
)
int target_fileio_open ( const char *  filename,
int  flags,
int  mode,
int target_errno 
)
int target_fileio_pread ( int  fd,
gdb_byte read_buf,
int  len,
ULONGEST  offset,
int target_errno 
)
int target_fileio_pwrite ( int  fd,
const gdb_byte write_buf,
int  len,
ULONGEST  offset,
int target_errno 
)
LONGEST target_fileio_read_alloc ( const char *  filename,
gdb_byte **  buf_p 
)

Definition at line 3557 of file target.c.

References target_fileio_read_alloc_1().

char* target_fileio_read_stralloc ( const char *  filename)
char* target_fileio_readlink ( const char *  filename,
int target_errno 
)
int target_fileio_unlink ( const char *  filename,
int target_errno 
)
void target_find_new_threads ( void  )
void target_flash_done ( void  )
void target_flash_erase ( ULONGEST  address,
LONGEST  length 
)
int target_follow_fork ( int  follow_child,
int  detach_fork 
)
char* target_get_osdata ( const char *  type)
struct target_section_table* target_get_section_table ( struct target_ops target) [read]
void target_goto_record ( ULONGEST  insn)

Definition at line 4336 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_goto_record.

Referenced by cmd_record_goto().

void target_goto_record_begin ( void  )
void target_goto_record_end ( void  )

Definition at line 313 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_has_all_memory.

Definition at line 373 of file target.c.

References inferior_ptid, and target_has_execution_1().

Definition at line 325 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_has_memory.

Definition at line 349 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_has_registers.

int target_has_stack_1 ( void  )

Definition at line 337 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_has_stack.

void target_ignore ( void  )

Definition at line 471 of file target.c.

Referenced by gdb_stop(), init_dummy_target(), and update_current_target().

int target_info_proc ( char *  ,
enum  info_proc_what 
)
void target_info_record ( void  )
int target_insert_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
void target_insn_history ( int  size,
int  flags 
)
void target_insn_history_from ( ULONGEST  from,
int  size,
int  flags 
)
void target_insn_history_range ( ULONGEST  begin,
ULONGEST  end,
int  flags 
)
int target_is_pushed ( struct target_ops t)
void target_kill ( void  )
void target_load ( char *  arg,
int  from_tty 
)

Definition at line 494 of file target.c.

References current_target, target_dcache_invalidate(), and target_ops::to_load.

Referenced by load_command().

void target_mourn_inferior ( void  )
char* target_options_to_string ( int  target_options)

Definition at line 3905 of file target.c.

References DO_TARG_OPTION, str_comma_list_concat_elem(), and TARGET_WNOHANG.

Referenced by linux_nat_wait(), and target_wait().

void target_pass_signals ( int  nsig,
unsigned char *  pass_signals 
)
char* target_pid_to_str ( ptid_t  ptid)

Definition at line 2696 of file target.c.

References target_ops::beneath, current_target, normal_pid_to_str(), and target_ops::to_pid_to_str.

Referenced by add_thread_with_info(), amd64_linux_enable_btrace(), attach_thread(), btrace_clear(), btrace_disable(), btrace_enable(), btrace_fetch(), btrace_teardown(), cancel_breakpoint(), clear_proceed_status_thread(), context_switch(), darwin_attach(), darwin_detach(), dcache_info(), debug_to_stop(), debug_to_thread_architecture(), delete_checkpoint_command(), detach_callback(), detach_checkpoint_command(), displaced_step_fixup(), displaced_step_prepare(), displaced_step_restore(), display_one_tib(), do_captured_thread_select(), exit_lwp(), extended_remote_attach_1(), follow_exec(), get_pending_status(), gnu_fetch_registers(), gnu_resume(), gnu_store_registers(), gnu_wait(), handle_inferior_event(), i386_linux_enable_btrace(), inf_ptrace_attach(), inf_ptrace_detach(), inf_ptrace_files_info(), inferior_command(), inferior_pid_to_str(), info_checkpoints_command(), kill_callback(), kill_wait_callback(), lin_lwp_attach_lwp(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_nat_stop_lwp(), linux_nat_wait(), linux_nat_wait_1(), linux_thread_alive(), maybe_clear_ignore_sigint(), normal_stop(), prepare_to_proceed(), print_exited_reason(), print_inferior_quit_action(), print_program_space(), print_signal_received_reason(), print_target_wait_results(), print_thread_info(), proceed_after_vfork_done(), procfs_attach(), procfs_detach(), procfs_fetch_registers(), procfs_files_info(), procfs_wait(), push_stop_reply(), record_btrace_info(), remote_detach_1(), remote_disable_btrace(), remote_enable_btrace(), remote_notif_remove_queued_reply(), remote_stop_ns(), resume(), resume_lwp(), resume_stopped_resumed_lwps(), select_event_lwp(), stop_callback(), stop_wait_callback(), target_thread_address_space(), target_translate_tls_address(), thread_apply_all_command(), thread_apply_command(), thread_command(), thread_find_command(), tui_make_status_line(), wait_lwp(), windows_attach(), windows_delete_thread(), and windows_files_info().

void target_preopen ( int  )
void target_program_signals ( int  nsig,
unsigned char *  program_signals 
)
LONGEST target_read ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
)
LONGEST target_read_alloc ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte **  buf_p 
)
struct target_desc* target_read_description ( struct target_ops ) [read]

Definition at line 2869 of file target.c.

References target_ops::beneath, and target_ops::to_read_description.

Referenced by target_find_description().

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

Definition at line 1802 of file target.c.

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

Referenced by aarch64_get_longjmp_target(), aarch64_stub_unwind_sniffer(), agent_capability_check(), agent_get_helper_thread_id(), agent_run_command(), alpha_get_longjmp_target(), alpha_read_insn(), alpha_skip_prologue(), alphanbsd_sigtramp_offset(), amd64_analyze_stack_align(), amd64_get_longjmp_target(), amd64_in_function_epilogue_p(), amd64_skip_main_prologue(), amd64_skip_xmm_prologue(), amd64_windows_find_unwind_info(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), amd64_windows_skip_prologue(), amd64_x32_analyze_stack_align(), arm_adjust_breakpoint_address(), arm_breakpoint_from_pc(), arm_get_longjmp_target(), arm_stub_unwind_sniffer(), arm_symbian_skip_trampoline_code(), bp_loc_is_permanent(), bsd_uthread_wait(), call0_analyze_prologue(), call0_ret(), cp_print_value(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr(), default_memory_insert_breakpoint(), dis_asm_read_memory(), displaced_step_prepare(), do_search_struct_field(), dsbt_current_sos(), elf_gnu_ifunc_resolve_by_got(), elf_locate_base(), enable_break2(), execute_code(), extend_buffer_earlier(), extract_arm_insn(), fetch_instruction(), fetch_loadmap(), fetch_mips_16(), find_canonical_descriptor_in_load_object(), find_extant_func_descr(), frv_adjust_breakpoint_address(), frv_analyze_prologue(), frv_current_sos(), frv_linux_pc_in_sigtramp(), frv_linux_sigcontext_reg_addr(), frv_skip_main_prologue(), gcore_copy_callback(), get_signo(), hppa32_hpux_find_global_pointer(), hppa32_hpux_search_dummy_call_sequence(), hppa64_convert_code_addr_to_fptr(), hppa64_hpux_find_global_pointer(), hppa64_hpux_search_dummy_call_sequence(), hppa_in_function_epilogue_p(), hppa_linux_find_global_pointer(), hppa_match_insns(), hppabsd_find_global_pointer(), i386_analyze_frame_setup(), i386_analyze_register_saves(), i386_analyze_stack_align(), i386_analyze_struct_return(), i386_darwin_sstep_at_sigreturn(), i386_follow_jump(), i386_frame_cache_1(), i386_get_longjmp_target(), i386_in_function_epilogue_p(), i386_in_stack_tramp_p(), i386_linux_resume(), i386_match_pattern(), i386_skip_main_prologue(), i386_skip_noop(), i386_skip_probe(), i386_skip_prologue(), ia64_breakpoint_from_pc(), ia64_convert_from_func_ptr_addr(), ia64_find_global_pointer_from_dynamic_section(), ia64_hpux_read_dynamic_info(), ia64_hpux_read_tgt_mem(), 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(), mi_cmd_trace_frame_collected(), microblaze_fetch_instruction(), microblaze_linux_memory_remove_breakpoint(), mips64_linux_get_longjmp_target(), 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(), nios2_get_longjmp_target(), nios2_stub_frame_sniffer(), open_map(), parse_spufs_run(), partial_memory_read(), pascal_object_print_value(), pdc_read_data(), ppc_linux_memory_remove_breakpoint(), ppc_linux_spe_context(), ppu2spu_sniffer(), ps_xfer_memory(), read_clbk(), read_map(), 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(), rx_get_opcode_byte(), s390_in_function_epilogue_p(), s390_readinstruction(), s390_sigtramp_frame_sniffer(), safe_frame_unwind_memory(), scan_dyntag(), score3_adjust_pc_and_fetch_inst(), score7_breakpoint_from_pc(), score7_fetch_inst(), score7_malloc_and_get_memblock(), search_struct_method(), skip_prologue(), skip_prologue_hard_way(), som_solib_create_inferior_hook(), sparc_fetch_instruction(), sparc_supply_rwindow(), spu2ppu_sniffer(), spu_analyze_prologue(), spu_bfd_iovec_pread(), spu_frame_unwind_cache(), spu_get_longjmp_target(), spu_in_function_epilogue_p(), spu_software_single_step(), stap_modify_semaphore(), target_read_memory_bfd(), target_read_string(), target_write_memory_blocks(), thumb2_copy_table_branch(), thumb_in_function_epilogue_p(), tic6x_get_longjmp_target(), tilegx_get_longjmp_target(), val_print_string(), xstormy16_find_jmp_table_entry(), xstormy16_resolve_jmp_table_entry(), and xtensa_scan_prologue().

int target_read_stack ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)
char* target_read_stralloc ( struct target_ops ops,
enum target_object  object,
const char *  annex 
)
int target_read_string ( CORE_ADDR  ,
char **  ,
int  ,
int  
)

Definition at line 4288 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_record_is_replaying.

Referenced by cmd_record_delete().

int target_remove_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
void target_require_runnable ( void  )
void target_resume ( ptid_t  ptid,
int  step,
enum gdb_signal  signal 
)
void target_save_record ( const char *  filename)

Definition at line 4240 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_save_record.

Referenced by cmd_record_save().

int target_search_memory ( CORE_ADDR  start_addr,
ULONGEST  search_space_len,
const gdb_byte pattern,
ULONGEST  pattern_len,
CORE_ADDR found_addrp 
)
struct target_section* target_section_by_addr ( struct target_ops target,
CORE_ADDR  addr 
) [read]
void target_stop ( ptid_t  ptid)

Definition at line 4206 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_stop_recording.

void target_store_registers ( struct regcache regcache,
int  regs 
)

Definition at line 4133 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_supports_btrace.

Referenced by btrace_enable(), and record_btrace_open().

Definition at line 4257 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_delete_record.

Referenced by cmd_record_delete().

Definition at line 3178 of file target.c.

References target_ops::beneath, current_target, and target_ops::to_supports_non_stop.

Referenced by attach_command(), and run_command_1().

void target_teardown_btrace ( struct btrace_target_info btinfo)

Definition at line 4176 of file target.c.

References target_ops::beneath, current_target, tcomplain(), and target_ops::to_teardown_btrace.

Referenced by btrace_teardown().

void target_terminal_inferior ( void  )
char* target_thread_name ( struct thread_info )
CORE_ADDR target_translate_tls_address ( struct objfile objfile,
CORE_ADDR  offset 
)
int target_verify_memory ( const gdb_byte data,
CORE_ADDR  memaddr,
ULONGEST  size 
)
ptid_t target_wait ( ptid_t  ptid,
struct target_waitstatus status,
int  options 
)
LONGEST target_write ( struct target_ops ops,
enum target_object  object,
const char *  annex,
const gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
)
int target_write_memory ( CORE_ADDR  memaddr,
const gdb_byte myaddr,
ssize_t  len 
)
int target_write_memory_blocks ( VEC(memory_write_request_s)*  requests,
enum flash_preserve_mode  preserve_flash_p,
void(*)(ULONGEST, void *)  progress_cb 
)
int target_write_raw_memory ( CORE_ADDR  memaddr,
const gdb_byte myaddr,
ssize_t  len 
)
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(*)(ULONGEST, void *)  progress,
void *  baton 
)

Definition at line 2280 of file target.c.

References len, LONGEST, QUIT, and target_write_partial().

Referenced by target_write(), and target_write_memory_blocks().

Definition at line 1236 of file target.c.

References CASE, TARGET_XFER_E_IO, and TARGET_XFER_E_UNAVAILABLE.

Referenced by memory_error_message().

LONGEST target_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
void *  readbuf,
const void *  writebuf,
ULONGEST  offset,
LONGEST  len 
)
int unpush_target ( struct target_ops )
void update_target_permissions ( void  )

Definition at line 5028 of file target.c.

Referenced by set_observer_mode(), and set_target_permissions().


Variable Documentation

Definition at line 629 of file serial.c.

Referenced by captured_main(), monitor_files_info(), monitor_open(), and remote_open_1().

Referenced by aarch64_linux_stopped_by_watchpoint(), add_minsym(), arm_linux_stopped_by_watchpoint(), attach_command_post_wait(), avr_io_reg_read_command(), create_exception_master_breakpoint(), darwin_solib_read_all_image_info_addr(), dcache_read_line(), default_fileio_target(), display_one_tib(), do_monitor_command(), dsbt_get_initial_loadmaps(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolve_by_got(), elf_gnu_ifunc_resolver_return_stop(), enable_break(), enable_thread_event(), evaluate_subexp_standard(), find_function_addr(), find_record_target(), find_solib_trampoline_target(), gdb_entry_point(), gdb_stop(), gdb_update_mem(), gdbtk_start_timer(), gnuv3_skip_trampoline(), handle_inferior_event(), handle_solib_event(), i386_stopped_by_watchpoint(), ia64_hpux_find_global_pointer_from_solib(), ia64_hpux_handle_dld_breakpoint_1(), ia64_hpux_solib_add_after_attach(), ia64_hpux_stopped_in_syscall(), ia64_linux_stopped_by_watchpoint(), info_auxv_command(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_command(), info_spu_proxydma_command(), info_spu_signal_command(), init_entry_point_info(), inside_main_func(), irix_solib_create_inferior_hook(), linux_get_siginfo_data(), linux_is_uclinux(), linux_make_corefile_notes(), linux_spu_make_corefile_notes(), m32r_stopped_by_watchpoint(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), minsym_found(), osf_solib_create_inferior_hook(), pop_all_targets_above(), ppc_linux_displaced_step_location(), ppc_linux_get_hwcap(), ppc_linux_spe_context(), ppc_linux_stopped_by_watchpoint(), ppu2spu_sniffer(), print_function_pointer_address(), procfs_inferior_created(), quit(), read_memory(), read_program_header(), record_full_open(), remote_check_symbols(), remote_threads_info(), remote_traceframe_info(), restore_infcall_suspend_state(), run_command_1(), s390_load(), save_infcall_suspend_state(), save_sigtrap(), sdata_make_value(), setup_target_debug(), siginfo_value_read(), siginfo_value_write(), sol_get_ada_task_ptid(), solib_target_current_sos(), sparc_fetch_wcookie(), spu_current_sos(), spu_enable_break(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), spu_pseudo_register_write(), spu_pseudo_register_write_spu(), start_remote(), svr4_exec_displacement(), svr4_fetch_objfile_link_map(), target_attach(), target_call_history(), target_call_history_from(), target_call_history_range(), target_core_of_thread(), target_create_inferior(), target_delete_record(), target_detach(), target_disable_btrace(), target_disconnect(), target_enable_btrace(), target_fetch_registers(), target_find_description(), target_find_new_threads(), target_flash_done(), target_flash_erase(), target_follow_fork(), target_get_osdata(), target_goto_record(), target_goto_record_begin(), target_goto_record_end(), target_has_all_memory_1(), target_has_execution_1(), target_has_memory_1(), target_has_registers_1(), target_has_stack_1(), target_info_proc(), target_info_record(), target_insert_breakpoint(), target_insert_mask_watchpoint(), target_insn_history(), target_insn_history_from(), target_insn_history_range(), target_kill(), target_load(), target_masked_watch_num_registers(), target_mourn_inferior(), target_pass_signals(), target_pid_to_str(), target_program_signals(), target_ranged_break_num_registers(), target_read_live_memory(), target_read_memory(), target_read_stack(), target_record_is_replaying(), target_remove_breakpoint(), target_remove_mask_watchpoint(), target_resume(), target_save_record(), target_search_memory(), target_stop(), target_stop_recording(), target_store_registers(), target_supports_btrace(), target_supports_delete_record(), target_supports_disable_randomization(), target_supports_non_stop(), target_teardown_btrace(), target_terminal_inferior(), target_thread_address_space(), target_thread_alive(), target_thread_name(), target_translate_tls_address(), target_verify_memory(), target_wait(), target_write_memory(), target_write_memory_blocks(), target_write_raw_memory(), tcomplain(), thread_db_load(), update_current_target(), value_assign(), value_fn_field(), VEC(), watchpoints_triggered(), and write_exp_msymbol().

Definition at line 269 of file target.h.

Definition at line 269 of file target.h.

Definition at line 171 of file top.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines