Re-indent i387_collect_xsave.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 8 Apr 2010 22:50:34 +0000 (22:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 8 Apr 2010 22:50:34 +0000 (22:50 +0000)
gdb/ChangeLog
gdb/i387-tdep.c

index a4bd29e88a8c3a21dc8bceb96ee5065f35a7b950..0a648e5e06570a7ffd477b8876be6edec3672480 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i387-tdep.c (i387_collect_xsave): Re-indent.
+
 2010-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
index 4c32e09ce5870c809c6ee50b7b04dcab4d59b191..eac321611816b00198074451455523435292d085 100644 (file)
@@ -1033,68 +1033,68 @@ i387_collect_xsave (const struct regcache *regcache, int regnum,
          switch (regclass)
            {
            default:
-                 abort ();
-
-               case avxh:
-                 /* This is an upper YMM register.  */
-                 p = XSAVE_AVXH_ADDR (tdep, regs, regnum);
-                 if (memcmp (raw, p, 16))
-                   {
-                     xstate_bv |= I386_XSTATE_AVX;
-                     memcpy (p, raw, 16);
-                   }
-                 break;
-
-               case sse:
-                 /* This is an SSE register.  */
-                 p = FXSAVE_ADDR (tdep, regs, regnum);
-                 if (memcmp (raw, p, 16))
-                   {
-                     xstate_bv |= I386_XSTATE_SSE;
-                     memcpy (p, raw, 16);
-                   }
-                 break;
-
-               case x87:
-                 /* This is an x87 register.  */
-                 p = FXSAVE_ADDR (tdep, regs, regnum);
-                 if (memcmp (raw, p, 10))
-                   {
-                     xstate_bv |= I386_XSTATE_X87;
-                     memcpy (p, raw, 10);
-                   }
-                 break;
-               }
-           }
-
-         /* Update the corresponding bits in `xstate_bv' if any SSE/AVX
-            registers are changed.  */
-         if (xstate_bv)
-           {
-             /* The supported bits in `xstat_bv' are 1 byte.  */
-             *xstate_bv_p |= (gdb_byte) xstate_bv;
+             abort ();
 
-             switch (regclass)
+           case avxh:
+             /* This is an upper YMM register.  */
+             p = XSAVE_AVXH_ADDR (tdep, regs, regnum);
+             if (memcmp (raw, p, 16))
                {
-               default:
-                 abort ();
+                 xstate_bv |= I386_XSTATE_AVX;
+                 memcpy (p, raw, 16);
+               }
+             break;
 
-               case all:
-                 break;
+           case sse:
+             /* This is an SSE register.  */
+             p = FXSAVE_ADDR (tdep, regs, regnum);
+             if (memcmp (raw, p, 16))
+               {
+                 xstate_bv |= I386_XSTATE_SSE;
+                 memcpy (p, raw, 16);
+               }
+             break;
 
-               case x87:
-               case sse:
-               case avxh:
-                 /* Register REGNUM has been updated.  Return.  */
-                 return;
+           case x87:
+             /* This is an x87 register.  */
+             p = FXSAVE_ADDR (tdep, regs, regnum);
+             if (memcmp (raw, p, 10))
+               {
+                 xstate_bv |= I386_XSTATE_X87;
+                 memcpy (p, raw, 10);
                }
+             break;
            }
-         else
+       }
+
+      /* Update the corresponding bits in `xstate_bv' if any SSE/AVX
+        registers are changed.  */
+      if (xstate_bv)
+       {
+         /* The supported bits in `xstat_bv' are 1 byte.  */
+         *xstate_bv_p |= (gdb_byte) xstate_bv;
+
+         switch (regclass)
            {
-             /* Return if REGNUM isn't changed.  */
-             if (regclass != all)
-               return;
+           default:
+             abort ();
+
+           case all:
+             break;
+
+           case x87:
+           case sse:
+           case avxh:
+             /* Register REGNUM has been updated.  Return.  */
+             return;
            }
+       }
+      else
+       {
+         /* Return if REGNUM isn't changed.  */
+         if (regclass != all)
+           return;
+       }
     }
 
   /* Only handle x87 control registers.  */
@@ -1113,7 +1113,7 @@ i387_collect_xsave (const struct regcache *regcache, int regnum,
            if (i == I387_FOP_REGNUM (tdep))
              {
                /* The opcode occupies only 11 bits.  Make sure we
-                   don't touch the other bits.  */
+                  don't touch the other bits.  */
                buf[1] &= ((1 << 3) - 1);
                buf[1] |= ((FXSAVE_ADDR (tdep, regs, i))[1] & ~((1 << 3) - 1));
              }