From 41d041d67127783bcb817154c71354e26dbef6d0 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 28 Sep 2003 13:35:44 +0000 Subject: * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add regcache argument and reverse the order of the other two arguments. Remove local regcache variable. Determine architecture from REGCACHE. Update comments. * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and reverse the order of the other two arguments. Remove local regcache variable. Determine architecture from REGCACHE. Update comments. * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust prototypes. Update comments. * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust comment. * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers): Update. * go32-nat.c (fetch_register, go32_fetch_registers): Update. * i386-interix-nat.c (supply_fpregset): Update. * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update. * i386-nto-tdep.c (i386nto_supply_fpregset): Update. * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update. * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update. * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers): Update. * i386obsd-tdep.c (fetch_core_registers): Update. * i386v4-nat.c (supply_fpregset): Update. * x86-64-linux-nat.c (supply_fpregset): Update. * x86-64-linux-tdep.c (fetch_core_registers): Update. --- gdb/i387-tdep.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'gdb/i387-tdep.h') diff --git a/gdb/i387-tdep.h b/gdb/i387-tdep.h index 41e695b..377e17a 100644 --- a/gdb/i387-tdep.h +++ b/gdb/i387-tdep.h @@ -23,9 +23,10 @@ #define I387_TDEP_H struct gdbarch; -struct ui_file; struct frame_info; +struct regcache; struct type; +struct ui_file; /* Because the number of general-purpose registers is different for AMD64, the floating-point registers and SSE registers get shifted. @@ -73,11 +74,12 @@ extern void i387_value_to_register (struct frame_info *frame, int regnum, #define I387_SIZEOF_FSAVE 108 #define I387_SIZEOF_FXSAVE 512 -/* Fill register REGNUM in GDB's register cache with the appropriate - value from *FSAVE. This function masks off any of the reserved - bits in *FSAVE. */ +/* Fill register REGNUM in REGCACHE with the appropriate value from + *FSAVE. This function masks off any of the reserved bits in + *FSAVE. */ -extern void i387_supply_fsave (const void *fsave, int regnum); +extern void i387_supply_fsave (struct regcache *regcache, int regnum, + const void *fsave); /* Fill register REGNUM (if it is a floating-point register) in *FSAVE with the value in GDB's register cache. If REGNUM is -1, do this @@ -86,11 +88,12 @@ extern void i387_supply_fsave (const void *fsave, int regnum); extern void i387_fill_fsave (void *fsave, int regnum); -/* Fill register REGNUM in GDB's register cache with the appropriate +/* Fill register REGNUM in REGCACHE with the appropriate floating-point or SSE register value from *FXSAVE. This function masks off any of the reserved bits in *FXSAVE. */ -extern void i387_supply_fxsave (const void *fxsave, int regnum); +extern void i387_supply_fxsave (struct regcache *regcache, int regnum, + const void *fxsave); /* Fill register REGNUM (if it is a floating-point or SSE register) in *FXSAVE with the value in GDB's register cache. If REGNUM is -1, do -- cgit v1.1