GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/i386bsd-nat.c File Reference
#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 "i386bsd-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 void i386bsd_supply_gregset (struct regcache *regcache, const void *gregs)
 
static void i386bsd_collect_gregset (const struct regcache *regcache, void *gregs, int regnum)
 
static void i386bsd_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
static void i386bsd_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
struct target_opsi386bsd_target (void)
 
void _initialize_i386bsd_nat (void)
 

Variables

static int i386bsd_r_reg_offset []
 

Macro Definition Documentation

#define GETREGS_SUPPLIES (   regnum)    ((0 <= (regnum) && (regnum) <= 15))
#define REG_OFFSET (   member)    offsetof (struct reg, member)

Definition at line 42 of file i386bsd-nat.c.

Function Documentation

void _initialize_i386bsd_nat ( void  )

Definition at line 375 of file i386bsd-nat.c.

References _, offset, and warning().

static void i386bsd_collect_gregset ( const struct regcache regcache,
void *  gregs,
int  regnum 
)
static

Definition at line 112 of file i386bsd-nat.c.

References i386bsd_r_reg_offset, offset, and regcache_raw_collect().

Referenced by i386bsd_store_inferior_registers().

static void i386bsd_fetch_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)
static
static void i386bsd_store_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)
static
static void i386bsd_supply_gregset ( struct regcache regcache,
const void *  gregs 
)
static

Definition at line 93 of file i386bsd-nat.c.

References i386bsd_r_reg_offset, offset, regcache_raw_supply(), and regnum.

Referenced by i386bsd_fetch_inferior_registers().

struct target_ops* i386bsd_target ( void  )

Variable Documentation

int i386bsd_r_reg_offset[]
static
Initial value:
=
{
REG_OFFSET (r_eax),
REG_OFFSET (r_ecx),
REG_OFFSET (r_edx),
REG_OFFSET (r_ebx),
REG_OFFSET (r_esp),
REG_OFFSET (r_ebp),
REG_OFFSET (r_esi),
REG_OFFSET (r_edi),
REG_OFFSET (r_eip),
REG_OFFSET (r_eflags),
REG_OFFSET (r_cs),
REG_OFFSET (r_ss),
REG_OFFSET (r_ds),
REG_OFFSET (r_es),
-1,
-1
}
#define REG_OFFSET(member)
Definition: i386bsd-nat.c:42

Definition at line 47 of file i386bsd-nat.c.

Referenced by i386bsd_collect_gregset(), and i386bsd_supply_gregset().