summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-04-23 01:24:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-04-23 01:24:39 +0200
commitc9aae1b6dadccfe81f919a2cc1eb393b1fda9b03 (patch)
tree9bee4bad5fee778032955afc7f69a58c5dddfa42
parentfabef8ce0ab00a2a6c92e100075dd8813af14998 (diff)
Prepend 0x to hexadecimal offset
* i386/i386/db_trace.c (db_i386_stack_trace): Prepend 0x to hexadecimal offset.
-rw-r--r--i386/i386/db_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c
index cdebde1..ec33859 100644
--- a/i386/i386/db_trace.c
+++ b/i386/i386/db_trace.c
@@ -488,7 +488,7 @@ db_i386_stack_trace(
db_printf("...");
db_printf(")");
if (offset) {
- db_printf("+%x", offset);
+ db_printf("+0x%x", offset);
}
if (db_line_at_pc(0, &filename, &linenum, callpc)) {
db_printf(" [%s", filename);