summaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2010-09-10 16:17:11 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2010-09-10 16:17:11 +0000
commitf0693f918e2626ad6f0aadec0178a72b6cc1eac5 (patch)
tree52af33c8b4dc2331a640914a35339934e707d762 /gdb/xtensa-tdep.c
parent172fd2400ce2a6e40daf416d344bcd8b97b4467c (diff)
downloadgdb-f0693f918e2626ad6f0aadec0178a72b6cc1eac5.tar.gz
* hppa-tdep.c (unwind_command): Use host_address_to_string function
to display a host address. * monitor.c (monitor_read_memory): Likewise. * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index dca12befb66..e09a90e08b6 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -1636,8 +1636,9 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch,
{
struct value *arg = args[i];
struct type *arg_type = check_typedef (value_type (arg));
- fprintf_unfiltered (gdb_stdlog, "%2d: 0x%lx %3d ",
- i, (unsigned long) arg, TYPE_LENGTH (arg_type));
+ fprintf_unfiltered (gdb_stdlog, "%2d: %s %3d ", i,
+ host_address_to_string (arg),
+ TYPE_LENGTH (arg_type));
switch (TYPE_CODE (arg_type))
{
case TYPE_CODE_INT:
@@ -1650,8 +1651,8 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch,
fprintf_unfiltered (gdb_stdlog, "%3d", TYPE_CODE (arg_type));
break;
}
- fprintf_unfiltered (gdb_stdlog, " 0x%lx\n",
- (unsigned long) value_contents (arg));
+ fprintf_unfiltered (gdb_stdlog, " %s\n",
+ host_address_to_string (value_contents (arg)));
}
}