GDB (API)
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_space * target_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_desc * target_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 cleanup * make_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

Definition at line 899 of file target.h.

#define target_async (   CALLBACK,
  CONTEXT 
)    (current_target.to_async ((CALLBACK), (CONTEXT)))

Definition at line 1416 of file target.h.

#define target_attach_no_wait   (current_target.to_attach_no_wait)

Definition at line 934 of file target.h.

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

Definition at line 1758 of file target.h.

#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.

#define target_can_async_p ( )    (current_target.to_can_async_p ())

Definition at line 1408 of file target.h.

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

Definition at line 1677 of file target.h.

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

Definition at line 1592 of file target.h.

#define target_can_lock_scheduler   (current_target.to_has_thread_control & tc_schedlock)

Definition at line 1400 of file target.h.

#define target_can_run (   t)    ((t)->to_can_run) ()

Definition at line 1293 of file target.h.

#define target_can_run_breakpoint_commands ( )    (*current_target.to_can_run_breakpoint_commands) ()

Definition at line 1042 of file target.h.

#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);

Definition at line 1514 of file target.h.

#define target_disable_tracepoint (   loc)    (*current_target.to_disable_tracepoint) (loc)

Definition at line 1686 of file target.h.

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

Definition at line 1680 of file target.h.

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

Definition at line 1674 of file target.h.

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

Definition at line 1683 of file target.h.

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

Definition at line 1419 of file target.h.

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

Definition at line 1434 of file target.h.

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

Definition at line 1117 of file target.h.

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

Definition at line 1469 of file target.h.

#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.

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

Definition at line 1480 of file target.h.

#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.

#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.

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

Definition at line 1737 of file target.h.

#define target_get_trace_state_variable_value (   tsv,
  val 
)    (*current_target.to_get_trace_state_variable_value) ((tsv), (val))

Definition at line 1707 of file target.h.

#define target_get_trace_status (   ts)    (*current_target.to_get_trace_status) (ts)

Definition at line 1695 of file target.h.

#define target_get_tracepoint_status (   tp,
  utp 
)    (*current_target.to_get_tracepoint_status) (tp, utp)

Definition at line 1698 of file target.h.

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

Definition at line 1483 of file target.h.

Definition at line 1353 of file target.h.

Definition at line 1385 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.

Definition at line 1358 of file target.h.

Definition at line 1369 of file target.h.

Definition at line 1364 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.

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

Definition at line 1246 of file target.h.

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

Definition at line 1219 of file target.h.

#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.

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

Definition at line 1225 of file target.h.

#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.

#define target_is_async_p ( )    (current_target.to_is_async_p ())

Definition at line 1411 of file target.h.

#define target_log_command (   p)
Value:

Definition at line 1763 of file target.h.

#define target_longname   (current_target.to_longname)

Definition at line 909 of file target.h.

#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.

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

Definition at line 1454 of file target.h.

#define target_post_attach (   pid)    (*current_target.to_post_attach) (pid)

Definition at line 942 of file target.h.

#define target_post_startup_inferior (   ptid)    (*current_target.to_post_startup_inferior) (ptid)

Definition at line 1211 of file target.h.

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

Definition at line 1000 of file target.h.

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

Definition at line 1344 of file target.h.

#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.

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

Definition at line 1249 of file target.h.

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

Definition at line 1222 of file target.h.

#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.

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

Definition at line 1228 of file target.h.

#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.

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

Definition at line 1710 of file target.h.

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

Definition at line 1728 of file target.h.

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

Definition at line 1725 of file target.h.

#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.

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

Definition at line 1731 of file target.h.

#define target_set_trace_notes (   user,
  notes,
  stopnotes 
)    (*current_target.to_set_trace_notes) ((user), (notes), (stopnotes))

Definition at line 1734 of file target.h.

#define target_shortname   (current_target.to_shortname)

Definition at line 908 of file target.h.

#define target_static_tracepoint_marker_at (   addr,
  marker 
)    (*current_target.to_static_tracepoint_marker_at) (addr, marker)

Definition at line 1743 of file target.h.

#define target_static_tracepoint_markers_by_strid (   marker_id)    (*current_target.to_static_tracepoint_markers_by_strid) (marker_id)

Definition at line 1746 of file target.h.

#define target_stopped_by_watchpoint   (*current_target.to_stopped_by_watchpoint)

Definition at line 1491 of file target.h.

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

Definition at line 1564 of file target.h.

#define target_supports_enable_disable_tracepoint ( )    (*current_target.to_supports_enable_disable_tracepoint) ()

Definition at line 1027 of file target.h.

#define target_supports_evaluation_of_breakpoint_conditions ( )    (*current_target.to_supports_evaluation_of_breakpoint_conditions) ()

Definition at line 1036 of file target.h.

#define target_supports_multi_process ( )    (*current_target.to_supports_multi_process) ()

Definition at line 1017 of file target.h.

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

Definition at line 1030 of file target.h.

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

Definition at line 1172 of file target.h.

#define target_terminal_init ( )    (*current_target.to_terminal_init) ()

Definition at line 1135 of file target.h.

#define target_terminal_ours ( )    (*current_target.to_terminal_ours) ()

Definition at line 1158 of file target.h.

#define target_terminal_ours_for_output ( )    (*current_target.to_terminal_ours_for_output) ()

Definition at line 1151 of file target.h.

#define target_terminal_save_ours ( )    (*current_target.to_terminal_save_ours) ()

Definition at line 1166 of file target.h.

#define target_thread_architecture (   ptid)    (current_target.to_thread_architecture (&current_target, ptid))

Definition at line 1459 of file target.h.

#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.

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

Definition at line 1671 of file target.h.

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

Definition at line 1692 of file target.h.

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

Definition at line 1689 of file target.h.

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

Definition at line 1701 of file target.h.

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

Definition at line 1749 of file target.h.

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

Definition at line 1716 of file target.h.

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

Definition at line 1713 of file target.h.

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

Definition at line 1752 of file target.h.

#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.


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 
)

Definition at line 456 of file target.c.

void add_target ( struct target_ops )

Definition at line 448 of file target.c.

void add_target_with_completer ( struct target_ops t,
completer_ftype *  completer 
)

Definition at line 409 of file target.c.

Definition at line 382 of file target.c.

Definition at line 261 of file target.c.

int default_child_has_execution ( struct target_ops ops,
ptid_t  the_ptid 
)

Definition at line 301 of file target.c.

Definition at line 271 of file target.c.

Definition at line 291 of file target.c.

Definition at line 281 of file target.c.

int default_memory_insert_breakpoint ( struct gdbarch *  ,
struct bp_target_info  
)

Definition at line 40 of file mem-break.c.

int default_memory_remove_breakpoint ( struct gdbarch *  ,
struct bp_target_info  
)

Definition at line 71 of file mem-break.c.

void find_default_attach ( struct target_ops ,
char *  ,
int   
)

Definition at line 3115 of file target.c.

void find_default_create_inferior ( struct target_ops ,
char *  ,
char *  ,
char **  ,
int   
)

Definition at line 3125 of file target.c.

struct target_ops* find_target_beneath ( struct target_ops ) [read]

Definition at line 3643 of file target.c.

void free_memory_read_result_vector ( void *  )

Definition at line 2204 of file target.c.

void get_target_memory ( struct target_ops ops,
CORE_ADDR  addr,
gdb_byte buf,
LONGEST  len 
)

Definition at line 2435 of file target.c.

ULONGEST get_target_memory_unsigned ( struct target_ops ops,
CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 2448 of file target.c.

void initialize_targets ( void  )

Definition at line 5073 of file target.c.

struct cleanup* make_show_memory_breakpoints_cleanup ( int  show) [read]

Definition at line 1701 of file target.c.

int memory_insert_breakpoint ( struct gdbarch *  ,
struct bp_target_info  
)

Definition at line 80 of file mem-break.c.

int memory_remove_breakpoint ( struct gdbarch *  ,
struct bp_target_info  
)

Definition at line 87 of file mem-break.c.

void noprocess ( void  )

Definition at line 554 of file target.c.

char* normal_pid_to_str ( ptid_t  ptid)

Definition at line 3688 of file target.c.

void pop_all_targets ( void  )

Definition at line 1108 of file target.c.

void pop_all_targets_above ( enum strata  above_stratum)

Definition at line 1091 of file target.c.

void push_target ( struct target_ops )

Definition at line 1005 of file target.c.

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 
)

Definition at line 2892 of file target.c.

void target_attach ( char *  ,
int   
)

Definition at line 3793 of file target.c.

void target_call_history ( int  size,
int  flags 
)

Definition at line 4404 of file target.c.

void target_call_history_from ( ULONGEST  begin,
int  size,
int  flags 
)

Definition at line 4421 of file target.c.

void target_call_history_range ( ULONGEST  begin,
ULONGEST  end,
int  flags 
)

Definition at line 4438 of file target.c.

void target_close ( struct target_ops targ)

Definition at line 3779 of file target.c.

Definition at line 4001 of file target.c.

void target_create_inferior ( char *  exec_file,
char *  args,
char **  env,
int  from_tty 
)

Definition at line 501 of file target.c.

void target_dcache_invalidate ( void  )

Definition at line 244 of file target.c.

void target_delete_record ( void  )

Definition at line 4271 of file target.c.

void target_detach ( char *  ,
int   
)

Definition at line 2608 of file target.c.

void target_disable_btrace ( struct btrace_target_info btinfo)

Definition at line 4162 of file target.c.

void target_disconnect ( char *  ,
int   
)

Definition at line 2639 of file target.c.

Definition at line 4147 of file target.c.

void target_fetch_registers ( struct regcache *  regcache,
int  regno 
)

Definition at line 3960 of file target.c.

int target_fileio_close ( int  fd,
int target_errno 
)

Definition at line 3405 of file target.c.

int target_fileio_open ( const char *  filename,
int  flags,
int  mode,
int target_errno 
)

Definition at line 3318 of file target.c.

int target_fileio_pread ( int  fd,
gdb_byte read_buf,
int  len,
ULONGEST  offset,
int target_errno 
)

Definition at line 3376 of file target.c.

int target_fileio_pwrite ( int  fd,
const gdb_byte write_buf,
int  len,
ULONGEST  offset,
int target_errno 
)

Definition at line 3346 of file target.c.

LONGEST target_fileio_read_alloc ( const char *  filename,
gdb_byte **  buf_p 
)

Definition at line 3557 of file target.c.

char* target_fileio_read_stralloc ( const char *  filename)

Definition at line 3569 of file target.c.

char* target_fileio_readlink ( const char *  filename,
int target_errno 
)

Definition at line 3456 of file target.c.

int target_fileio_unlink ( const char *  filename,
int target_errno 
)

Definition at line 3430 of file target.c.

void target_find_new_threads ( void  )

Definition at line 3837 of file target.c.

void target_flash_done ( void  )

Definition at line 1936 of file target.c.

void target_flash_erase ( ULONGEST  address,
LONGEST  length 
)

Definition at line 1918 of file target.c.

int target_follow_fork ( int  follow_child,
int  detach_fork 
)

Definition at line 2816 of file target.c.

char* target_get_osdata ( const char *  type)

Definition at line 3245 of file target.c.

struct target_section_table* target_get_section_table ( struct target_ops target) [read]

Definition at line 1327 of file target.c.

void target_goto_record ( ULONGEST  insn)

Definition at line 4336 of file target.c.

void target_goto_record_begin ( void  )

Definition at line 4302 of file target.c.

void target_goto_record_end ( void  )

Definition at line 4319 of file target.c.

Definition at line 313 of file target.c.

Definition at line 361 of file target.c.

Definition at line 373 of file target.c.

Definition at line 325 of file target.c.

Definition at line 349 of file target.c.

int target_has_stack_1 ( void  )

Definition at line 337 of file target.c.

void target_ignore ( void  )

Definition at line 471 of file target.c.

int target_info_proc ( char *  ,
enum  info_proc_what 
)

Definition at line 3192 of file target.c.

void target_info_record ( void  )

Definition at line 4223 of file target.c.

int target_insert_breakpoint ( struct gdbarch *  gdbarch,
struct bp_target_info bp_tgt 
)

Definition at line 2459 of file target.c.

Definition at line 4050 of file target.c.

void target_insn_history ( int  size,
int  flags 
)

Definition at line 4353 of file target.c.

void target_insn_history_from ( ULONGEST  from,
int  size,
int  flags 
)

Definition at line 4370 of file target.c.

void target_insn_history_range ( ULONGEST  begin,
ULONGEST  end,
int  flags 
)

Definition at line 4387 of file target.c.

int target_is_pushed ( struct target_ops t)

Definition at line 1116 of file target.c.

void target_kill ( void  )

Definition at line 476 of file target.c.

void target_load ( char *  arg,
int  from_tty 
)

Definition at line 494 of file target.c.

Definition at line 4104 of file target.c.

void target_mourn_inferior ( void  )

Definition at line 2840 of file target.c.

char* target_options_to_string ( int  target_options)

Definition at line 3905 of file target.c.

void target_pass_signals ( int  nsig,
unsigned char *  pass_signals 
)

Definition at line 2753 of file target.c.

char* target_pid_to_str ( ptid_t  ptid)

Definition at line 2696 of file target.c.

Definition at line 2521 of file target.c.

void target_preopen ( int  )

Definition at line 2582 of file target.c.

void target_program_signals ( int  nsig,
unsigned char *  program_signals 
)

Definition at line 2783 of file target.c.

Definition at line 4119 of file target.c.

LONGEST target_read ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
)

Definition at line 2046 of file target.c.

LONGEST target_read_alloc ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte **  buf_p 
)

Definition at line 2388 of file target.c.

struct target_desc* target_read_description ( struct target_ops ) [read]

Definition at line 2869 of file target.c.

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

Definition at line 1802 of file target.c.

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

Definition at line 1818 of file target.c.

char* target_read_stralloc ( struct target_ops ops,
enum target_object  object,
const char *  annex 
)

Definition at line 2401 of file target.c.

int target_read_string ( CORE_ADDR  ,
char **  ,
int  ,
int  
)

Definition at line 1260 of file target.c.

Definition at line 4288 of file target.c.

int target_remove_breakpoint ( struct gdbarch *  gdbarch,
struct bp_target_info bp_tgt 
)

Definition at line 2472 of file target.c.

Definition at line 4077 of file target.c.

void target_require_runnable ( void  )

Definition at line 3046 of file target.c.

void target_resume ( ptid_t  ptid,
int  step,
enum gdb_signal  signal 
)

Definition at line 2724 of file target.c.

void target_save_record ( const char *  filename)

Definition at line 4240 of file target.c.

int target_search_memory ( CORE_ADDR  start_addr,
ULONGEST  search_space_len,
const gdb_byte pattern,
ULONGEST  pattern_len,
CORE_ADDR found_addrp 
)

Definition at line 3002 of file target.c.

struct target_section* target_section_by_addr ( struct target_ops target,
CORE_ADDR  addr 
) [read]

Definition at line 1344 of file target.c.

void target_stop ( ptid_t  ptid)

Definition at line 3855 of file target.c.

Definition at line 4206 of file target.c.

void target_store_registers ( struct regcache *  regcache,
int  regs 
)

Definition at line 3977 of file target.c.

Definition at line 4133 of file target.c.

Definition at line 4257 of file target.c.

Definition at line 3233 of file target.c.

Definition at line 3178 of file target.c.

void target_teardown_btrace ( struct btrace_target_info btinfo)

Definition at line 4176 of file target.c.

void target_terminal_inferior ( void  )

Definition at line 524 of file target.c.

struct address_space* target_thread_address_space ( ptid_t  ) [read]

Definition at line 3266 of file target.c.

Definition at line 3814 of file target.c.

char* target_thread_name ( struct thread_info )

Definition at line 2710 of file target.c.

CORE_ADDR target_translate_tls_address ( struct objfile objfile,
CORE_ADDR  offset 
)

Definition at line 1141 of file target.c.

int target_verify_memory ( const gdb_byte data,
CORE_ADDR  memaddr,
ULONGEST  size 
)

Definition at line 4023 of file target.c.

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

Definition at line 2662 of file target.c.

Definition at line 32 of file waitstatus.c.

LONGEST target_write ( struct target_ops ops,
enum target_object  object,
const char *  annex,
const gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
)

Definition at line 2315 of file target.c.

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

Definition at line 1838 of file target.c.

int target_write_memory_blocks ( VEC(memory_write_request_s)*  requests,
enum flash_preserve_mode  preserve_flash_p,
void(*)(ULONGEST, void *)  progress_cb 
)

Definition at line 311 of file target-memory.c.

int target_write_raw_memory ( CORE_ADDR  memaddr,
const gdb_byte myaddr,
ssize_t  len 
)

Definition at line 1857 of file target.c.

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.

Definition at line 1236 of file target.c.

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

Definition at line 1713 of file target.c.

int unpush_target ( struct target_ops )

Definition at line 1052 of file target.c.

void update_target_permissions ( void  )

Definition at line 5028 of file target.c.

Definition at line 53 of file memattr.c.


Variable Documentation

Definition at line 629 of file serial.c.

Definition at line 269 of file target.h.

Definition at line 269 of file target.h.

Definition at line 171 of file top.c.

Definition at line 167 of file top.c.

Definition at line 4987 of file target.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines