gdb: fix python/lib/gdb/__init__.py formatting
[deliverable/binutils-gdb.git] / gdb / nios2-tdep.c
index 9f167fe05bf4d30d478ba23072f95056fb4015fd..8fd3695da2d251ff9be139c31d75e6c8160fd1cb 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for Nios II, for GDB.
-   Copyright (C) 2012-2020 Free Software Foundation, Inc.
+   Copyright (C) 2012-2021 Free Software Foundation, Inc.
    Contributed by Peter Brookes (pbrookes@altera.com)
    and Andrew Draper (adraper@altera.com).
    Contributed by Mentor Graphics, Inc.
@@ -249,15 +249,15 @@ nios2_setup_default (struct nios2_unwind_cache *cache)
   int i;
 
   for (i = 0; i < NIOS2_NUM_REGS; i++)
-  {
-    /* All registers start off holding their previous values.  */
-    cache->reg_value[i].reg    = i;
-    cache->reg_value[i].offset = 0;
-
-    /* All registers start off not saved.  */
-    cache->reg_saved[i].basereg = -1;
-    cache->reg_saved[i].addr    = 0;
-  }
+    {
+      /* All registers start off holding their previous values.  */
+      cache->reg_value[i].reg    = i;
+      cache->reg_value[i].offset = 0;
+
+      /* All registers start off not saved.  */
+      cache->reg_saved[i].basereg = -1;
+      cache->reg_saved[i].addr    = 0;
+    }
 }
 
 /* Initialize the unwind cache.  */
@@ -1244,16 +1244,16 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
       enum branch_condition cond;
 
       if (pc == current_pc)
-      {
-       /* When we reach the current PC we must save the current
-          register state (for the backtrace) but keep analysing
-          because there might be more to find out (eg. is this an
-          exception handler).  */
-       memcpy (temp_value, value, sizeof (temp_value));
-       value = temp_value;
-       if (nios2_debug)
-         fprintf_unfiltered (gdb_stdlog, "*");
-      }
+       {
+         /* When we reach the current PC we must save the current
+            register state (for the backtrace) but keep analysing
+            because there might be more to find out (eg. is this an
+            exception handler).  */
+         memcpy (temp_value, value, sizeof (temp_value));
+         value = temp_value;
+         if (nios2_debug)
+           fprintf_unfiltered (gdb_stdlog, "*");
+       }
 
       op = nios2_fetch_insn (gdbarch, pc, &insn);
 
@@ -1375,7 +1375,7 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
          /* ORHI  rb, ra, uimm   (also used for MOVHI) */
          if (rb != 0)
            {
-             value[rb].reg    = (value[ra].reg == 0) ? 0 : -1;
+             value[rb].reg    = (value[ra].reg == 0) ? 0 : -1;
              value[rb].offset = value[ra].offset | (uimm << 16);
            }
        }
This page took 0.025656 seconds and 4 git commands to generate.