GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/i387-tdep.h File Reference

Go to the source code of this file.

Defines

#define I387_NUM_REGS   16
#define I387_ST0_REGNUM(tdep)   ((tdep)->st0_regnum)
#define I387_NUM_XMM_REGS(tdep)   ((tdep)->num_xmm_regs)
#define I387_MM0_REGNUM(tdep)   ((tdep)->mm0_regnum)
#define I387_NUM_YMM_REGS(tdep)   ((tdep)->num_ymm_regs)
#define I387_YMM0H_REGNUM(tdep)   ((tdep)->ymm0h_regnum)
#define I387_FCTRL_REGNUM(tdep)   (I387_ST0_REGNUM (tdep) + 8)
#define I387_FSTAT_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 1)
#define I387_FTAG_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 2)
#define I387_FISEG_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 3)
#define I387_FIOFF_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 4)
#define I387_FOSEG_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 5)
#define I387_FOOFF_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 6)
#define I387_FOP_REGNUM(tdep)   (I387_FCTRL_REGNUM (tdep) + 7)
#define I387_XMM0_REGNUM(tdep)   (I387_ST0_REGNUM (tdep) + 16)
#define I387_MXCSR_REGNUM(tdep)   (I387_XMM0_REGNUM (tdep) + I387_NUM_XMM_REGS (tdep))
#define I387_YMMENDH_REGNUM(tdep)   (I387_YMM0H_REGNUM (tdep) + I387_NUM_YMM_REGS (tdep))
#define I387_SIZEOF_FSAVE   108
#define I387_SIZEOF_FXSAVE   512

Functions

void i387_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args)
int i387_convert_register_p (struct gdbarch *gdbarch, int regnum, struct type *type)
int i387_register_to_value (struct frame_info *frame, int regnum, struct type *type, gdb_byte *to, int *optimizedp, int *unavailablep)
void i387_value_to_register (struct frame_info *frame, int regnum, struct type *type, const gdb_byte *from)
void i387_supply_fsave (struct regcache *regcache, int regnum, const void *fsave)
void i387_collect_fsave (const struct regcache *regcache, int regnum, void *fsave)
void i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave)
void i387_supply_xsave (struct regcache *regcache, int regnum, const void *xsave)
void i387_collect_fxsave (const struct regcache *regcache, int regnum, void *fxsave)
void i387_collect_xsave (const struct regcache *regcache, int regnum, void *xsave, int gcore)
void i387_return_value (struct gdbarch *gdbarch, struct regcache *regcache)

Define Documentation

#define I387_FCTRL_REGNUM (   tdep)    (I387_ST0_REGNUM (tdep) + 8)

Definition at line 38 of file i387-tdep.h.

#define I387_FIOFF_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 4)

Definition at line 42 of file i387-tdep.h.

#define I387_FISEG_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 3)

Definition at line 41 of file i387-tdep.h.

#define I387_FOOFF_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 6)

Definition at line 44 of file i387-tdep.h.

#define I387_FOP_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 7)

Definition at line 45 of file i387-tdep.h.

#define I387_FOSEG_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 5)

Definition at line 43 of file i387-tdep.h.

#define I387_FSTAT_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 1)

Definition at line 39 of file i387-tdep.h.

#define I387_FTAG_REGNUM (   tdep)    (I387_FCTRL_REGNUM (tdep) + 2)

Definition at line 40 of file i387-tdep.h.

#define I387_MM0_REGNUM (   tdep)    ((tdep)->mm0_regnum)

Definition at line 34 of file i387-tdep.h.

#define I387_MXCSR_REGNUM (   tdep)    (I387_XMM0_REGNUM (tdep) + I387_NUM_XMM_REGS (tdep))

Definition at line 47 of file i387-tdep.h.

#define I387_NUM_REGS   16

Definition at line 30 of file i387-tdep.h.

#define I387_NUM_XMM_REGS (   tdep)    ((tdep)->num_xmm_regs)

Definition at line 33 of file i387-tdep.h.

#define I387_NUM_YMM_REGS (   tdep)    ((tdep)->num_ymm_regs)

Definition at line 35 of file i387-tdep.h.

#define I387_SIZEOF_FSAVE   108

Definition at line 81 of file i387-tdep.h.

#define I387_SIZEOF_FXSAVE   512

Definition at line 82 of file i387-tdep.h.

#define I387_ST0_REGNUM (   tdep)    ((tdep)->st0_regnum)

Definition at line 32 of file i387-tdep.h.

#define I387_XMM0_REGNUM (   tdep)    (I387_ST0_REGNUM (tdep) + 16)

Definition at line 46 of file i387-tdep.h.

#define I387_YMM0H_REGNUM (   tdep)    ((tdep)->ymm0h_regnum)

Definition at line 36 of file i387-tdep.h.

#define I387_YMMENDH_REGNUM (   tdep)    (I387_YMM0H_REGNUM (tdep) + I387_NUM_YMM_REGS (tdep))

Definition at line 49 of file i387-tdep.h.


Function Documentation

void i387_collect_fsave ( const struct regcache *  regcache,
int  regnum,
void *  fsave 
)

Definition at line 505 of file i387-tdep.c.

void i387_collect_fxsave ( const struct regcache *  regcache,
int  regnum,
void *  fxsave 
)

Definition at line 681 of file i387-tdep.c.

void i387_collect_xsave ( const struct regcache *  regcache,
int  regnum,
void *  xsave,
int  gcore 
)

Definition at line 979 of file i387-tdep.c.

int i387_convert_register_p ( struct gdbarch *  gdbarch,
int  regnum,
struct type type 
)

Definition at line 341 of file i387-tdep.c.

void i387_print_float_info ( struct gdbarch *  gdbarch,
struct ui_file *  file,
struct frame_info *  frame,
const char *  args 
)

Definition at line 218 of file i387-tdep.c.

int i387_register_to_value ( struct frame_info *  frame,
int  regnum,
struct type type,
gdb_byte to,
int optimizedp,
int unavailablep 
)

Definition at line 361 of file i387-tdep.c.

void i387_return_value ( struct gdbarch *  gdbarch,
struct regcache *  regcache 
)

Definition at line 1271 of file i387-tdep.c.

void i387_supply_fsave ( struct regcache *  regcache,
int  regnum,
const void *  fsave 
)

Definition at line 450 of file i387-tdep.c.

void i387_supply_fxsave ( struct regcache *  regcache,
int  regnum,
const void *  fxsave 
)

Definition at line 598 of file i387-tdep.c.

void i387_supply_xsave ( struct regcache *  regcache,
int  regnum,
const void *  xsave 
)

Definition at line 772 of file i387-tdep.c.

void i387_value_to_register ( struct frame_info *  frame,
int  regnum,
struct type type,
const gdb_byte from 
)

Definition at line 393 of file i387-tdep.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines