aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-11-14 19:29:46 +0000
committerDaniel Jacobowitz <drow@false.org>2004-11-14 19:29:46 +0000
commit2fdf551c88da3164d30fba19ea807196f96ff69c (patch)
tree960463436acd6bec56c9a94aaf379f54b8d85d7f /gdb/mips-linux-tdep.c
parent98754800c6c7fb22d8fe07298ee5374a17098d33 (diff)
downloadgdb-2fdf551c88da3164d30fba19ea807196f96ff69c.zip
gdb-2fdf551c88da3164d30fba19ea807196f96ff69c.tar.gz
gdb-2fdf551c88da3164d30fba19ea807196f96ff69c.tar.bz2
* Makefile.in (mips-linux-tdep.o): Update dependencies.
* mips-linux-tdep.c: Include "regcache.h". (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
Diffstat (limited to 'gdb/mips-linux-tdep.c')
-rw-r--r--gdb/mips-linux-tdep.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index 49620ab..afd8f5d 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -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)
{