]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS: Apply coding guidelines: indentation
authorMilica Matic <milica.matic@htecgroup.com>
Sun, 23 Feb 2025 16:06:04 +0000 (16:06 +0000)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Sun, 23 Feb 2025 16:06:42 +0000 (16:06 +0000)
Format mips-tdep.c code as described on links:

https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards
https://www.gnu.org/prep/standards/standards.html#Comments

correcting indentation as required.

Approved-by: Kevin Buettner <kevinb@redhat.com>
Approved-by: Maciej W. Rozycki <macro@orcam.me.uk>
gdb/mips-tdep.c

index 4a5a390b998de71c4d7dc6f7b31664f9e7adb221..93f8cd0263ac3f81d034ca4951dd4b06c5c85a27 100644 (file)
@@ -1570,7 +1570,7 @@ mips_insn_size (enum mips_isa isa, ULONGEST insn)
       else
        return MIPS_INSN16_SIZE;
     case ISA_MIPS:
-       return MIPS_INSN32_SIZE;
+      return MIPS_INSN32_SIZE;
     }
   internal_error (_("invalid ISA"));
 }
@@ -2049,27 +2049,27 @@ micromips_next_pc (struct regcache *regcache, CORE_ADDR pc)
        case 0x1d: /* JALS: bits 011101 */
        case 0x35: /* J: bits 110101 */
        case 0x3d: /* JAL: bits 111101 */
-           pc = ((pc | 0x7fffffe) ^ 0x7fffffe) | (b0s26_imm (insn) << 1);
+         pc = ((pc | 0x7fffffe) ^ 0x7fffffe) | (b0s26_imm (insn) << 1);
          break;
 
        case 0x25: /* BEQ: bits 100101 */
-           if (regcache_raw_get_signed (regcache, b0s5_reg (insn >> 16))
-               == regcache_raw_get_signed (regcache, b5s5_reg (insn >> 16)))
-             pc += micromips_relative_offset16 (insn);
-           else
-             pc += micromips_pc_insn_size (gdbarch, pc);
+         if (regcache_raw_get_signed (regcache, b0s5_reg (insn >> 16))
+             == regcache_raw_get_signed (regcache, b5s5_reg (insn >> 16)))
+           pc += micromips_relative_offset16 (insn);
+         else
+           pc += micromips_pc_insn_size (gdbarch, pc);
          break;
 
        case 0x2d: /* BNE: bits 101101 */
          if (regcache_raw_get_signed (regcache, b0s5_reg (insn >> 16))
-               != regcache_raw_get_signed (regcache, b5s5_reg (insn >> 16)))
-             pc += micromips_relative_offset16 (insn);
+             != regcache_raw_get_signed (regcache, b5s5_reg (insn >> 16)))
+           pc += micromips_relative_offset16 (insn);
          else
-             pc += micromips_pc_insn_size (gdbarch, pc);
+           pc += micromips_pc_insn_size (gdbarch, pc);
          break;
 
        case 0x3c: /* JALX: bits 111100 */
-           pc = ((pc | 0xfffffff) ^ 0xfffffff) | (b0s26_imm (insn) << 2);
+         pc = ((pc | 0xfffffff) ^ 0xfffffff) | (b0s26_imm (insn) << 2);
          break;
        }
       break;
@@ -3064,7 +3064,7 @@ micromips_scan_prologue (struct gdbarch *gdbarch,
                  && dreg == MIPS_SP_REGNUM && sreg == MIPS_SP_REGNUM
                  && treg == 3)
                                /* (D)SUBU $sp, $v1 */
-                   sp_adj = v1_off;
+               sp_adj = v1_off;
              else if (op != 0x150
                                /* ADDU: bits 000000 00101010000 */
                                /* DADDU: bits 010110 00101010000 */