This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Print 'top' in hex in debug log.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 4 May 2012 19:04:02 +0800
- Subject: [obv] Print 'top' in hex in debug log.
Nowadays, the `top' is printed in decimal but with a prefix '0x'.
The fix can be either removing prefix '0x' or printing `top' in
hex value. This patch chooses latter. It is obvious, and I'll
commit it later today.
gdb/gdbserver:
2012-05-04 Yao Qi <yao@codesourcery.com>
* ax.c (gdb_eval_agent_expr): Print `top' in hex.
---
gdb/gdbserver/ax.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/ax.c b/gdb/gdbserver/ax.c
index cc4d32f..36741ee 100644
--- a/gdb/gdbserver/ax.c
+++ b/gdb/gdbserver/ax.c
@@ -1202,6 +1202,6 @@ gdb_eval_agent_expr (struct regcache *regcache,
}
ax_debug ("Op %s -> sp=%d, top=0x%s",
- gdb_agent_op_name (op), sp, pulongest (top));
+ gdb_agent_op_name (op), sp, phex_nz (top, 0));
}
}
--
1.7.0.4