summaryrefslogtreecommitdiff
path: root/gdb/sparc-nat.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-04-21 05:34:06 +0000
committerDavid S. Miller <davem@redhat.com>2002-04-21 05:34:06 +0000
commitfb90bf297493ed7e4e7992306852e6230509dfb2 (patch)
treee3fdd03363d740b7c3a8c7d66c91b7e03af0eb15 /gdb/sparc-nat.c
parent6b97a375d0409ad09329bd35e94c37355314db6c (diff)
downloadgdb-fb90bf297493ed7e4e7992306852e6230509dfb2.tar.gz
2002-04-20 David S. Miller <davem@redhat.com>
* sparc-nat.c (store-inferior_registers): Fix ambiguous else.
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r--gdb/sparc-nat.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 7069c3a9ce3..e892fe8fbda 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -155,21 +155,23 @@ store_inferior_registers (int regno)
/* First decide which pieces of machine-state we need to modify.
Default for regno == -1 case is all pieces. */
if (regno >= 0)
- if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32)
- {
- wanna_store = FP_REGS;
- }
- else
- {
- if (regno == SP_REGNUM)
- wanna_store = INT_REGS + STACK_REGS;
- else if (regno < L0_REGNUM || regno > I7_REGNUM)
- wanna_store = INT_REGS;
- else if (regno == FPS_REGNUM)
+ {
+ if (FP0_REGNUM <= regno && regno < FP0_REGNUM + 32)
+ {
wanna_store = FP_REGS;
- else
- wanna_store = STACK_REGS;
- }
+ }
+ else
+ {
+ if (regno == SP_REGNUM)
+ 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;
+ }
+ }
/* See if we're forcing the stores to happen now, or deferring. */
if (regno == -2)