aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-03-19 15:06:26 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-03-19 15:06:26 +0000
commit2c15ef432f1b9bc1d547273077313e28fe97fb7f (patch)
treec67984eaf4ae827c2682b1237ead4857a672cfc4 /gdb/windows-nat.c
parente7579b60ca4f1f97a4b697a98b70b1300815e083 (diff)
downloadgdb-2c15ef432f1b9bc1d547273077313e28fe97fb7f.zip
gdb-2c15ef432f1b9bc1d547273077313e28fe97fb7f.tar.gz
gdb-2c15ef432f1b9bc1d547273077313e28fe97fb7f.tar.bz2
* windows-nat.c (handle_output_debug_string): Change type of n to
SIZE_T to avoid crash on 64 bit systems.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 977b968..16ee785 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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)