From 0a0da55626b632a8b8beb6c7878b866861e5daee Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 15 Feb 2016 10:05:56 +0000 Subject: [PATCH] Don't print 0x for core_addr_to_string_nz 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 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x". --- gdb/ChangeLog | 4 ++++ gdb/aarch64-tdep.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f297ff9f73..7cb4b0a6314 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-02-15 Yao Qi + + * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x". + 2016-02-12 Yao Qi * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 798a1b719e0..77155ef2cc8 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -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); } -- 2.30.2