]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-04-20 David S. Miller <davem@redhat.com>
authorDavid S. Miller <davem@redhat.com>
Sun, 21 Apr 2002 05:34:06 +0000 (05:34 +0000)
committerDavid S. Miller <davem@redhat.com>
Sun, 21 Apr 2002 05:34:06 +0000 (05:34 +0000)
* sparc-nat.c (store-inferior_registers): Fix ambiguous else.

gdb/ChangeLog
gdb/sparc-nat.c

index 50ca90d5905698de44e42a9fc582d6bd0453762d..c70041d2c74316c1b4aa48e5a5af3567fe2aec1b 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-20  David S. Miller  <davem@redhat.com>
+
+       * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
+
 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
 
        * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
index 7069c3a9ce314b78a0d4bdd73a67a360cadc06b3..e892fe8fbda13478d0c314653454c57c0892af01 100644 (file)
@@ -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)