GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/i386bsd-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
#include "gdb_assert.h"
#include <signal.h>
#include <stddef.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.

Defines

#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 []

Define Documentation

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

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


Function Documentation

void _initialize_i386bsd_nat ( void  )

Definition at line 338 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 110 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 91 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  ) [read]

Variable Documentation

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

}

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

Referenced by i386bsd_collect_gregset(), and i386bsd_supply_gregset().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines