diff options
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 |