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/windows-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/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index c4c5fa8..09c134c 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -740,8 +740,8 @@ handle_load_dll (void *dummy) solib_end->next = windows_make_so (dll_name, event->lpBaseOfDll); solib_end = solib_end->next; - DEBUG_EVENTS (("gdb: Loading dll \"%s\" at %p.\n", solib_end->so_name, - solib_end->lm_info->load_addr)); + DEBUG_EVENTS (("gdb: Loading dll \"%s\" at %s.\n", solib_end->so_name, + host_address_to_string (solib_end->lm_info->load_addr))); return 1; } @@ -774,7 +774,8 @@ handle_unload_dll (void *dummy) return 1; } - error (_("Error: dll starting at %p not found."), lpBaseOfDll); + error (_("Error: dll starting at %s not found."), + host_address_to_string (lpBaseOfDll)); return 0; } @@ -986,8 +987,9 @@ info_w32_command (char *args, int from_tty) #define DEBUG_EXCEPTION_SIMPLE(x) if (debug_exceptions) \ - printf_unfiltered ("gdb: Target exception %s at %p\n", x, \ - current_event.u.Exception.ExceptionRecord.ExceptionAddress) + printf_unfiltered ("gdb: Target exception %s at %s\n", x, \ + host_address_to_string (\ + current_event.u.Exception.ExceptionRecord.ExceptionAddress)) static int handle_exception (struct target_waitstatus *ourstatus) @@ -1098,9 +1100,10 @@ handle_exception (struct target_waitstatus *ourstatus) /* Treat unhandled first chance exceptions specially. */ if (current_event.u.Exception.dwFirstChance) return -1; - printf_unfiltered ("gdb: unknown target exception 0x%08lx at %p\n", - current_event.u.Exception.ExceptionRecord.ExceptionCode, - current_event.u.Exception.ExceptionRecord.ExceptionAddress); + printf_unfiltered ("gdb: unknown target exception 0x%08lx at %s\n", + current_event.u.Exception.ExceptionRecord.ExceptionCode, + host_address_to_string ( + current_event.u.Exception.ExceptionRecord.ExceptionAddress)); ourstatus->value.sig = TARGET_SIGNAL_UNKNOWN; break; } |