* Makefile.in (mips-linux-tdep.o): Update dependencies.
authorDaniel Jacobowitz <drow@false.org>
Sun, 14 Nov 2004 19:29:46 +0000 (19:29 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 14 Nov 2004 19:29:46 +0000 (19:29 +0000)
* mips-linux-tdep.c: Include "regcache.h".
(fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.

gdb/ChangeLog
gdb/Makefile.in
gdb/mips-linux-tdep.c

index e20958a8844bcb08a5b14895b156316e20c4093b..30fe24a2fbca7453b39067c5aea762c77e364b95 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-14  Daniel Jacobowitz  <dan@debian.org>
+
+       * Makefile.in (mips-linux-tdep.o): Update dependencies.
+       * mips-linux-tdep.c: Include "regcache.h".
+       (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
+
 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
 
        * Makefile.in (linux-thread-db.o): Fix typo in last change.
index 7e148c5c19d7c49f84cee86f349466e066d194d4..295f9ae3229e0d8cefe4f30c42b82ea21cd6c4f6 100644 (file)
@@ -2234,7 +2234,8 @@ mips-irix-tdep.o: mips-irix-tdep.c $(defs_h) $(osabi_h) $(elf_bfd_h)
 mips-linux-nat.o: mips-linux-nat.c $(defs_h) $(mips_tdep_h)
 mips-linux-tdep.o: mips-linux-tdep.c $(defs_h) $(gdbcore_h) $(target_h) \
        $(solib_svr4_h) $(osabi_h) $(mips_tdep_h) $(gdb_string_h) \
-       $(gdb_assert_h) $(frame_h) $(trad_frame_h) $(tramp_frame_h)
+       $(gdb_assert_h) $(frame_h) $(regcache_h) $(trad_frame_h) \
+       $(tramp_frame_h)
 mips-mdebug-tdep.o: mips-mdebug-tdep.c $(defs_h) $(frame_h) $(mips_tdep_h) \
        $(trad_frame_h) $(block_h) $(symtab_h) $(objfiles_h) $(elf_mips_h) \
        $(elf_bfd_h) $(gdb_assert_h) $(frame_unwind_h) $(frame_base_h) \
index 49620ab64294ba7ac3170f380e8c95fa6920bb2c..afd8f5dc2f5a406b8c84b8b23d25a89fdc2b7dd4 100644 (file)
@@ -28,6 +28,7 @@
 #include "gdb_string.h"
 #include "gdb_assert.h"
 #include "frame.h"
+#include "regcache.h"
 #include "trad-frame.h"
 #include "tramp-frame.h"
 
@@ -221,15 +222,13 @@ fill_fpregset (elf_fpregset_t *fpregsetp, int regno)
 
   if ((regno >= FP0_REGNUM) && (regno < FP0_REGNUM + 32))
     {
-      from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regno)];
       to = (char *) (*fpregsetp + regno - FP0_REGNUM);
-      memcpy (to, from, register_size (current_gdbarch, regno - FP0_REGNUM));
+      regcache_raw_collect (current_regcache, regno, to);
     }
   else if (regno == mips_regnum (current_gdbarch)->fp_control_status)
     {
-      from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regno)];
       to = (char *) (*fpregsetp + 32);
-      memcpy (to, from, register_size (current_gdbarch, regno));
+      regcache_raw_collect (current_regcache, regno, to);
     }
   else if (regno == -1)
     {
@@ -500,15 +499,13 @@ mips64_fill_fpregset (mips64_elf_fpregset_t *fpregsetp, int regno)
 
   if ((regno >= FP0_REGNUM) && (regno < FP0_REGNUM + 32))
     {
-      from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regno)];
       to = (char *) (*fpregsetp + regno - FP0_REGNUM);
-      memcpy (to, from, register_size (current_gdbarch, regno - FP0_REGNUM));
+      regcache_raw_collect (current_regcache, regno, to);
     }
   else if (regno == mips_regnum (current_gdbarch)->fp_control_status)
     {
-      from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regno)];
       to = (char *) (*fpregsetp + 32);
-      memcpy (to, from, register_size (current_gdbarch, regno));
+      regcache_raw_collect (current_regcache, regno, to);
     }
   else if (regno == -1)
     {
This page took 0.046082 seconds and 4 git commands to generate.