aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-09-10 16:17:14 +0000
committerPierre Muller <muller@sourceware.org>2010-09-10 16:17:14 +0000
commit3329c4b5af72fec17d4ac07f49edf9c8cfb6f23b (patch)
tree24d27ec3b4ab57a9b614ed52ae40b6f2ec82e064 /gdb/xtensa-tdep.c
parent5e8db3985c2f510fead393fe1feefcc93e2031de (diff)
downloadgdb-3329c4b5af72fec17d4ac07f49edf9c8cfb6f23b.zip
gdb-3329c4b5af72fec17d4ac07f49edf9c8cfb6f23b.tar.gz
gdb-3329c4b5af72fec17d4ac07f49edf9c8cfb6f23b.tar.bz2
* 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 dca12be..e09a90e0 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)));
}
}