aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-11 17:48:47 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-11 17:48:47 +0000
commit00dff7538a85184b6028a5780bc08039f69d0d8e (patch)
treebbe5e843b33d97b89b136b5e41d8d3a3523345e9
parent9d719a9cf9cf1b3d69b1d0a3061cf554f4288d3f (diff)
downloadgdb-00dff7538a85184b6028a5780bc08039f69d0d8e.zip
gdb-00dff7538a85184b6028a5780bc08039f69d0d8e.tar.gz
gdb-00dff7538a85184b6028a5780bc08039f69d0d8e.tar.bz2
* m88k-nat.c (fill_gregset): Set r31 and sfip.
-rw-r--r--gdb/m88k-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m88k-nat.c b/gdb/m88k-nat.c
index 41cf842..e7c4d68 100644
--- a/gdb/m88k-nat.c
+++ b/gdb/m88k-nat.c
@@ -255,7 +255,7 @@ fill_gregset (gregsetp, regno)
register greg_t *regp = (greg_t *) gregsetp;
extern char registers[];
- for (regi = 0 ; regi < R_R31 ; regi++)
+ for (regi = 0 ; regi <= R_R31 ; regi++)
if ((regno == -1) || (regno == regi))
*(regp + regi) = *(int *) &registers[REGISTER_BYTE(regi)];
@@ -264,7 +264,7 @@ fill_gregset (gregsetp, regno)
if ((regno == -1) || (regno == SNIP_REGNUM))
*(regp + R_NIP) = *(int *) &registers[REGISTER_BYTE(SNIP_REGNUM)];
if ((regno == -1) || (regno == SFIP_REGNUM))
- *(regp + R_PSR) = *(int *) &registers[REGISTER_BYTE(PSR_REGNUM)];
+ *(regp + R_SFIP) = *(int *) &registers[REGISTER_BYTE(SFIP_REGNUM)];
if ((regno == -1) || (regno == PSR_REGNUM))
*(regp + R_PSR) = *(int *) &registers[REGISTER_BYTE(PSR_REGNUM)];
if ((regno == -1) || (regno == FPSR_REGNUM))