aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-02-15 10:05:56 +0000
committerYao Qi <yao.qi@linaro.org>2016-02-15 10:05:56 +0000
commit0a0da55626b632a8b8beb6c7878b866861e5daee (patch)
tree6e6915e9ea443c50a5f33bb7ce4110393a3507d5 /gdb
parentcbdf6768d9d25fbbe5e579818d6f5ddb9a992eb8 (diff)
downloadgdb-0a0da55626b632a8b8beb6c7878b866861e5daee.zip
gdb-0a0da55626b632a8b8beb6c7878b866861e5daee.tar.gz
gdb-0a0da55626b632a8b8beb6c7878b866861e5daee.tar.bz2
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 <yao.qi@linaro.org> * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/aarch64-tdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f297ff..7cb4b0a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index 798a1b7..77155ef 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);
}