GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/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_assert.h"
#include "gdb_string.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, char *args, int from_tty)
static void inf_ptrace_detach (struct target_ops *ops, char *args, int from_tty)
static void inf_ptrace_kill (struct target_ops *ops)
static void inf_ptrace_stop (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 LONGEST inf_ptrace_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 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 void inf_ptrace_attach ( struct target_ops ops,
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,
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 105 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]
static char* inf_ptrace_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
) [static]

Definition at line 634 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 ( ptid_t  ptid) [static]

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

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  ) [read]
static int inf_ptrace_thread_alive ( struct target_ops ops,
ptid_t  ptid 
) [static]

Definition at line 615 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) [read]
static ptid_t inf_ptrace_wait ( struct target_ops ops,
ptid_t  ptid,
struct target_waitstatus ourstatus,
int  options 
) [static]
static LONGEST inf_ptrace_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]

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines