[PowerPC] Fix indentation in arch/ppc-linux-common.c
[deliverable/binutils-gdb.git] / gdb / csky-tdep.c
index 997ca93288b36d096a0fd9548f1a35205a9c438e..f843732310637ce72b38eedfa4466522dab7d8bb 100644 (file)
@@ -1103,8 +1103,8 @@ csky_analyze_prologue (struct gdbarch *gdbarch,
                                          "csky: found stack adjustment of"
                                          " 0x%x bytes.\n", adjust);
                      fprintf_unfiltered (gdb_stdlog,
-                                         "csky: skipping to new address "
-                                         "0x%lx\n", addr);
+                                         "csky: skipping to new address %s\n",
+                                         core_addr_to_string_nz (addr));
                      fprintf_unfiltered (gdb_stdlog,
                                          "csky: continuing\n");
                    }
@@ -1205,7 +1205,6 @@ csky_analyze_prologue (struct gdbarch *gdbarch,
          else if (CSKY_16_IS_LRW4 (insn) || CSKY_16_IS_MOVI4 (insn))
            {
              int adjust = 0;
-             int offset = 0;
              unsigned int insn2;
 
              if (csky_debug)
@@ -1239,7 +1238,7 @@ csky_analyze_prologue (struct gdbarch *gdbarch,
                  fprintf_unfiltered (gdb_stdlog,
                                      "csky: looking for r4 adjusters...\n");
                }
-             offset = 2;
+             int offset = 2;
              insn_len = csky_get_insn (gdbarch, addr + offset, &insn2);
              while (CSKY_IS_R4_ADJUSTER (insn2))
                {
@@ -1415,8 +1414,8 @@ csky_analyze_prologue (struct gdbarch *gdbarch,
                                          "found stack adjustment of 0x%x"
                                          " bytes.\n", adjust);
                      fprintf_unfiltered (gdb_stdlog, "csky: "
-                                         "skipping to new address 0x%lx\n",
-                                         addr);
+                                         "skipping to new address %s\n",
+                                         core_addr_to_string_nz (addr));
                      fprintf_unfiltered (gdb_stdlog, "csky: continuing\n");
                    }
                  continue;
@@ -1609,7 +1608,7 @@ csky_memory_insert_breakpoint (struct gdbarch *gdbarch,
 
   /* Sanity-check bp_address.  */
   if (bp_tgt->reqstd_address % 2)
-    warning (_("Invalid breakpoint address 0x%x is an odd number.\n"),
+    warning (_("Invalid breakpoint address 0x%x is an odd number."),
             (unsigned int) bp_tgt->reqstd_address);
   scoped_restore restore_memory
     = make_scoped_restore_show_memory_breakpoints (1);
This page took 0.025413 seconds and 4 git commands to generate.