aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-procfs.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:30:45 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:30:45 +0000
commit468e3d51268b65763ec2df63146968944c8cc607 (patch)
tree5ee66afbf7357887b7da616252916bc3378e6489 /gdb/nto-procfs.c
parent4e3269e3f1da68dc6a5e3d36630cf8a833e935d6 (diff)
downloadgdb-468e3d51268b65763ec2df63146968944c8cc607.zip
gdb-468e3d51268b65763ec2df63146968944c8cc607.tar.gz
gdb-468e3d51268b65763ec2df63146968944c8cc607.tar.bz2
* i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
Add REGCACHE parameter. Use it instead of current_regcache. (i386nto_supply_regset): Add REGCACHE parameter, pass it to i386nto_supply_gregset and i386nto_supply_fpregset. (i386nto_regset_fill): Add REGCACHE parameter; use it instead of current_regcache. * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to nto_supply_ helper functions. (procfs_store_registers): Pass current_regcache to nto_regset_fill. * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter. * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to supply_greget, supply_fpregset, supply_altregset, supply_regset, and regset_fill member function pointers. (nto_dummy_supply_regset): Adapt prototype.
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r--gdb/nto-procfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index bd4cfe9..8140840 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -727,13 +727,13 @@ procfs_fetch_registers (int regno)
procfs_set_thread (inferior_ptid);
if (devctl (ctl_fd, DCMD_PROC_GETGREG, &reg, sizeof (reg), &regsize) == EOK)
- nto_supply_gregset ((char *) &reg.greg);
+ nto_supply_gregset (current_regcache, (char *) &reg.greg);
if (devctl (ctl_fd, DCMD_PROC_GETFPREG, &reg, sizeof (reg), &regsize)
== EOK)
- nto_supply_fpregset ((char *) &reg.fpreg);
+ nto_supply_fpregset (current_regcache, (char *) &reg.fpreg);
if (devctl (ctl_fd, DCMD_PROC_GETALTREG, &reg, sizeof (reg), &regsize)
== EOK)
- nto_supply_altregset ((char *) &reg.altreg);
+ nto_supply_altregset (current_regcache, (char *) &reg.altreg);
}
/* Copy LEN bytes to/from inferior's memory starting at MEMADDR
@@ -1173,7 +1173,7 @@ procfs_store_registers (int regno)
if (dev_set == -1)
continue;
- if (nto_regset_fill (regset, (char *) &reg) == -1)
+ if (nto_regset_fill (current_regcache, regset, (char *) &reg) == -1)
continue;
err = devctl (ctl_fd, dev_set, &reg, regsize, 0);