aboutsummaryrefslogtreecommitdiff
path: root/gdb/i387-nat.c
AgeCommit message (Collapse)AuthorFilesLines
2002-05-11* Makefile.in (ALLDEPFILES): Remove i387-nat.c.Jason Thorpe1-335/+0
(i387-nat.o): Delete dependency list. (go32-nat.o): Change i387-nat.h to i387-tdep.h. (x86-64-linux-nat.o): Likewise. * i387-nat.c: Delete file, moving contents to... * i387-tdep.c: ...here. * i387-nat.h: Rename... * i387-tdep.h: ...to this. * go32-nat.c: Include i387-tdep.h instead of i387-nat.h. * i386-linux-nat.c: Likewise. * i386bsd-nat.c: Likewise. * i386gnu-nat.c: Likewise. * i386nbsd-nat.c: Likewise. * i386v4-nat.c: Likewise. * x86-64-linux-nat.c: Likewise. * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o. * config/i386/go32.mh (NATDEPFILES): Likewise. * config/i386/i386gnu.mh (NATDEPFILES): Likewise. * config/i386/i386sol2.mh (NATDEPFILES): Likewise. * config/i386/i386v42mp.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/nbsd.mh (NATDEPFILES): Likewise. * config/i386/nbsdelf.mh (NATDEPFILES): Likewise. * config/i386/obsd.mh (NATDEPFILES): Likewise. * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2002-05-11* i387-nat.c (i387_supply_register, i387_fill_fsave,Mark Kettenis1-47/+31
i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the right thing on architectures with different endianness and/or integer sizes.
2002-05-06* i387-nat.c (i387_fill_fsave): Use regcache_collect.Mark Kettenis1-10/+15
(i387_fill_fxsave): Likewise.
2001-12-27* config/i386/tm-i386.h (FP7_REGNUM, FIRST_FPU_CTRL_REGNUM,Mark Kettenis1-18/+18
FCTRL_REGNUM, FPC_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM, LAST_FPU_CTRL_REGNUM, XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM, IS_FP_REGNUM, IS_SSE_REGNUM): Removed. (FP0_REGNUM): Define conditionally depending on HAVE_I387_REGS. (SIZEOF_FPU_CTRL_REGS): Hardcode value. * i386-tdep.h (struct gdbarch_tdep): Change such that it contains a single member `num_xmm_regs'. (FPC_REGNUM): New macro. (FIRST_FPU_REGNUM, LAST_FPU_REGNUM, FISRT_XMM_REGNUM, LAST_XMM_REGNUM, MXCSR_REGNUM, FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): Removed. (FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Define unconditionally. Change macros to match the comment describing the register layout. (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM): New macros. (FP_REGNUM_P, FPC_REGNUM_P, SSE_REGNUM_P): New macros. (IS_FP_REGNUM, IS_FPU_CTRL_REGNUM, IS_SSE_REGNUM): Make obsolete, unconditionally define in terms of FP_REGNUM_P, FPC_REGNUM_P and SSE_REGNUM_P). (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM): Make obsolete, unconditionally define in terms of FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM. * i386-tdep.c (i386_gdbarch_init): Initialize `num_xmm_regs' member of `struct gdbarch_tdep'. * x86-64-tdep.c (i386_gdbarch_init): Change initialization of `struct gdbarch_tdep'. * i387-nat.c (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM): Replace with FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM and FOOFF_REGNUM. Use FPC_REGNUM instead of FIRST_FPU_CTRL_REGNUM. Use XMM0_REGNUM instead of LAST_FPU_CTRL_REGNUM.
2001-12-13 * i387-nat.c (i387_fill_fxsave): Change type of ``val'' from charKevin Buettner1-2/+2
to short so that we don't memcpy() beyond the end of this buffer. Also, change shift value used in computing val to account for the fact that only eight bits are used.
2001-11-12* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.Mark Kettenis1-3/+0
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h". * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed. (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
2001-09-21* i386-tdep.h: New file.Jiri Smid1-0/+4
* i387-nat.c: Include i386-tdep.h when multiarch. * i387-tdep.c: Ditto.
2001-04-27 (Changes from Kevin Buettner, with minor update by Don Howard.)Don Howard1-14/+16
* i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix typos in which hexadecimal constants were really intended to be binary constants. (i387_tag): Swap logic regarding zero vs non-zero exponents.
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-17* i387-nat.c: Include "i387-nat.h". Use regnum instead of regnoMark Kettenis1-32/+42
consistently for parameter names. Fix comments accordingly. (i387_supply_register): New function. (i387_supply_fsave): Implement using i387_supply_register. * i387-nat.h: Use regnum instead of regno consistently for parameter names. Fix comments accordingly. (i387_supply_register): New prototype.
2000-08-10* i387-nat.h (i387_supply_fsave, i387_fill_fsave): Make extern.Mark Kettenis1-2/+209
(i387_supply_fxsave, i387_fill_fxsave): New prototypes. * i387-nat.c (i387_supply_fsave): Declare `val' as `unsigned int'. (fxsave_offset): New variable. (FXSAVE_ADDR): New macro. (i387_supply_fxsave, i387_fill_fxsave, i387_tag): New functions.
2000-05-23* i387-nat.h, i387-nat.c: New files.Mark Kettenis1-0/+125