summaryrefslogtreecommitdiff
path: root/gdb/sparc-nat.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1994-01-25 04:54:05 +0000
committerJohn Gilmore <gnu@cygnus>1994-01-25 04:54:05 +0000
commit2ba6182bbc59b54926cfb2c462888ddad74e30bf (patch)
tree70502bb4c19033119c9dafe60d4ecc5515767542 /gdb/sparc-nat.c
parentffbec2131291f8bf9da6ca1c71efef0555b1982d (diff)
downloadbinutils-gdb-2ba6182bbc59b54926cfb2c462888ddad74e30bf.tar.gz
* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Clean up the changes of 11 Jan, as recommended by Peter Schauer.
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r--gdb/sparc-nat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 735f3db8104..3f2768307ce 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -1,5 +1,5 @@
-/* Functions specific to running gdb native on a Sun 4 running sunos4.
- Copyright (C) 1989, 1992, Free Software Foundation, Inc.
+/* Functions specific to running gdb native on a SPARC running SunOS4.
+ Copyright 1989, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GDB.
@@ -85,12 +85,13 @@ fetch_inferior_registers (regno)
all the regs every time it is called! FIXME. */
register_valid[WIM_REGNUM] = 1; /* Not true yet, FIXME */
register_valid[TBR_REGNUM] = 1; /* Not true yet, FIXME */
- register_valid[FPS_REGNUM] = 1; /* Not true yet, FIXME */
register_valid[CPS_REGNUM] = 1; /* Not true yet, FIXME */
}
/* Floating point registers */
- if (regno == -1 || (regno >= FP0_REGNUM && regno <= FP0_REGNUM + 31))
+ if (regno == -1 ||
+ regno == FPS_REGNUM ||
+ (regno >= FP0_REGNUM && regno <= FP0_REGNUM + 31))
{
if (0 != ptrace (PTRACE_GETFPREGS, inferior_pid,
(PTRACE_ARG3_TYPE) &inferior_fp_registers,
@@ -153,6 +154,8 @@ store_inferior_registers (regno)
wanna_store = INT_REGS + STACK_REGS;
else if (regno < L0_REGNUM || regno > I7_REGNUM)
wanna_store = INT_REGS;
+ else if (regno == FPS_REGNUM)
+ wanna_store = FP_REGS;
else
wanna_store = STACK_REGS;
}