* windows-nat.c (handle_output_debug_string): Replace call
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 20 Mar 2013 08:51:06 +0000 (08:51 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 20 Mar 2013 08:51:06 +0000 (08:51 +0000)
to string_to_core_addr with call to strtoull.

gdb/ChangeLog
gdb/windows-nat.c

index ae37a86..b079914 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
+
+       * windows-nat.c (handle_output_debug_string): Replace call
+       to string_to_core_addr with call to strtoull.
+
 2013-03-20  Yao Qi  <yao@codesourcery.com>
 
        * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
index 16ee785..e648d5f 100644 (file)
@@ -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)