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.
This commit is contained in:
parent
d911860251
commit
a74ce742ff
7 changed files with 54 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue