diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 08:13:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 08:13:40 +0000 |
commit | 5df97fde6194ad4cd24e90c446091b0cfea0145f (patch) | |
tree | a2f3e479b0e0f06282a6138abbfaa2efa72e662b /gdb/m68kbsd-nat.c | |
parent | 7d7e6bc475090a8356addff3b848dada0135690b (diff) | |
download | gdb-5df97fde6194ad4cd24e90c446091b0cfea0145f.zip gdb-5df97fde6194ad4cd24e90c446091b0cfea0145f.tar.gz gdb-5df97fde6194ad4cd24e90c446091b0cfea0145f.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/m68kbsd-nat.c')
-rw-r--r-- | gdb/m68kbsd-nat.c | 5 |
1 files changed, 2 insertions, 3 deletions
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)); } } |