From 5df97fde6194ad4cd24e90c446091b0cfea0145f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 24 May 2004 08:13:40 +0000 Subject: * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct register number in regcache_raw_collect call. (m68kbsd_collect_fpregset): Likewise. * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/m68kbsd-nat.c | 5 ++--- gdb/vaxbsd-nat.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a38ca8f..cd4b054 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2004-05-24 Mark Kettenis + * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct + register number in regcache_raw_collect call. + (m68kbsd_collect_fpregset): Likewise. + * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise. + * regset.h (struct regset): Add back `regset' member. 2004-05-23 Mark Kettenis diff --git a/gdb/m68kbsd-nat.c b/gdb/m68kbsd-nat.c index a53707c..8ee8a60 100644 --- a/gdb/m68kbsd-nat.c +++ b/gdb/m68kbsd-nat.c @@ -80,7 +80,7 @@ m68kbsd_collect_gregset (const struct regcache *regcache, for (i = M68K_D0_REGNUM; i <= M68K_PC_REGNUM; i++) { if (regnum == -1 || regnum == i) - regcache_raw_collect (regcache, regnum, regs + i * 4); + regcache_raw_collect (regcache, i, regs + i * 4); } } @@ -97,8 +97,7 @@ m68kbsd_collect_fpregset (struct regcache *regcache, for (i = M68K_FP0_REGNUM; i <= M68K_FPI_REGNUM; i++) { if (regnum == -1 || regnum == i) - regcache_raw_collect (regcache, regnum, - regs + m68kbsd_fpreg_offset (i)); + regcache_raw_collect (regcache, i, regs + m68kbsd_fpreg_offset (i)); } } diff --git a/gdb/vaxbsd-nat.c b/gdb/vaxbsd-nat.c index d3516f6..d2757c5 100644 --- a/gdb/vaxbsd-nat.c +++ b/gdb/vaxbsd-nat.c @@ -54,7 +54,7 @@ vaxbsd_collect_gregset (const struct regcache *regcache, for (i = 0; i <= VAX_NUM_REGS; i++) { if (regnum == -1 || regnum == i) - regcache_raw_collect (regcache, regnum, regs + i * 4); + regcache_raw_collect (regcache, i, regs + i * 4); } } -- cgit v1.1