Don't print 0x for core_addr_to_string_nz
authorYao Qi <yao.qi@linaro.org>
Mon, 15 Feb 2016 10:05:56 +0000 (10:05 +0000)
committerYao Qi <yao.qi@linaro.org>
Mon, 15 Feb 2016 10:05:56 +0000 (10:05 +0000)
core_addr_to_string_nz returns string which has "0x" prefix, so don't
need to print "0x" again.  This patch is to remove the "0x".

gdb:

2016-02-15  Yao Qi  <yao.qi@linaro.org>

* aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".

gdb/ChangeLog
gdb/aarch64-tdep.c

index 1f297ff9f734bf7da2392fc0c44e2a9264ec0f5a..7cb4b0a63142cfb55d5072465083514b5f7d15fd 100644 (file)
@@ -1,3 +1,7 @@
+2016-02-15  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
+
 2016-02-12  Yao Qi  <yao.qi@linaro.org>
 
        * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
index 798a1b719e0d20eee45f9a6b6935e05faaebe666..77155ef2cc8bfd9c5a5f86dbff5335970f959e23 100644 (file)
@@ -299,7 +299,7 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
              if (aarch64_debug)
                {
                  debug_printf ("aarch64: prologue analysis gave up "
-                               "addr=0x%s opcode=0x%x (orr x register)\n",
+                               "addr=%s opcode=0x%x (orr x register)\n",
                                core_addr_to_string_nz (start), insn);
                }
              break;
@@ -365,7 +365,7 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
        {
          if (aarch64_debug)
            {
-             debug_printf ("aarch64: prologue analysis gave up addr=0x%s"
+             debug_printf ("aarch64: prologue analysis gave up addr=%s"
                            " opcode=0x%x\n",
                            core_addr_to_string_nz (start), insn);
            }