* windows-nat.c (handle_output_debug_string): Change type of n to
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 19 Mar 2013 15:06:26 +0000 (15:06 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 19 Mar 2013 15:06:26 +0000 (15:06 +0000)
SIZE_T to avoid crash on 64 bit systems.

gdb/ChangeLog
gdb/windows-nat.c

index 5dc439c..eca3b52 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
+
+       * windows-nat.c (handle_output_debug_string): Change type of n to
+       SIZE_T to avoid crash on 64 bit systems.
+
 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
 
        * python/python-internal.h (HAVE_SNPRINTF)
index 977b968..16ee785 100644 (file)
@@ -973,7 +973,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus)
       if (gotasig)
        {
          LPCVOID x;
-         DWORD n;
+         SIZE_T n;
          ourstatus->kind = TARGET_WAITKIND_STOPPED;
          retval = strtoul (p, &p, 0);
          if (!retval)