aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2004-10-13 21:40:41 +0000
committerKevin Buettner <kevinb@redhat.com>2004-10-13 21:40:41 +0000
commite0e25c6c2bd21fee04b49978376569b720f5d25c (patch)
treed5bb11a16588a71b820e661f7340aa027e46ae6b /gdb
parentd11e72cb08d332e332835c65041a34fdce15d3cb (diff)
downloadgdb-e0e25c6c2bd21fee04b49978376569b720f5d25c.zip
gdb-e0e25c6c2bd21fee04b49978376569b720f5d25c.tar.gz
gdb-e0e25c6c2bd21fee04b49978376569b720f5d25c.tar.bz2
* ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
references to deprecated_registers[] with equivalent code.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ia64-linux-nat.c12
2 files changed, 8 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e175900..57154ed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-10-13 Kevin Buettner <kevinb@redhat.com>
+ * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
+ references to deprecated_registers[] with equivalent code.
+
+2004-10-13 Kevin Buettner <kevinb@redhat.com>
+
* rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
``deprecated_registers'' with equivalent code. Use gdb_assert()
instead of explicit test and print statement.
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index 3a61730..285567c 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -418,8 +418,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
#define COPY_REG(_idx_,_regi_) \
if ((regno == -1) || regno == _regi_) \
- memcpy (regp + _idx_, &deprecated_registers[DEPRECATED_REGISTER_BYTE (_regi_)], \
- register_size (current_gdbarch, _regi_))
+ regcache_raw_collect (current_regcache, _regi_, regp + _idx_)
for (regi = IA64_GR0_REGNUM; regi <= IA64_GR31_REGNUM; regi++)
{
@@ -476,17 +475,12 @@ void
fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
- char *to;
- char *from;
for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++)
{
if ((regno == -1) || (regno == regi))
- {
- from = (char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (regi)];
- to = (char *) &((*fpregsetp)[regi - IA64_FR0_REGNUM]);
- memcpy (to, from, register_size (current_gdbarch, regi));
- }
+ regcache_raw_collect (current_regcache, regi,
+ &((*fpregsetp)[regi - IA64_FR0_REGNUM]));
}
}