From 40653b35683fa5de89f40ebea274d2bb375a62b0 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 27 Mar 2013 08:57:09 +0000 Subject: [PATCH] * windows-nat.c (handle_output_debug_string): Avoid typecast from integer of different size warning. --- gdb/ChangeLog | 5 +++++ gdb/windows-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 53170d1..180b330 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-27 Pierre Muller + + * windows-nat.c (handle_output_debug_string): Avoid typecast + from integer of different size warning. + 2013-03-26 Joel Brobecker * windows-nat.c (handle_output_debug_string): Add empty line diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 24d4b56..805ab30 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -992,7 +992,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus) retval = strtoul (p, &p, 0); if (!retval) retval = main_thread_id; - else if ((x = (LPCVOID) strtoull (p, NULL, 0)) + else if ((x = (LPCVOID) (uintptr_t) strtoull (p, NULL, 0)) && ReadProcessMemory (current_process_handle, x, &saved_context, __COPY_CONTEXT_SIZE, &n) -- 2.7.4