diff options
author | Pierre Muller <muller@sourceware.org> | 2009-04-17 15:44:28 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2009-04-17 15:44:28 +0000 |
commit | a74ce742ff4d9d7f8c207852d8b51234f661b532 (patch) | |
tree | 6c7e1c941f1cad94dab90297e625ab24b76d98f0 /gdb/gnu-nat.c | |
parent | d9118602518511148f81961bbdd632439db10a19 (diff) | |
download | gdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.zip gdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.tar.gz gdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.tar.bz2 |
ARI fix: Do not use %p, replace by call to host_address_to_string
for host pointers.
* darwin-nat.c (darwin_xfer_partial): Apply change.
* gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
* gnu-nat.h (proc_debug): Ditto.
* symmisc.c (maintenance_info_symtabs): Ditto.
(maintenance_info_psymtabs): Ditto.
* windows-nat.c (handle_load_dll): Ditto.
(handle_unload_dll, info_w32_command, handle_exception): Ditto.
* xtensa-tdep.c (xtensa_unwind_pc): Ditto.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 20b5958..157c950 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -113,7 +113,8 @@ void inf_continue (struct inf *inf); #define inf_debug(_inf, msg, args...) \ do { struct inf *__inf = (_inf); \ - debug ("{inf %d %p}: " msg, __inf->pid, __inf , ##args); } while (0) + debug ("{inf %d %s}: " msg, __inf->pid, \ + host_address_to_string (__inf) , ##args); } while (0) void proc_abort (struct proc *proc, int force); struct proc *make_proc (struct inf *inf, mach_port_t port, int tid); @@ -2490,9 +2491,9 @@ gnu_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, return 0; else { - inf_debug (gnu_current_inf, "%s %p[%d] %s %p", - write ? "writing" : "reading", (void *) memaddr, len, - write ? "<--" : "-->", myaddr); + inf_debug (gnu_current_inf, "%s %s[%d] %s %s", + write ? "writing" : "reading", paddr (memaddr), len, + write ? "<--" : "-->", host_address_to_string (myaddr)); if (write) return gnu_write_inferior (task, memaddr, myaddr, len); else |