GDB (xrefs)
Functions | Variables
/tmp/gdb-7.10/gdb/inf-ptrace.c File Reference
#include "defs.h"
#include "command.h"
#include "inferior.h"
#include "inflow.h"
#include "terminal.h"
#include "gdbcore.h"
#include "regcache.h"
#include "gdb_ptrace.h"
#include "gdb_wait.h"
#include <signal.h>
#include "inf-ptrace.h"
#include "inf-child.h"
#include "gdbthread.h"

Go to the source code of this file.

Functions

static void inf_ptrace_me (void)
 
static void inf_ptrace_create_inferior (struct target_ops *ops, char *exec_file, char *allargs, char **env, int from_tty)
 
static void inf_ptrace_mourn_inferior (struct target_ops *ops)
 
static void inf_ptrace_attach (struct target_ops *ops, const char *args, int from_tty)
 
static void inf_ptrace_detach (struct target_ops *ops, const char *args, int from_tty)
 
static void inf_ptrace_kill (struct target_ops *ops)
 
static void inf_ptrace_stop (struct target_ops *self, ptid_t ptid)
 
static pid_t get_ptrace_pid (ptid_t ptid)
 
static void inf_ptrace_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal signal)
 
static ptid_t inf_ptrace_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *ourstatus, int options)
 
static enum target_xfer_status inf_ptrace_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)
 
static int inf_ptrace_thread_alive (struct target_ops *ops, ptid_t ptid)
 
static void inf_ptrace_files_info (struct target_ops *ignore)
 
static char * inf_ptrace_pid_to_str (struct target_ops *ops, ptid_t ptid)
 
struct target_opsinf_ptrace_target (void)
 
static void inf_ptrace_fetch_register (struct regcache *regcache, int regnum)
 
static void inf_ptrace_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
static void inf_ptrace_store_register (const struct regcache *regcache, int regnum)
 
static void inf_ptrace_store_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
struct target_opsinf_ptrace_trad_target (CORE_ADDR(*register_u_offset)(struct gdbarch *, int, int))
 

Variables

static CORE_ADDR(* inf_ptrace_register_u_offset )(struct gdbarch *, int, int)
 

Function Documentation

static pid_t get_ptrace_pid ( ptid_t  ptid)
static

Definition at line 308 of file inf-ptrace.c.

References pid, ptid_get_lwp(), and ptid_get_pid().

Referenced by inf_ptrace_resume().

static void inf_ptrace_attach ( struct target_ops ops,
const char *  args,
int  from_tty 
)
static
static void inf_ptrace_create_inferior ( struct target_ops ops,
char *  exec_file,
char *  allargs,
char **  env,
int  from_tty 
)
static
static void inf_ptrace_detach ( struct target_ops ops,
const char *  args,
int  from_tty 
)
static
static void inf_ptrace_fetch_register ( struct regcache regcache,
int  regnum 
)
static
static void inf_ptrace_fetch_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)
static
static void inf_ptrace_files_info ( struct target_ops ignore)
static
static void inf_ptrace_kill ( struct target_ops ops)
static
static void inf_ptrace_me ( void  )
static

Definition at line 79 of file inf-ptrace.c.

References PT_TRACE_ME, ptrace(), and PTRACE_TYPE_ARG3.

Referenced by inf_ptrace_create_inferior().

static void inf_ptrace_mourn_inferior ( struct target_ops ops)
static

Definition at line 141 of file inf-ptrace.c.

References inf_child_mourn_inferior(), inferior_ptid, ptid_get_pid(), and status.

Referenced by inf_ptrace_target().

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

Definition at line 624 of file inf-ptrace.c.

References normal_pid_to_str().

Referenced by inf_ptrace_target().

static void inf_ptrace_resume ( struct target_ops ops,
ptid_t  ptid,
int  step,
enum gdb_signal  signal 
)
static
static void inf_ptrace_stop ( struct target_ops self,
ptid_t  ptid 
)
static

Definition at line 294 of file inf-ptrace.c.

References inferior_process_group().

Referenced by inf_ptrace_target().

static void inf_ptrace_store_register ( const struct regcache regcache,
int  regnum 
)
static
static void inf_ptrace_store_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)
static
struct target_ops* inf_ptrace_target ( void  )
static int inf_ptrace_thread_alive ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 605 of file inf-ptrace.c.

References ptid_get_pid().

Referenced by inf_ptrace_target().

struct target_ops* inf_ptrace_trad_target ( CORE_ADDR(*)(struct gdbarch *, int, int register_u_offset)
static ptid_t inf_ptrace_wait ( struct target_ops ops,
ptid_t  ptid,
struct target_waitstatus ourstatus,
int  options 
)
static
static enum target_xfer_status inf_ptrace_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 
)
static

Variable Documentation

CORE_ADDR(* inf_ptrace_register_u_offset) (struct gdbarch *, int, int)
static