GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/i386gnu-nat.c File Reference
#include "defs.h"
#include "x86-nat.h"
#include "inferior.h"
#include "floatformat.h"
#include "regcache.h"
#include <mach.h>
#include <mach_error.h>
#include <mach/message.h>
#include <mach/exception.h>
#include "i386-tdep.h"
#include "gnu-nat.h"
#include "inf-child.h"
#include "i387-tdep.h"

Go to the source code of this file.

Macros

#define REG_OFFSET(reg)   offsetof (struct i386_thread_state, reg)
 
#define REG_ADDR(state, regnum)   ((char *)(state) + reg_offset[regnum])
 

Functions

static void fetch_fpregs (struct regcache *regcache, struct proc *thread)
 
static void gnu_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static void store_fpregs (const struct regcache *regcache, struct proc *thread, int regno)
 
static void gnu_store_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
void _initialize_i386gnu_nat (void)
 

Variables

static int reg_offset []
 
initialize_file_ftype _initialize_i386gnu_nat
 

Macro Definition Documentation

#define REG_ADDR (   state,
  regnum 
)    ((char *)(state) + reg_offset[regnum])

Definition at line 50 of file i386gnu-nat.c.

Referenced by gnu_fetch_registers(), and gnu_store_registers().

#define REG_OFFSET (   reg)    offsetof (struct i386_thread_state, reg)

Definition at line 38 of file i386gnu-nat.c.

Function Documentation

void _initialize_i386gnu_nat ( void  )
static void fetch_fpregs ( struct regcache regcache,
struct proc thread 
)
static

Definition at line 57 of file i386gnu-nat.c.

References _, err, i387_supply_fsave(), proc::port, proc_string(), and warning().

Referenced by gnu_fetch_registers().

static void gnu_fetch_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static void gnu_store_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static void store_fpregs ( const struct regcache regcache,
struct proc thread,
int  regno 
)
static

Definition at line 147 of file i386gnu-nat.c.

References _, err, i387_collect_fsave(), proc::port, proc_string(), and warning().

Referenced by gnu_store_registers().

Variable Documentation

initialize_file_ftype _initialize_i386gnu_nat
int reg_offset[]
static