diff options
author | Pierre Muller <muller@sourceware.org> | 2010-09-10 16:17:14 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-09-10 16:17:14 +0000 |
commit | 3329c4b5af72fec17d4ac07f49edf9c8cfb6f23b (patch) | |
tree | 24d27ec3b4ab57a9b614ed52ae40b6f2ec82e064 | |
parent | 5e8db3985c2f510fead393fe1feefcc93e2031de (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 2 | ||||
-rw-r--r-- | gdb/monitor.c | 8 | ||||
-rw-r--r-- | gdb/xtensa-tdep.c | 9 |
4 files changed, 18 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dfa62b6..70706c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> + * 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. + +2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> + * coffread.c (struct coff_symbol): Change c_value type from `long' to `CORE_ADDRESS' as it might contain target addresses. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index a0665ef..bb8e149 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -2506,7 +2506,7 @@ unwind_command (char *exp, int from_tty) return; } - printf_unfiltered ("unwind_table_entry (0x%lx):\n", (unsigned long)u); + printf_unfiltered ("unwind_table_entry (%s):\n", host_address_to_string (u)); printf_unfiltered ("\tregion_start = %s\n", hex_string (u->region_start)); gdb_flush (gdb_stdout); diff --git a/gdb/monitor.c b/gdb/monitor.c index 95e6a63..4f9ff55 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -1835,8 +1835,9 @@ monitor_read_memory (CORE_ADDR memaddr, char *myaddr, int len) return 0; } - monitor_debug ("MON read block ta(%s) ha(%lx) %d\n", - paddress (target_gdbarch, memaddr), (long) myaddr, len); + monitor_debug ("MON read block ta(%s) ha(%s) %d\n", + paddress (target_gdbarch, memaddr), + host_address_to_string (myaddr), len); if (current_monitor->flags & MO_ADDR_BITS_REMOVE) memaddr = gdbarch_addr_bits_remove (target_gdbarch, memaddr); @@ -1924,7 +1925,8 @@ monitor_read_memory (CORE_ADDR memaddr, char *myaddr, int len) p += strlen (current_monitor->getmem.resp_delim); #endif } - monitor_debug ("MON scanning %d ,%lx '%s'\n", len, (long) p, p); + monitor_debug ("MON scanning %d ,%s '%s'\n", len, + host_address_to_string (p), p); if (current_monitor->flags & MO_GETMEM_16_BOUNDARY) { char c; 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))); } } |