GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/target.c File Reference
#include "defs.h"
#include <errno.h>
#include "gdb_string.h"
#include "target.h"
#include "gdbcmd.h"
#include "symtab.h"
#include "inferior.h"
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "dcache.h"
#include <signal.h>
#include "regcache.h"
#include "gdb_assert.h"
#include "gdbcore.h"
#include "exceptions.h"
#include "target-descriptions.h"
#include "gdbthread.h"
#include "solib.h"
#include "exec.h"
#include "inline-frame.h"
#include "tracepoint.h"
#include "gdb/fileio.h"
#include "agent.h"

Go to the source code of this file.

Defines

#define DEFAULT_ALLOCSIZE   10
#define INHERIT(FIELD, TARGET)
#define de_fault(field, value)
#define CASE(X)   case X: return #X
#define MIN(A, B)   (((A) <= (B)) ? (A) : (B))
#define SEARCH_CHUNK_SIZE   16000
#define DO_TARG_OPTION(OPT)   ret = do_option (&target_options, ret, OPT, #OPT)

Functions

static void target_info (char *, int)
static void default_terminal_info (const char *, int)
static int default_watchpoint_addr_within_range (struct target_ops *, CORE_ADDR, CORE_ADDR, int)
static int default_region_ok_for_hw_watchpoint (CORE_ADDR, int)
static void tcomplain (void)
static void setup_target_debug (void)
static void set_stack_cache_enabled_p (char *args, int from_tty, struct cmd_list_element *c)
static void show_stack_cache_enabled_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void target_dcache_invalidate (void)
static void target_command (char *arg, int from_tty)
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_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 the_ptid)
int target_has_execution_current (void)
void complete_target_initialization (struct target_ops *t)
void add_target_with_completer (struct target_ops *t, completer_ftype *completer)
void add_target (struct target_ops *t)
void add_deprecated_target_alias (struct target_ops *t, char *alias)
void target_ignore (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)
void target_terminal_inferior (void)
static int nomemory (CORE_ADDR memaddr, char *myaddr, int len, int write, struct target_ops *t)
void noprocess (void)
static ptid_t default_get_ada_task_ptid (long lwp, long tid)
static enum exec_direction_kind default_execution_direction (void)
static void update_current_target (void)
void push_target (struct target_ops *t)
int unpush_target (struct target_ops *t)
void pop_all_targets_above (enum strata above_stratum)
void pop_all_targets (void)
int target_is_pushed (struct target_ops *t)
CORE_ADDR target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset)
const char * target_xfer_error_to_string (enum target_xfer_error err)
int target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop)
struct target_section_tabletarget_get_section_table (struct target_ops *target)
struct target_sectiontarget_section_by_addr (struct target_ops *target, CORE_ADDR addr)
static LONGEST target_read_live_memory (enum target_object object, ULONGEST memaddr, gdb_byte *myaddr, LONGEST len)
static LONGEST memory_xfer_live_readonly_partial (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, ULONGEST memaddr, LONGEST len)
static LONGEST memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, void *readbuf, const void *writebuf, ULONGEST memaddr, LONGEST len)
static LONGEST memory_xfer_partial (struct target_ops *ops, enum target_object object, void *readbuf, const void *writebuf, ULONGEST memaddr, LONGEST len)
static void restore_show_memory_breakpoints (void *arg)
struct cleanupmake_show_memory_breakpoints_cleanup (int show)
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 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)
void target_flash_erase (ULONGEST address, LONGEST length)
void target_flash_done (void)
static void show_trust_readonly (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static LONGEST default_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
static LONGEST current_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
static LONGEST target_read_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len)
static LONGEST target_write_partial (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len)
LONGEST target_read (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len)
static void read_whatever_is_readable (struct target_ops *ops, ULONGEST begin, ULONGEST end, VEC(memory_read_result_s)**result)
void free_memory_read_result_vector (void *x)
 VEC (memory_read_result_s)
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_write (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len)
static LONGEST target_read_alloc_1 (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte **buf_p, int padding)
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)
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)
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_pre_inferior (int from_tty)
static int dispose_inferior (struct inferior *inf, void *args)
void target_preopen (int from_tty)
void target_detach (char *args, int from_tty)
void target_disconnect (char *args, int from_tty)
ptid_t target_wait (ptid_t ptid, struct target_waitstatus *status, int options)
char * target_pid_to_str (ptid_t ptid)
char * target_thread_name (struct thread_info *info)
void target_resume (ptid_t ptid, int step, enum gdb_signal signal)
void target_pass_signals (int numsigs, unsigned char *pass_signals)
void target_program_signals (int numsigs, unsigned char *program_signals)
int target_follow_fork (int follow_child, int detach_fork)
void target_mourn_inferior (void)
struct target_desctarget_read_description (struct target_ops *target)
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)
void target_require_runnable (void)
static struct target_opsfind_default_run_target (char *do_mesg)
void find_default_attach (struct target_ops *ops, char *args, int from_tty)
void find_default_create_inferior (struct target_ops *ops, char *exec_file, char *allargs, char **env, int from_tty)
static int find_default_can_async_p (void)
static int find_default_is_async_p (void)
static int find_default_supports_non_stop (void)
int target_supports_non_stop (void)
int target_info_proc (char *args, enum info_proc_what what)
static int find_default_supports_disable_randomization (void)
int target_supports_disable_randomization (void)
char * target_get_osdata (const char *type)
struct address_spacetarget_thread_address_space (ptid_t ptid)
static struct target_opsdefault_fileio_target (void)
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)
static void target_fileio_close_cleanup (void *opaque)
static LONGEST target_fileio_read_alloc_1 (const char *filename, gdb_byte **buf_p, int padding)
LONGEST target_fileio_read_alloc (const char *filename, gdb_byte **buf_p)
char * target_fileio_read_stralloc (const char *filename)
static struct gdbarchdefault_thread_architecture (struct target_ops *ops, ptid_t ptid)
static int return_zero (void)
static int return_one (void)
static int return_minus_one (void)
struct target_opsfind_target_beneath (struct target_ops *t)
void generic_mourn_inferior (void)
char * normal_pid_to_str (ptid_t ptid)
static char * dummy_pid_to_str (struct target_ops *ops, ptid_t ptid)
static int dummy_find_memory_regions (find_memory_region_ftype ignore1, void *ignore2)
static char * dummy_make_corefile_notes (bfd *ignore1, int *ignore2)
static gdb_bytedummy_get_bookmark (char *ignore1, int ignore2)
static void dummy_goto_bookmark (gdb_byte *ignore, int from_tty)
static void init_dummy_target (void)
static void debug_to_open (char *args, int from_tty)
void target_close (struct target_ops *targ)
void target_attach (char *args, int from_tty)
int target_thread_alive (ptid_t ptid)
void target_find_new_threads (void)
void target_stop (ptid_t ptid)
static void debug_to_post_attach (int pid)
static char * str_comma_list_concat_elem (char *list, const char *elem)
static char * do_option (int *target_options, char *ret, int opt, char *opt_str)
char * target_options_to_string (int target_options)
static void debug_print_register (const char *func, struct regcache *regcache, int regno)
void target_fetch_registers (struct regcache *regcache, int regno)
void target_store_registers (struct regcache *regcache, int regno)
int target_core_of_thread (ptid_t ptid)
int target_verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
int target_insert_mask_watchpoint (CORE_ADDR addr, CORE_ADDR mask, int rw)
int target_remove_mask_watchpoint (CORE_ADDR addr, CORE_ADDR mask, int rw)
int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask)
int target_ranged_break_num_registers (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)
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)
static void debug_to_prepare_to_store (struct regcache *regcache)
static int deprecated_debug_xfer_memory (CORE_ADDR memaddr, bfd_byte *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target)
static void debug_to_files_info (struct target_ops *target)
static int debug_to_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int debug_to_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int debug_to_can_use_hw_breakpoint (int type, int cnt, int from_tty)
static int debug_to_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
static int debug_to_can_accel_watchpoint_condition (CORE_ADDR addr, int len, int rw, struct expression *cond)
static int debug_to_stopped_by_watchpoint (void)
static int debug_to_stopped_data_address (struct target_ops *target, CORE_ADDR *addr)
static int debug_to_watchpoint_addr_within_range (struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length)
static int debug_to_insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int debug_to_remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int debug_to_insert_watchpoint (CORE_ADDR addr, int len, int type, struct expression *cond)
static int debug_to_remove_watchpoint (CORE_ADDR addr, int len, int type, struct expression *cond)
static void debug_to_terminal_init (void)
static void debug_to_terminal_inferior (void)
static void debug_to_terminal_ours_for_output (void)
static void debug_to_terminal_ours (void)
static void debug_to_terminal_save_ours (void)
static void debug_to_terminal_info (const char *arg, int from_tty)
static void debug_to_load (char *args, int from_tty)
static void debug_to_post_startup_inferior (ptid_t ptid)
static int debug_to_insert_fork_catchpoint (int pid)
static int debug_to_remove_fork_catchpoint (int pid)
static int debug_to_insert_vfork_catchpoint (int pid)
static int debug_to_remove_vfork_catchpoint (int pid)
static int debug_to_insert_exec_catchpoint (int pid)
static int debug_to_remove_exec_catchpoint (int pid)
static int debug_to_has_exited (int pid, int wait_status, int *exit_status)
static int debug_to_can_run (void)
static struct gdbarchdebug_to_thread_architecture (struct target_ops *ops, ptid_t ptid)
static void debug_to_stop (ptid_t ptid)
static void debug_to_rcmd (char *command, struct ui_file *outbuf)
static char * debug_to_pid_to_exec_file (int pid)
static void do_monitor_command (char *cmd, int from_tty)
static void maintenance_print_target_stack (char *cmd, int from_tty)
static void set_target_async_command (char *args, int from_tty, struct cmd_list_element *c)
static void show_target_async_command (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void update_target_permissions (void)
static void set_target_permissions (char *args, int from_tty, struct cmd_list_element *c)
static void set_write_memory_permission (char *args, int from_tty, struct cmd_list_element *c)
void initialize_targets (void)

Variables

static int stack_cache_enabled_p_1 = 1
static int stack_cache_enabled_p = 1
static DCACHEtarget_dcache
static char targ_desc []
int target_async_permitted = 0
static int target_async_permitted_1 = 0
static int may_write_registers_1 = 1
static int may_write_memory_1 = 1
static int may_insert_breakpoints_1 = 1
static int may_insert_tracepoints_1 = 1
static int may_insert_fast_tracepoints_1 = 1
static int may_stop_1 = 1

Define Documentation

#define CASE (   X)    case X: return #X
#define de_fault (   field,
  value 
)
Value:
if (!current_target.field)               \
    current_target.field = value

Referenced by update_current_target().

#define DEFAULT_ALLOCSIZE   10
#define DO_TARG_OPTION (   OPT)    ret = do_option (&target_options, ret, OPT, #OPT)
#define INHERIT (   FIELD,
  TARGET 
)
Value:
if (!current_target.FIELD) \
        current_target.FIELD = (TARGET)->FIELD

Referenced by update_current_target().

#define MIN (   A,
  B 
)    (((A) <= (B)) ? (A) : (B))

Definition at line 1251 of file target.c.

Referenced by target_read_string().

#define SEARCH_CHUNK_SIZE   16000

Referenced by simple_search_memory().


Function Documentation

void add_deprecated_target_alias ( struct target_ops t,
char *  alias 
)
void add_target ( struct target_ops t)
void add_target_with_completer ( struct target_ops t,
completer_ftype *  completer 
)
static LONGEST current_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len 
) [static]

Definition at line 2010 of file target.c.

References target_ops::beneath, and target_ops::to_xfer_partial.

Referenced by update_current_target().

static void debug_print_register ( const char *  func,
struct regcache regcache,
int  regno 
) [static]
static int debug_to_can_accel_watchpoint_condition ( CORE_ADDR  addr,
int  len,
int  rw,
struct expression cond 
) [static]
static int debug_to_can_run ( void  ) [static]

Definition at line 4848 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_can_use_hw_breakpoint ( int  type,
int  cnt,
int  from_tty 
) [static]

Definition at line 4540 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_files_info ( struct target_ops target) [static]

Definition at line 4502 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_has_exited ( int  pid,
int  wait_status,
int exit_status 
) [static]

Definition at line 4835 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_insert_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
) [static]
static int debug_to_insert_exec_catchpoint ( int  pid) [static]

Definition at line 4809 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_insert_fork_catchpoint ( int  pid) [static]

Definition at line 4757 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_insert_hw_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
) [static]
static int debug_to_insert_vfork_catchpoint ( int  pid) [static]

Definition at line 4783 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_insert_watchpoint ( CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
) [static]
static void debug_to_load ( char *  args,
int  from_tty 
) [static]

Definition at line 4740 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_open ( char *  args,
int  from_tty 
) [static]

Definition at line 3771 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static char* debug_to_pid_to_exec_file ( int  pid) [static]

Definition at line 4892 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_post_attach ( int  pid) [static]

Definition at line 3867 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_post_startup_inferior ( ptid_t  ptid) [static]

Definition at line 4748 of file target.c.

References fprintf_unfiltered(), gdb_stdlog, and ptid_get_pid().

Referenced by setup_target_debug().

static void debug_to_prepare_to_store ( struct regcache regcache) [static]

Definition at line 4453 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_rcmd ( char *  command,
struct ui_file outbuf 
) [static]

Definition at line 4884 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by do_monitor_command(), and setup_target_debug().

static int debug_to_region_ok_for_hw_watchpoint ( CORE_ADDR  addr,
int  len 
) [static]

Definition at line 4556 of file target.c.

References core_addr_to_string(), fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_remove_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
) [static]
static int debug_to_remove_exec_catchpoint ( int  pid) [static]

Definition at line 4822 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_remove_fork_catchpoint ( int  pid) [static]

Definition at line 4770 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_remove_hw_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
) [static]
static int debug_to_remove_vfork_catchpoint ( int  pid) [static]

Definition at line 4796 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_remove_watchpoint ( CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
) [static]
static void debug_to_stop ( ptid_t  ptid) [static]

Definition at line 4875 of file target.c.

References fprintf_unfiltered(), gdb_stdlog, and target_pid_to_str().

Referenced by setup_target_debug().

static int debug_to_stopped_by_watchpoint ( void  ) [static]

Definition at line 4587 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static int debug_to_stopped_data_address ( struct target_ops target,
CORE_ADDR addr 
) [static]

Definition at line 4600 of file target.c.

References core_addr_to_string(), fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_inferior ( void  ) [static]

Definition at line 4699 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_info ( const char *  arg,
int  from_tty 
) [static]

Definition at line 4731 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_init ( void  ) [static]

Definition at line 4691 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_ours ( void  ) [static]

Definition at line 4715 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_ours_for_output ( void  ) [static]

Definition at line 4707 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static void debug_to_terminal_save_ours ( void  ) [static]

Definition at line 4723 of file target.c.

References fprintf_unfiltered(), and gdb_stdlog.

Referenced by setup_target_debug().

static struct gdbarch* debug_to_thread_architecture ( struct target_ops ops,
ptid_t  ptid 
) [static, read]
static int debug_to_watchpoint_addr_within_range ( struct target_ops target,
CORE_ADDR  addr,
CORE_ADDR  start,
int  length 
) [static]

Definition at line 4614 of file target.c.

References core_addr_to_string(), fprintf_filtered(), and gdb_stdlog.

Referenced by setup_target_debug().

int default_child_has_execution ( struct target_ops ops,
ptid_t  the_ptid 
)
static enum exec_direction_kind default_execution_direction ( void  ) [static]
static struct target_ops* default_fileio_target ( void  ) [static, read]
static ptid_t default_get_ada_task_ptid ( long  lwp,
long  tid 
) [static]

Definition at line 572 of file target.c.

References inferior_ptid, ptid_build(), and ptid_get_pid().

Referenced by update_current_target().

static int default_region_ok_for_hw_watchpoint ( CORE_ADDR  addr,
int  len 
) [static]

Definition at line 3601 of file target.c.

References gdbarch_ptr_bit(), and target_gdbarch().

Referenced by update_current_target().

static void default_terminal_info ( const char *  args,
int  from_tty 
) [static]

Definition at line 560 of file target.c.

References _, and printf_unfiltered().

Referenced by update_current_target().

static struct gdbarch* default_thread_architecture ( struct target_ops ops,
ptid_t  ptid 
) [static, read]

Definition at line 3615 of file target.c.

References target_gdbarch().

Referenced by update_current_target().

static int default_watchpoint_addr_within_range ( struct target_ops target,
CORE_ADDR  addr,
CORE_ADDR  start,
int  length 
) [static]

Definition at line 3607 of file target.c.

Referenced by update_current_target().

static LONGEST default_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len 
) [static]
static int deprecated_debug_xfer_memory ( CORE_ADDR  memaddr,
bfd_byte *  myaddr,
int  len,
int  write,
struct mem_attrib attrib,
struct target_ops target 
) [static]
static int dispose_inferior ( struct inferior inf,
void *  args 
) [static]
static void do_monitor_command ( char *  cmd,
int  from_tty 
) [static]
static char* do_option ( int target_options,
char *  ret,
int  opt,
char *  opt_str 
) [static]

Definition at line 3892 of file target.c.

References str_comma_list_concat_elem().

static int dummy_find_memory_regions ( find_memory_region_ftype  ignore1,
void *  ignore2 
) [static]

Definition at line 3704 of file target.c.

References _, and error().

Referenced by init_dummy_target().

static gdb_byte* dummy_get_bookmark ( char *  ignore1,
int  ignore2 
) [static]

Definition at line 3720 of file target.c.

References tcomplain().

Referenced by init_dummy_target().

static void dummy_goto_bookmark ( gdb_byte ignore,
int  from_tty 
) [static]

Definition at line 3728 of file target.c.

References tcomplain().

Referenced by init_dummy_target().

static char* dummy_make_corefile_notes ( bfd *  ignore1,
int ignore2 
) [static]

Definition at line 3712 of file target.c.

References _, and error().

Referenced by init_dummy_target().

static char* dummy_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
) [static]

Definition at line 3697 of file target.c.

References normal_pid_to_str().

Referenced by init_dummy_target().

void find_default_attach ( struct target_ops ops,
char *  args,
int  from_tty 
)

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().

static int find_default_can_async_p ( void  ) [static]

Definition at line 3137 of file target.c.

References find_default_run_target(), and target_ops::to_can_async_p.

Referenced by init_dummy_target().

void find_default_create_inferior ( struct target_ops ops,
char *  exec_file,
char *  allargs,
char **  env,
int  from_tty 
)
static int find_default_is_async_p ( void  ) [static]

Definition at line 3152 of file target.c.

References find_default_run_target(), and target_ops::to_is_async_p.

Referenced by init_dummy_target().

static struct target_ops* find_default_run_target ( char *  do_mesg) [static, read]
static int find_default_supports_non_stop ( void  ) [static]

Definition at line 3167 of file target.c.

References find_default_run_target(), and target_ops::to_supports_non_stop.

Referenced by init_dummy_target().

struct target_ops* find_target_beneath ( struct target_ops t) [read]
void free_memory_read_result_vector ( void *  x)

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 generic_mourn_inferior ( void  )
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 
)
static void init_dummy_target ( void  ) [static]
void initialize_targets ( void  )
static void maintenance_print_target_stack ( char *  cmd,
int  from_tty 
) [static]
static LONGEST memory_xfer_live_readonly_partial ( struct target_ops ops,
enum target_object  object,
gdb_byte readbuf,
ULONGEST  memaddr,
LONGEST  len 
) [static]
static LONGEST memory_xfer_partial ( struct target_ops ops,
enum target_object  object,
void *  readbuf,
const void *  writebuf,
ULONGEST  memaddr,
LONGEST  len 
) [static]
static LONGEST memory_xfer_partial_1 ( struct target_ops ops,
enum target_object  object,
void *  readbuf,
const void *  writebuf,
ULONGEST  memaddr,
LONGEST  len 
) [static]
static int nomemory ( CORE_ADDR  memaddr,
char *  myaddr,
int  len,
int  write,
struct target_ops t 
) [static]

Definition at line 539 of file target.c.

Referenced by update_current_target().

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 t)
static void read_whatever_is_readable ( struct target_ops ops,
ULONGEST  begin,
ULONGEST  end,
VEC(memory_read_result_s)**  result 
) [static]
static void restore_show_memory_breakpoints ( void *  arg) [static]

Definition at line 1695 of file target.c.

Referenced by make_show_memory_breakpoints_cleanup().

static int return_minus_one ( void  ) [static]

Definition at line 3633 of file target.c.

Referenced by update_current_target().

static int return_one ( void  ) [static]

Definition at line 3627 of file target.c.

Referenced by update_current_target().

static int return_zero ( void  ) [static]
static void set_stack_cache_enabled_p ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]

Definition at line 222 of file target.c.

References stack_cache_enabled_p_1, and target_dcache_invalidate().

Referenced by initialize_targets().

static void set_target_async_command ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]

Definition at line 4994 of file target.c.

References _, error(), have_live_inferiors(), target_async_permitted, and target_async_permitted_1.

Referenced by initialize_targets().

static void set_target_permissions ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]
static void set_write_memory_permission ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]

Definition at line 5063 of file target.c.

References may_write_memory_1, and update_observer_mode().

Referenced by initialize_targets().

static void setup_target_debug ( void  ) [static]

Definition at line 4905 of file target.c.

References current_target, debug_to_can_accel_watchpoint_condition(), debug_to_can_run(), debug_to_can_use_hw_breakpoint(), debug_to_files_info(), debug_to_has_exited(), debug_to_insert_breakpoint(), debug_to_insert_exec_catchpoint(), debug_to_insert_fork_catchpoint(), debug_to_insert_hw_breakpoint(), debug_to_insert_vfork_catchpoint(), debug_to_insert_watchpoint(), debug_to_load(), debug_to_open(), debug_to_pid_to_exec_file(), debug_to_post_attach(), debug_to_post_startup_inferior(), debug_to_prepare_to_store(), debug_to_rcmd(), debug_to_region_ok_for_hw_watchpoint(), debug_to_remove_breakpoint(), debug_to_remove_exec_catchpoint(), debug_to_remove_fork_catchpoint(), debug_to_remove_hw_breakpoint(), debug_to_remove_vfork_catchpoint(), debug_to_remove_watchpoint(), debug_to_stop(), debug_to_stopped_by_watchpoint(), debug_to_stopped_data_address(), debug_to_terminal_inferior(), debug_to_terminal_info(), debug_to_terminal_init(), debug_to_terminal_ours(), debug_to_terminal_ours_for_output(), debug_to_terminal_save_ours(), debug_to_thread_architecture(), debug_to_watchpoint_addr_within_range(), deprecated_debug_xfer_memory(), target_ops::deprecated_xfer_memory, memcpy(), target_ops::to_can_accel_watchpoint_condition, target_ops::to_can_run, target_ops::to_can_use_hw_breakpoint, target_ops::to_files_info, target_ops::to_has_exited, target_ops::to_insert_breakpoint, target_ops::to_insert_exec_catchpoint, target_ops::to_insert_fork_catchpoint, target_ops::to_insert_hw_breakpoint, target_ops::to_insert_vfork_catchpoint, target_ops::to_insert_watchpoint, target_ops::to_load, target_ops::to_open, target_ops::to_pid_to_exec_file, target_ops::to_post_attach, target_ops::to_post_startup_inferior, target_ops::to_prepare_to_store, target_ops::to_rcmd, target_ops::to_region_ok_for_hw_watchpoint, target_ops::to_remove_breakpoint, target_ops::to_remove_exec_catchpoint, target_ops::to_remove_fork_catchpoint, target_ops::to_remove_hw_breakpoint, target_ops::to_remove_vfork_catchpoint, target_ops::to_remove_watchpoint, target_ops::to_stop, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_terminal_inferior, target_ops::to_terminal_info, target_ops::to_terminal_init, target_ops::to_terminal_ours, target_ops::to_terminal_ours_for_output, target_ops::to_terminal_save_ours, target_ops::to_thread_architecture, and target_ops::to_watchpoint_addr_within_range.

Referenced by update_current_target().

static void show_stack_cache_enabled_p ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 232 of file target.c.

References _, and fprintf_filtered().

Referenced by initialize_targets().

static void show_target_async_command ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 5007 of file target.c.

References _, and fprintf_filtered().

Referenced by initialize_targets().

static void show_trust_readonly ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 1953 of file target.c.

References _, and fprintf_filtered().

Referenced by initialize_targets().

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 
)
static char* str_comma_list_concat_elem ( char *  list,
const char *  elem 
) [static]

Definition at line 3878 of file target.c.

Referenced by do_option(), and target_options_to_string().

void target_attach ( char *  args,
int  from_tty 
)
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)
static void target_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 252 of file target.c.

References fputs_filtered(), and gdb_stdout.

Referenced by add_target_with_completer().

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 *  args,
int  from_tty 
)
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 *  args,
int  from_tty 
)

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 
)
static void target_fileio_close_cleanup ( void *  opaque) [static]

Definition at line 3480 of file target.c.

References target_fileio_close().

Referenced by target_fileio_read_alloc_1().

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().

static LONGEST target_fileio_read_alloc_1 ( const char *  filename,
gdb_byte **  buf_p,
int  padding 
) [static]
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().

static void target_info ( char *  args,
int  from_tty 
) [static]
int target_info_proc ( char *  args,
enum info_proc_what  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  numsigs,
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_pre_inferior ( int  from_tty)
void target_preopen ( int  from_tty)
void target_program_signals ( int  numsigs,
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 
)
static LONGEST target_read_alloc_1 ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte **  buf_p,
int  padding 
) [static]
struct target_desc* target_read_description ( struct target_ops target) [read]

Definition at line 2869 of file target.c.

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

Referenced by target_find_description().

static LONGEST target_read_live_memory ( enum target_object  object,
ULONGEST  memaddr,
gdb_byte myaddr,
LONGEST  len 
) [static]
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().

static LONGEST target_read_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
) [static]

Definition at line 2024 of file target.c.

References target_xfer_partial().

Referenced by read_whatever_is_readable(), target_read(), and target_read_alloc_1().

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  memaddr,
char **  string,
int  len,
int errnop 
)

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)
void target_stop_recording ( void  )

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  regno 
)

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 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 
)
static LONGEST target_write_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
const gdb_byte buf,
ULONGEST  offset,
LONGEST  len 
) [static]

Definition at line 2033 of file target.c.

References target_xfer_partial().

Referenced by target_write_with_progress().

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 
)
static void tcomplain ( void  ) [static]
int unpush_target ( struct target_ops t)
static void update_current_target ( void  ) [static]

Definition at line 602 of file target.c.

References target_ops::beneath, current_target, current_xfer_partial(), de_fault, default_execution_direction(), default_get_ada_task_ptid(), default_region_ok_for_hw_watchpoint(), default_terminal_info(), default_thread_architecture(), default_watchpoint_addr_within_range(), target_ops::deprecated_xfer_memory, INHERIT, LONGEST, memory_insert_breakpoint(), memory_remove_breakpoint(), memset(), nomemory(), noprocess(), return_minus_one(), return_one(), return_zero(), setup_target_debug(), target_ignore(), tcomplain(), target_ops::to_async, target_ops::to_attach_no_wait, target_ops::to_augmented_libraries_svr4_read, target_ops::to_can_accel_watchpoint_condition, target_ops::to_can_async_p, target_ops::to_can_download_tracepoint, target_ops::to_can_execute_reverse, target_ops::to_can_run, target_ops::to_can_run_breakpoint_commands, target_ops::to_can_use_agent, target_ops::to_can_use_hw_breakpoint, target_ops::to_close, target_ops::to_disable_tracepoint, target_ops::to_doc, target_ops::to_download_trace_state_variable, target_ops::to_download_tracepoint, target_ops::to_enable_tracepoint, target_ops::to_execution_direction, target_ops::to_extra_thread_info, target_ops::to_files_info, target_ops::to_find_memory_regions, target_ops::to_get_ada_task_ptid, target_ops::to_get_bookmark, target_ops::to_get_min_fast_tracepoint_insn_len, target_ops::to_get_raw_trace_data, target_ops::to_get_tib_address, target_ops::to_get_trace_state_variable_value, target_ops::to_get_trace_status, target_ops::to_get_tracepoint_status, target_ops::to_goto_bookmark, target_ops::to_has_exited, target_ops::to_has_thread_control, target_ops::to_have_continuable_watchpoint, target_ops::to_have_steppable_watchpoint, target_ops::to_insert_breakpoint, target_ops::to_insert_exec_catchpoint, target_ops::to_insert_fork_catchpoint, target_ops::to_insert_hw_breakpoint, target_ops::to_insert_vfork_catchpoint, target_ops::to_insert_watchpoint, target_ops::to_is_async_p, target_ops::to_load, target_ops::to_log_command, target_ops::to_longname, target_ops::to_magic, target_ops::to_make_corefile_notes, target_ops::to_open, target_ops::to_pid_to_exec_file, target_ops::to_post_attach, target_ops::to_post_startup_inferior, target_ops::to_prepare_to_store, target_ops::to_rcmd, target_ops::to_read_description, target_ops::to_region_ok_for_hw_watchpoint, target_ops::to_remove_breakpoint, target_ops::to_remove_exec_catchpoint, target_ops::to_remove_fork_catchpoint, target_ops::to_remove_hw_breakpoint, target_ops::to_remove_vfork_catchpoint, target_ops::to_remove_watchpoint, target_ops::to_save_trace_data, target_ops::to_set_circular_trace_buffer, target_ops::to_set_disconnected_tracing, target_ops::to_set_permissions, target_ops::to_set_syscall_catchpoint, target_ops::to_set_trace_buffer_size, target_ops::to_set_trace_notes, target_ops::to_shortname, target_ops::to_static_tracepoint_marker_at, target_ops::to_stop, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_stratum, target_ops::to_supports_enable_disable_tracepoint, target_ops::to_supports_evaluation_of_breakpoint_conditions, target_ops::to_supports_multi_process, target_ops::to_supports_string_tracing, target_ops::to_terminal_inferior, target_ops::to_terminal_info, target_ops::to_terminal_init, target_ops::to_terminal_ours, target_ops::to_terminal_ours_for_output, target_ops::to_terminal_save_ours, target_ops::to_thread_architecture, target_ops::to_thread_name, target_ops::to_trace_find, target_ops::to_trace_init, target_ops::to_trace_set_readonly_regions, target_ops::to_trace_start, target_ops::to_trace_stop, target_ops::to_traceframe_info, target_ops::to_upload_trace_state_variables, target_ops::to_upload_tracepoints, target_ops::to_use_agent, target_ops::to_watchpoint_addr_within_range, target_ops::to_xfer_partial, ULONGEST, and VEC.

Referenced by push_target(), and unpush_target().

void update_target_permissions ( void  )

Definition at line 5028 of file target.c.

Referenced by set_observer_mode(), and set_target_permissions().

Definition at line 4189 of file target.c.

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


Variable Documentation

Definition at line 5020 of file target.c.

Referenced by set_target_permissions().

Definition at line 5022 of file target.c.

Referenced by set_target_permissions().

Definition at line 5021 of file target.c.

Referenced by set_target_permissions().

int may_stop_1 = 1 [static]

Definition at line 5023 of file target.c.

Referenced by set_target_permissions().

int may_write_memory_1 = 1 [static]

Definition at line 5019 of file target.c.

Referenced by set_write_memory_permission().

int may_write_registers_1 = 1 [static]

Definition at line 5018 of file target.c.

Referenced by set_target_permissions().

int stack_cache_enabled_p = 1 [static]

Definition at line 214 of file target.c.

Definition at line 210 of file target.c.

Referenced by set_stack_cache_enabled_p().

char targ_desc[] [static]
Initial value:
"Names of targets and files being debugged.\nShows the entire \
stack of targets currently in use (including the exec-file,\n\
core-file, and process, if any), as well as the symbol file name."

Definition at line 4953 of file target.c.

Definition at line 4991 of file target.c.

Referenced by set_target_async_command().

DCACHE* target_dcache [static]

Definition at line 239 of file target.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines