GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#include <machine/reg.h>
#include <machine/frame.h>
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "x86-bsd-nat.h"
#include "i386-bsd-nat.h"
#include "inf-ptrace.h"
Go to the source code of this file.
Macros | |
#define | REG_OFFSET(member) offsetof (struct reg, member) |
#define | GETREGS_SUPPLIES(regnum) ((0 <= (regnum) && (regnum) <= 15)) |
Functions | |
static PTRACE_TYPE_RET | gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr, PTRACE_TYPE_ARG4 data) |
static void | i386bsd_supply_gregset (struct regcache *regcache, const void *gregs) |
static void | i386bsd_collect_gregset (const struct regcache *regcache, void *gregs, int regnum) |
void | i386bsd_fetch_inferior_registers (struct regcache *regcache, int regnum) |
void | i386bsd_store_inferior_registers (struct regcache *regcache, int regnum) |
void | _initialize_i386bsd_nat () |
Variables | |
static int | i386bsd_r_reg_offset [] |
static int | have_ptrace_xmmregs = -1 |
Definition at line 92 of file i386-bsd-nat.c.
Referenced by i386bsd_fetch_inferior_registers(), and i386bsd_store_inferior_registers().
#define REG_OFFSET | ( | member | ) | offsetof (struct reg, member) |
Definition at line 58 of file i386-bsd-nat.c.
void _initialize_i386bsd_nat | ( | ) |
Definition at line 243 of file i386-bsd-nat.c.
|
static |
Definition at line 38 of file i386-bsd-nat.c.
References get_ptrace_pid(), pid, and ptrace.
Referenced by i386bsd_fetch_inferior_registers(), and i386bsd_store_inferior_registers().
|
static |
Definition at line 122 of file i386-bsd-nat.c.
References i386bsd_r_reg_offset, reg_buffer::raw_collect(), and regnum.
Referenced by i386bsd_store_inferior_registers().
void i386bsd_fetch_inferior_registers | ( | struct regcache * | regcache, |
int | regnum ) |
Definition at line 144 of file i386-bsd-nat.c.
References gdb_ptrace(), GETREGS_SUPPLIES, have_ptrace_xmmregs, I386_ST0_REGNUM, i386bsd_supply_gregset(), i387_supply_fsave(), i387_supply_fxsave(), regcache::ptid(), PTRACE_TYPE_ARG3, and regnum.
Referenced by i386_bsd_nat_target< BaseTarget >::fetch_registers().
void i386bsd_store_inferior_registers | ( | struct regcache * | regcache, |
int | regnum ) |
Definition at line 188 of file i386-bsd-nat.c.
References gdb_ptrace(), GETREGS_SUPPLIES, have_ptrace_xmmregs, I386_ST0_REGNUM, i386bsd_collect_gregset(), i387_collect_fsave(), i387_collect_fxsave(), regcache::ptid(), PTRACE_TYPE_ARG3, and regnum.
Referenced by i386_bsd_nat_target< BaseTarget >::store_registers().
|
static |
Definition at line 103 of file i386-bsd-nat.c.
References i386bsd_r_reg_offset, reg_buffer::raw_supply(), and regnum.
Referenced by i386bsd_fetch_inferior_registers().
|
static |
Definition at line 97 of file i386-bsd-nat.c.
Referenced by i386bsd_fetch_inferior_registers(), and i386bsd_store_inferior_registers().
|
static |
Definition at line 63 of file i386-bsd-nat.c.
Referenced by i386bsd_collect_gregset(), and i386bsd_supply_gregset().