From: Corinna Vinschen Date: Wed, 20 Mar 2013 08:51:06 +0000 (+0000) Subject: * windows-nat.c (handle_output_debug_string): Replace call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35a7120b8ccbd9e58daf8a9d108923a8cf4fdc98;p=binutils-gdb.git * windows-nat.c (handle_output_debug_string): Replace call to string_to_core_addr with call to strtoull. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ae37a863da2..b0799145d11 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-20 Corinna Vinschen + + * windows-nat.c (handle_output_debug_string): Replace call + to string_to_core_addr with call to strtoull. + 2013-03-20 Yao Qi * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 16ee785a26b..e648d5fa90e 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -978,7 +978,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus) retval = strtoul (p, &p, 0); if (!retval) retval = main_thread_id; - else if ((x = (LPCVOID) string_to_core_addr (p)) + else if ((x = (LPCVOID) strtoull (p, NULL, 0)) && ReadProcessMemory (current_process_handle, x, &saved_context, __COPY_CONTEXT_SIZE, &n)