GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/target.c File Reference
#include "defs.h"
#include "target.h"
#include "target-dcache.h"
#include "gdbcmd.h"
#include "symtab.h"
#include "inferior.h"
#include "infrun.h"
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "dcache.h"
#include <signal.h>
#include "regcache.h"
#include "gdbcore.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"
#include "auxv.h"
#include "target-debug.h"
#include "target-delegates.c"

Go to the source code of this file.

Classes

struct  fileio_fh_t
 

Macros

#define INHERIT(FIELD, TARGET)
 
#define CASE(X)   case X: return #X
 
#define MIN(A, B)   (((A) <= (B)) ? (A) : (B))
 
#define SEARCH_CHUNK_SIZE   16000
 
#define is_closed_fileio_fh(fd)   ((fd) < 0)
 
#define fileio_fd_to_fh(fd)   VEC_index (fileio_fh_t, fileio_fhandles, (fd))
 
#define DO_TARG_OPTION(OPT)   ret = do_option (&target_options, ret, OPT, #OPT)
 

Enumerations

enum  terminal_state { terminal_is_inferior = 0, terminal_is_ours_for_output = 1, terminal_is_ours = 2 }
 

Functions

static void target_info (char *, int)
 
static void generic_tls_error (void)
 
static void show_targetdebug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void setup_target_debug (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)
 
static void open_target (char *args, int from_tty, struct cmd_list_element *command)
 
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_kill (void)
 
void target_load (const char *arg, int from_tty)
 
void target_terminal_init (void)
 
int target_terminal_is_inferior (void)
 
void target_terminal_inferior (void)
 
void target_terminal_ours (void)
 
void target_terminal_ours_for_output (void)
 
int target_supports_terminal_ours (void)
 
static void cleanup_restore_target_terminal (void *arg)
 
struct cleanupmake_cleanup_restore_target_terminal (void)
 
static void tcomplain (void)
 
void noprocess (void)
 
static void default_terminal_info (struct target_ops *self, const char *args, int from_tty)
 
static ptid_t default_get_ada_task_ptid (struct target_ops *self, long lwp, long tid)
 
static enum exec_direction_kind default_execution_direction (struct target_ops *self)
 
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_status_to_string (enum target_xfer_status status)
 
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 int memory_xfer_check_region (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *reg_len, struct mem_region **region_p)
 
enum target_xfer_status raw_memory_xfer_partial (struct target_ops *ops, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, LONGEST len, ULONGEST *xfered_len)
 
static enum target_xfer_status memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len)
 
static enum target_xfer_status memory_xfer_partial (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len)
 
static void restore_show_memory_breakpoints (void *arg)
 
struct cleanupmake_show_memory_breakpoints_cleanup (int show)
 
enum target_xfer_status target_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
 
int target_read_uint32 (CORE_ADDR memaddr, uint32_t *result)
 
int target_read_raw_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_read_code (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 enum target_xfer_status target_read_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
static enum target_xfer_status target_write_partial (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len, ULONGEST *xfered_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, const ULONGEST begin, const ULONGEST end, int unit_size, 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 (const char *args, int from_tty)
 
void target_disconnect (const 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)
 
static int default_follow_fork (struct target_ops *self, int follow_child, int detach_fork)
 
int target_follow_fork (int follow_child, int detach_fork)
 
static void default_mourn_inferior (struct target_ops *self)
 
void target_mourn_inferior (void)
 
const 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)
 
static int default_search_memory (struct target_ops *self, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
 
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 void show_auto_connect_native_target (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static struct target_opsfind_default_run_target (char *do_mesg)
 
struct target_opsfind_attach_target (void)
 
struct target_opsfind_run_target (void)
 
int target_info_proc (const char *args, enum info_proc_what what)
 
static int find_default_supports_disable_randomization (struct target_ops *self)
 
int target_supports_disable_randomization (void)
 
char * target_get_osdata (const char *type)
 
static struct address_spacedefault_thread_address_space (struct target_ops *self, ptid_t ptid)
 
struct address_spacetarget_thread_address_space (ptid_t ptid)
 
static struct target_opsdefault_fileio_target (void)
 
 DEF_VEC_O (fileio_fh_t)
 
static VEC (fileio_fh_t)
 
static void release_fileio_fd (int fd, fileio_fh_t *fh)
 
static int target_fileio_open_1 (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, int *target_errno)
 
int target_fileio_open (struct inferior *inf, const char *filename, int flags, int mode, int *target_errno)
 
int target_fileio_open_warn_if_slow (struct inferior *inf, 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_fstat (int fd, struct stat *sb, int *target_errno)
 
int target_fileio_close (int fd, int *target_errno)
 
int target_fileio_unlink (struct inferior *inf, const char *filename, int *target_errno)
 
char * target_fileio_readlink (struct inferior *inf, const char *filename, int *target_errno)
 
static void target_fileio_close_cleanup (void *opaque)
 
static LONGEST target_fileio_read_alloc_1 (struct inferior *inf, const char *filename, gdb_byte **buf_p, int padding)
 
LONGEST target_fileio_read_alloc (struct inferior *inf, const char *filename, gdb_byte **buf_p)
 
char * target_fileio_read_stralloc (struct inferior *inf, const char *filename)
 
static int default_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR addr, int len)
 
static int default_watchpoint_addr_within_range (struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length)
 
static struct gdbarchdefault_thread_architecture (struct target_ops *ops, ptid_t ptid)
 
static int return_zero (struct target_ops *ignore)
 
static int return_zero_has_execution (struct target_ops *ignore, ptid_t ignore2)
 
struct target_opsfind_target_beneath (struct target_ops *t)
 
struct target_opsfind_target_at (enum strata stratum)
 
void generic_mourn_inferior (void)
 
char * normal_pid_to_str (ptid_t ptid)
 
static char * default_pid_to_str (struct target_ops *ops, ptid_t ptid)
 
static int dummy_find_memory_regions (struct target_ops *self, find_memory_region_ftype ignore1, void *ignore2)
 
static char * dummy_make_corefile_notes (struct target_ops *self, bfd *ignore1, int *ignore2)
 
static void init_dummy_target (void)
 
void target_close (struct target_ops *targ)
 
int target_thread_alive (ptid_t ptid)
 
void target_update_thread_list (void)
 
void target_stop (ptid_t ptid)
 
void target_check_pending_interrupt (void)
 
void target_stop_and_wait (ptid_t ptid)
 
void target_continue_no_signal (ptid_t ptid)
 
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 simple_verify_memory (struct target_ops *ops, const gdb_byte *data, CORE_ADDR lma, ULONGEST size)
 
static int default_verify_memory (struct target_ops *self, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
 
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 (enum btrace_format format)
 
struct btrace_target_infotarget_enable_btrace (ptid_t ptid, const struct btrace_config *conf)
 
void target_disable_btrace (struct btrace_target_info *btinfo)
 
void target_teardown_btrace (struct btrace_target_info *btinfo)
 
enum btrace_error target_read_btrace (struct btrace_data *btrace, struct btrace_target_info *btinfo, enum btrace_read_type type)
 
const struct btrace_configtarget_btrace_conf (const struct btrace_target_info *btinfo)
 
void target_stop_recording (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)
 
const struct frame_unwindtarget_get_unwinder (void)
 
const struct frame_unwindtarget_get_tailcall_unwinder (void)
 
void target_prepare_to_generate_core (void)
 
void target_done_generating_core (void)
 
static void default_rcmd (struct target_ops *self, const char *command, struct ui_file *output)
 
static void do_monitor_command (char *cmd, int from_tty)
 
static void maintenance_print_target_stack (char *cmd, int from_tty)
 
static void maint_set_target_async_command (char *args, int from_tty, struct cmd_list_element *c)
 
static void maint_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 enum terminal_state terminal_state
 
static int auto_connect_native_target = 1
 
static char targ_desc []
 
int target_async_permitted = 1
 
static int target_async_permitted_1 = 1
 
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
 

Macro Definition Documentation

#define CASE (   X)    case X: return #X
#define DO_TARG_OPTION (   OPT)    ret = do_option (&target_options, ret, OPT, #OPT)
#define fileio_fd_to_fh (   fd)    VEC_index (fileio_fh_t, fileio_fhandles, (fd))
#define INHERIT (   FIELD,
  TARGET 
)
Value:
if (!current_target.FIELD) \
current_target.FIELD = (TARGET)->FIELD
struct target_ops current_target
#define FIELD(i, pos, len)
Definition: mep-tdep.c:1503

Referenced by update_current_target().

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

Definition at line 906 of file target.c.

Referenced by target_read_string().

#define SEARCH_CHUNK_SIZE   16000

Referenced by simple_search_memory().

Enumeration Type Documentation

Enumerator
terminal_is_inferior 
terminal_is_ours_for_output 
terminal_is_ours 

Definition at line 434 of file target.c.

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 void cleanup_restore_target_terminal ( void *  arg)
static
void complete_target_initialization ( struct target_ops t)
static void debug_print_register ( const char *  func,
struct regcache regcache,
int  regno 
)
static
DEF_VEC_O ( fileio_fh_t  )
int default_child_has_all_memory ( struct target_ops ops)
int default_child_has_execution ( struct target_ops ops,
ptid_t  the_ptid 
)
int default_child_has_memory ( struct target_ops ops)
int default_child_has_registers ( struct target_ops ops)
int default_child_has_stack ( struct target_ops ops)
static enum exec_direction_kind default_execution_direction ( struct target_ops self)
static
static struct target_ops* default_fileio_target ( void  )
static
static int default_follow_fork ( struct target_ops self,
int  follow_child,
int  detach_fork 
)
static

Definition at line 2274 of file target.c.

References _, and internal_error().

Referenced by install_dummy_methods().

static ptid_t default_get_ada_task_ptid ( struct target_ops self,
long  lwp,
long  tid 
)
static

Definition at line 588 of file target.c.

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

Referenced by install_dummy_methods().

static void default_mourn_inferior ( struct target_ops self)
static

Definition at line 2293 of file target.c.

References _, and internal_error().

Referenced by install_dummy_methods().

static char* default_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 3216 of file target.c.

References normal_pid_to_str().

Referenced by install_dummy_methods().

static void default_rcmd ( struct target_ops self,
const char *  command,
struct ui_file output 
)
static

Definition at line 3748 of file target.c.

References _, and error().

Referenced by install_dummy_methods().

static int default_region_ok_for_hw_watchpoint ( struct target_ops self,
CORE_ADDR  addr,
int  len 
)
static

Definition at line 3111 of file target.c.

References gdbarch_ptr_bit(), TARGET_CHAR_BIT, and target_gdbarch().

Referenced by install_dummy_methods().

static int default_search_memory ( struct target_ops self,
CORE_ADDR  start_addr,
ULONGEST  search_space_len,
const gdb_byte pattern,
ULONGEST  pattern_len,
CORE_ADDR found_addrp 
)
static

Definition at line 2429 of file target.c.

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

Referenced by install_dummy_methods().

static void default_terminal_info ( struct target_ops self,
const char *  args,
int  from_tty 
)
static

Definition at line 576 of file target.c.

References _, and printf_unfiltered().

Referenced by install_dummy_methods().

static struct address_space* default_thread_address_space ( struct target_ops self,
ptid_t  ptid 
)
static
static struct gdbarch* default_thread_architecture ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 3126 of file target.c.

References target_gdbarch().

Referenced by install_dummy_methods().

static int default_verify_memory ( struct target_ops self,
const gdb_byte data,
CORE_ADDR  memaddr,
ULONGEST  size 
)
static

Definition at line 3478 of file target.c.

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

Referenced by install_dummy_methods().

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

Definition at line 3118 of file target.c.

Referenced by install_dummy_methods().

static int dispose_inferior ( struct inferior inf,
void *  args 
)
static
static void do_monitor_command ( char *  cmd,
int  from_tty 
)
static

Definition at line 3755 of file target.c.

References gdb_stdtarg, and target_rcmd.

Referenced by initialize_targets().

static char* do_option ( int target_options,
char *  ret,
int  opt,
char *  opt_str 
)
static

Definition at line 3351 of file target.c.

References str_comma_list_concat_elem().

static int dummy_find_memory_regions ( struct target_ops self,
find_memory_region_ftype  ignore1,
void *  ignore2 
)
static

Definition at line 3223 of file target.c.

References _, and error().

Referenced by install_dummy_methods().

static char* dummy_make_corefile_notes ( struct target_ops self,
bfd *  ignore1,
int ignore2 
)
static

Definition at line 3232 of file target.c.

References _, and error().

Referenced by install_dummy_methods().

struct target_ops* find_attach_target ( void  )
static struct target_ops* find_default_run_target ( char *  do_mesg)
static
static int find_default_supports_disable_randomization ( struct target_ops self)
static
struct target_ops* find_run_target ( void  )
struct target_ops* find_target_at ( enum strata  stratum)
struct target_ops* find_target_beneath ( struct target_ops t)
void free_memory_read_result_vector ( void *  x)

Definition at line 1769 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  )
static void generic_tls_error ( void  )
static

Definition at line 49 of file target.c.

Referenced by tdefault_get_thread_local_address().

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 
)

Definition at line 2031 of file target.c.

References extract_unsigned_integer(), gdb_assert, and get_target_memory().

Referenced by frv_convert_from_func_ptr_addr().

static void init_dummy_target ( void  )
static
void initialize_targets ( void  )
static void maint_set_target_async_command ( char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

Definition at line 3785 of file target.c.

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

Referenced by initialize_targets().

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

Definition at line 3798 of file target.c.

References _, and fprintf_filtered().

Referenced by initialize_targets().

static void maintenance_print_target_stack ( char *  cmd,
int  from_tty 
)
static
struct cleanup* make_cleanup_restore_target_terminal ( void  )
struct cleanup* make_show_memory_breakpoints_cleanup ( int  show)
static int memory_xfer_check_region ( gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  memaddr,
ULONGEST  len,
ULONGEST reg_len,
struct mem_region **  region_p 
)
static
static enum target_xfer_status memory_xfer_partial ( struct target_ops ops,
enum target_object  object,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  memaddr,
ULONGEST  len,
ULONGEST xfered_len 
)
static
static enum target_xfer_status memory_xfer_partial_1 ( struct target_ops ops,
enum target_object  object,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  memaddr,
ULONGEST  len,
ULONGEST xfered_len 
)
static
void noprocess ( void  )
char* normal_pid_to_str ( ptid_t  ptid)
static void open_target ( char *  args,
int  from_tty,
struct cmd_list_element command 
)
static
void pop_all_targets ( void  )

Definition at line 767 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)
enum target_xfer_status raw_memory_xfer_partial ( struct target_ops ops,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  memaddr,
LONGEST  len,
ULONGEST xfered_len 
)
static void read_whatever_is_readable ( struct target_ops ops,
const ULONGEST  begin,
const ULONGEST  end,
int  unit_size,
VEC(memory_read_result_s)**  result 
)
static
static void release_fileio_fd ( int  fd,
fileio_fh_t fh 
)
static

Definition at line 2771 of file target.c.

References fileio_fh_t::fd, and min.

Referenced by target_fileio_close().

static void restore_show_memory_breakpoints ( void *  arg)
static

Definition at line 1263 of file target.c.

Referenced by make_show_memory_breakpoints_cleanup().

static int return_zero ( struct target_ops ignore)
static

Definition at line 3132 of file target.c.

Referenced by complete_target_initialization(), and init_dummy_target().

static int return_zero_has_execution ( struct target_ops ignore,
ptid_t  ignore2 
)
static

Definition at line 3138 of file target.c.

Referenced by complete_target_initialization(), and init_dummy_target().

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 3854 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 3734 of file target.c.

References current_target, and init_debug_target().

Referenced by update_current_target().

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

Definition at line 2499 of file target.c.

References _, and fprintf_filtered().

Referenced by initialize_targets().

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

Definition at line 176 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 1554 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 
)
int simple_verify_memory ( struct target_ops ops,
const gdb_byte data,
CORE_ADDR  lma,
ULONGEST  size 
)
static char* str_comma_list_concat_elem ( char *  list,
const char *  elem 
)
static

Definition at line 3337 of file target.c.

Referenced by do_option(), and target_options_to_string().

const struct btrace_config* target_btrace_conf ( const struct btrace_target_info btinfo)

Definition at line 3577 of file target.c.

References current_target, and target_ops::to_btrace_conf.

Referenced by btrace_conf().

void target_call_history ( int  size,
int  flags 
)

Definition at line 3680 of file target.c.

References current_target, and target_ops::to_call_history.

Referenced by cmd_record_call_history().

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

Definition at line 3688 of file target.c.

References current_target, and target_ops::to_call_history_from.

Referenced by cmd_record_call_history().

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

Definition at line 3696 of file target.c.

References current_target, and target_ops::to_call_history_range.

Referenced by cmd_record_call_history().

void target_check_pending_interrupt ( void  )

Definition at line 3303 of file target.c.

References current_target, and target_ops::to_check_pending_interrupt.

Referenced by maybe_quit().

void target_close ( struct target_ops targ)
static void target_command ( char *  arg,
int  from_tty 
)
static

Definition at line 187 of file target.c.

References fputs_filtered(), and gdb_stdout.

Referenced by add_target_with_completer().

void target_continue_no_signal ( ptid_t  ptid)

Definition at line 3328 of file target.c.

References target_resume().

Referenced by agent_run_command().

int target_core_of_thread ( ptid_t  ptid)

Definition at line 3442 of file target.c.

References current_target, and target_ops::to_core_of_thread.

Referenced by collect_cores(), mi_on_normal_stop(), and print_thread_info().

void target_delete_record ( void  )

Definition at line 3616 of file target.c.

References current_target, and target_ops::to_delete_record.

Referenced by cmd_record_delete().

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

Definition at line 3551 of file target.c.

References current_target, and target_ops::to_disable_btrace.

Referenced by btrace_disable().

void target_disconnect ( const char *  args,
int  from_tty 
)

Definition at line 2216 of file target.c.

References current_target, remove_breakpoints(), and target_ops::to_disconnect.

Referenced by disconnect_command(), and record_disconnect().

void target_done_generating_core ( void  )

Definition at line 3728 of file target.c.

References current_target, and target_ops::to_done_generating_core.

Referenced by write_gcore_file().

struct btrace_target_info* target_enable_btrace ( ptid_t  ptid,
const struct btrace_config conf 
)

Definition at line 3543 of file target.c.

References current_target, 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 2992 of file target.c.

References target_fileio_close().

Referenced by target_fileio_read_alloc_1().

int target_fileio_fstat ( int  fd,
struct stat *  sb,
int target_errno 
)
int target_fileio_open ( struct inferior inf,
const char *  filename,
int  flags,
int  mode,
int target_errno 
)

Definition at line 2823 of file target.c.

References target_fileio_open_1().

Referenced by target_fileio_read_alloc_1().

static int target_fileio_open_1 ( struct inferior inf,
const char *  filename,
int  flags,
int  mode,
int  warn_if_slow,
int target_errno 
)
static
int target_fileio_open_warn_if_slow ( struct inferior inf,
const char *  filename,
int  flags,
int  mode,
int target_errno 
)

Definition at line 2833 of file target.c.

References target_fileio_open_1().

Referenced by gdb_bfd_iovec_fileio_open().

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 ( struct inferior inf,
const char *  filename,
gdb_byte **  buf_p 
)

Definition at line 3070 of file target.c.

References target_fileio_read_alloc_1().

static LONGEST target_fileio_read_alloc_1 ( struct inferior inf,
const char *  filename,
gdb_byte **  buf_p,
int  padding 
)
static
char* target_fileio_read_stralloc ( struct inferior inf,
const char *  filename 
)
char* target_fileio_readlink ( struct inferior inf,
const char *  filename,
int target_errno 
)
int target_fileio_unlink ( struct inferior inf,
const char *  filename,
int target_errno 
)
void target_flash_done ( void  )

Definition at line 1548 of file target.c.

References current_target, and target_ops::to_flash_done.

Referenced by target_write_memory_blocks().

void target_flash_erase ( ULONGEST  address,
LONGEST  length 
)

Definition at line 1542 of file target.c.

References current_target, and target_ops::to_flash_erase.

Referenced by target_write_memory_blocks().

int target_follow_fork ( int  follow_child,
int  detach_fork 
)

Definition at line 2286 of file target.c.

References current_target, and target_ops::to_follow_fork.

Referenced by follow_fork_inferior().

char* target_get_osdata ( const char *  type)
struct target_section_table* target_get_section_table ( struct target_ops target)
const struct frame_unwind* target_get_tailcall_unwinder ( void  )

Definition at line 3712 of file target.c.

References current_target, and target_ops::to_get_tailcall_unwinder.

Referenced by frame_unwind_find_by_frame().

const struct frame_unwind* target_get_unwinder ( void  )

Definition at line 3704 of file target.c.

References current_target, and target_ops::to_get_unwinder.

Referenced by frame_unwind_find_by_frame().

void target_goto_record ( ULONGEST  insn)

Definition at line 3648 of file target.c.

References current_target, and target_ops::to_goto_record.

Referenced by record_goto().

void target_goto_record_begin ( void  )

Definition at line 3632 of file target.c.

References current_target, and target_ops::to_goto_record_begin.

Referenced by cmd_record_goto_begin().

void target_goto_record_end ( void  )

Definition at line 3640 of file target.c.

References current_target, and target_ops::to_goto_record_end.

Referenced by cmd_record_goto_end().

int target_has_all_memory_1 ( void  )

Definition at line 248 of file target.c.

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

int target_has_execution_1 ( ptid_t  the_ptid)
int target_has_execution_current ( void  )

Definition at line 308 of file target.c.

References inferior_ptid, and target_has_execution_1().

int target_has_memory_1 ( void  )

Definition at line 260 of file target.c.

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

int target_has_registers_1 ( void  )

Definition at line 284 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 272 of file target.c.

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

static void target_info ( char *  args,
int  from_tty 
)
static
int target_info_proc ( const char *  args,
enum info_proc_what  what 
)
int target_insert_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)

Definition at line 2044 of file target.c.

References _, current_target, target_ops::to_insert_breakpoint, and warning().

Referenced by bkpt_insert_location(), and insert_bp_location().

int target_insert_mask_watchpoint ( CORE_ADDR  addr,
CORE_ADDR  mask,
int  rw 
)

Definition at line 3497 of file target.c.

References current_target, and target_ops::to_insert_mask_watchpoint.

Referenced by insert_masked_watchpoint().

void target_insn_history ( int  size,
int  flags 
)

Definition at line 3656 of file target.c.

References current_target, and target_ops::to_insn_history.

Referenced by cmd_record_insn_history().

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

Definition at line 3664 of file target.c.

References current_target, and target_ops::to_insn_history_from.

Referenced by cmd_record_insn_history().

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

Definition at line 3672 of file target.c.

References current_target, and target_ops::to_insn_history_range.

Referenced by cmd_record_insn_history().

int target_is_pushed ( struct target_ops t)
void target_kill ( void  )
void target_load ( const char *  arg,
int  from_tty 
)

Definition at line 426 of file target.c.

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

Referenced by load_command().

int target_masked_watch_num_registers ( CORE_ADDR  addr,
CORE_ADDR  mask 
)
void target_mourn_inferior ( void  )
char* target_options_to_string ( int  target_options)
void target_pass_signals ( int  numsigs,
unsigned char *  pass_signals 
)
char* target_pid_to_str ( ptid_t  ptid)

Definition at line 2233 of file target.c.

References current_target, and target_ops::to_pid_to_str.

Referenced by add_thread_with_info(), attach_proc_task_lwp_callback(), btrace_clear(), btrace_disable(), btrace_enable(), btrace_fetch(), btrace_teardown(), check_stopped_by_breakpoint(), clear_proceed_status_thread(), context_switch(), darwin_attach(), darwin_detach(), dcache_info_1(), default_thread_address_space(), 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(), follow_exec(), follow_fork_inferior(), fprint_dummy_frames(), get_pending_status(), gnu_fetch_registers(), gnu_resume(), gnu_store_registers(), gnu_wait(), handle_signal_stop(), 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(), print_exited_reason(), print_inferior_quit_action(), print_program_space(), print_signal_received_reason(), print_target_wait_results(), print_thread_info(), proceed(), proceed_after_vfork_done(), procfs_attach(), procfs_detach(), procfs_fetch_registers(), procfs_files_info(), procfs_store_registers(), procfs_wait(), push_stop_reply(), record_btrace_info(), record_btrace_resume(), record_btrace_resume_thread(), record_btrace_step_thread(), record_btrace_wait(), record_thread(), 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(), status_callback(), stop_callback(), stop_wait_callback(), switch_back_to_stepped_thread(), 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(), windows_files_info(), and x86_linux_enable_btrace().

void target_pre_inferior ( int  from_tty)
void target_preopen ( int  from_tty)
void target_prepare_to_generate_core ( void  )

Definition at line 3720 of file target.c.

References current_target, and target_ops::to_prepare_to_generate_core.

Referenced by write_gcore_file().

void target_program_signals ( int  numsigs,
unsigned char *  program_signals 
)

Definition at line 2267 of file target.c.

References current_target, and target_ops::to_program_signals.

Referenced by handle_command(), and update_signals_program_target().

int target_ranged_break_num_registers ( void  )
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
enum btrace_error target_read_btrace ( struct btrace_data btrace,
struct btrace_target_info btinfo,
enum btrace_read_type  type 
)

Definition at line 3567 of file target.c.

References current_target, and target_ops::to_read_btrace.

Referenced by btrace_fetch().

int target_read_code ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)
const struct target_desc* target_read_description ( struct target_ops target)

Definition at line 2314 of file target.c.

References target_ops::to_read_description.

Referenced by target_find_description().

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

Definition at line 1393 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_process_record(), aarch64_stub_unwind_sniffer(), agent_run_command(), alpha_get_longjmp_target(), alpha_read_insn(), alpha_skip_prologue(), alphanbsd_sigtramp_offset(), amd64_get_longjmp_target(), amd64_skip_main_prologue(), amd64_stack_frame_destroyed_p(), 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_skip_bx_reg(), arm_stub_unwind_sniffer(), arm_symbian_skip_trampoline_code(), 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(), 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(), gdbscm_memory_port_fill_input(), get_signo(), hppa64_convert_code_addr_to_fptr(), hppa_linux_find_global_pointer(), hppa_match_insns(), hppa_stack_frame_destroyed_p(), hppabsd_find_global_pointer(), i386_darwin_sstep_at_sigreturn(), i386_get_longjmp_target(), i386_in_stack_tramp_p(), i386_linux_resume(), i386_stack_frame_destroyed_p(), ia64_breakpoint_from_pc(), ia64_convert_from_func_ptr_addr(), ia64_find_global_pointer_from_dynamic_section(), 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(), memory_validate_breakpoint(), mi_cmd_trace_frame_collected(), 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(), parse_spufs_run(), partial_memory_read(), pascal_object_print_value(), pdc_read_data(), ppc_linux_memory_remove_breakpoint(), ppc_linux_spe_context(), ppu2spu_sniffer(), program_breakpoint_here_p(), ps_xfer_memory(), 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_readinstruction(), s390_sigtramp_frame_sniffer(), s390_stack_frame_destroyed_p(), safe_frame_unwind_memory(), safe_read_memory_integer(), 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(), sparc64_linux_get_longjmp_target(), sparc_fetch_instruction(), sparc_supply_rwindow(), spu2ppu_sniffer(), spu_analyze_prologue(), spu_bfd_iovec_pread(), spu_frame_unwind_cache(), spu_get_longjmp_target(), spu_software_single_step(), spu_stack_frame_destroyed_p(), stap_modify_semaphore(), target_read_memory_bfd(), target_read_string(), target_read_uint32(), target_write_memory_blocks(), thumb2_copy_table_branch(), thumb_stack_frame_destroyed_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 enum target_xfer_status target_read_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte buf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static

Definition at line 1565 of file target.c.

References target_xfer_partial().

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

int target_read_raw_memory ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)
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 
)
int target_read_uint32 ( CORE_ADDR  memaddr,
uint32_t *  result 
)
int target_record_is_replaying ( void  )

Definition at line 3624 of file target.c.

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

Definition at line 2060 of file target.c.

References _, current_target, target_ops::to_remove_breakpoint, and warning().

Referenced by bkpt_remove_location(), and remove_breakpoint_1().

int target_remove_mask_watchpoint ( CORE_ADDR  addr,
CORE_ADDR  mask,
int  rw 
)

Definition at line 3507 of file target.c.

References current_target, and target_ops::to_remove_mask_watchpoint.

Referenced by remove_masked_watchpoint().

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 3593 of file target.c.

References current_target, 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 
)

Definition at line 2448 of file target.c.

References current_target, and target_ops::to_search_memory.

Referenced by find_command(), and infpy_search_memory().

struct target_section* target_section_by_addr ( struct target_ops target,
CORE_ADDR  addr 
)
void target_stop ( ptid_t  ptid)
void target_stop_and_wait ( ptid_t  ptid)

Definition at line 3311 of file target.c.

References non_stop, target_stop(), and target_wait().

Referenced by agent_run_command().

void target_stop_recording ( void  )

Definition at line 3585 of file target.c.

References current_target, and target_ops::to_stop_recording.

void target_store_registers ( struct regcache regcache,
int  regno 
)
int target_supports_btrace ( enum btrace_format  format)

Definition at line 3535 of file target.c.

References current_target, and target_ops::to_supports_btrace.

Referenced by btrace_enable().

int target_supports_delete_record ( void  )
int target_supports_disable_randomization ( void  )
int target_supports_terminal_ours ( void  )
void target_teardown_btrace ( struct btrace_target_info btinfo)

Definition at line 3559 of file target.c.

References current_target, and target_ops::to_teardown_btrace.

Referenced by btrace_teardown().

void target_terminal_inferior ( void  )
void target_terminal_init ( void  )
int target_terminal_is_inferior ( void  )

Definition at line 462 of file target.c.

References terminal_is_inferior.

Referenced by annotate_breakpoints_invalid(), and annotate_frames_invalid().

void target_terminal_ours ( void  )
void target_terminal_ours_for_output ( void  )
struct address_space* target_thread_address_space ( ptid_t  ptid)

Definition at line 2686 of file target.c.

References current_target, gdb_assert, and target_ops::to_thread_address_space.

Referenced by get_thread_arch_regcache().

int target_thread_alive ( ptid_t  ptid)
char* target_thread_name ( struct thread_info info)

Definition at line 2239 of file target.c.

References current_target, and target_ops::to_thread_name.

Referenced by print_thread_info(), thpy_get_name(), and thread_find_command().

CORE_ADDR target_translate_tls_address ( struct objfile objfile,
CORE_ADDR  offset 
)
void target_update_thread_list ( void  )
int target_verify_memory ( const gdb_byte data,
CORE_ADDR  memaddr,
ULONGEST  size 
)

Definition at line 3487 of file target.c.

References current_target, and target_ops::to_verify_memory.

Referenced by compare_sections_command().

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

Definition at line 1576 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 
)
enum target_xfer_status target_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
const char* target_xfer_status_to_string ( enum target_xfer_status  status)

Definition at line 891 of file target.c.

References CASE, TARGET_XFER_E_IO, and TARGET_XFER_UNAVAILABLE.

Referenced by memory_error_message().

static void tcomplain ( void  )
static
int unpush_target ( struct target_ops t)
static void update_current_target ( void  )
static
void update_target_permissions ( void  )
VEC ( mem_region_s  )
static VEC ( fileio_fh_t  )
static

Variable Documentation

int auto_connect_native_target = 1
static

Definition at line 2496 of file target.c.

int may_insert_breakpoints_1 = 1
static

Definition at line 3811 of file target.c.

Referenced by set_target_permissions().

int may_insert_fast_tracepoints_1 = 1
static

Definition at line 3813 of file target.c.

Referenced by set_target_permissions().

int may_insert_tracepoints_1 = 1
static

Definition at line 3812 of file target.c.

Referenced by set_target_permissions().

int may_stop_1 = 1
static

Definition at line 3814 of file target.c.

Referenced by set_target_permissions().

int may_write_memory_1 = 1
static

Definition at line 3810 of file target.c.

Referenced by set_write_memory_permission().

int may_write_registers_1 = 1
static

Definition at line 3809 of file target.c.

Referenced by set_target_permissions().

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 3742 of file target.c.

int target_async_permitted = 1
int target_async_permitted_1 = 1
static

Definition at line 3782 of file target.c.

Referenced by maint_set_target_async_command().

Definition at line 447 of file target.c.