Index: src/gdb/gdbserver/win32-i386-low.c =================================================================== --- src.orig/gdb/gdbserver/win32-i386-low.c 2007-03-03 19:52:56.000000000 +0000 +++ src/gdb/gdbserver/win32-i386-low.c 2007-03-05 00:01:52.000000000 +0000 @@ -673,7 +673,7 @@ win32_create_inferior (char *program, ch static int win32_attach (unsigned long pid) { - int res = 0; + BOOL res = FALSE; winapi_DebugActiveProcessStop *DebugActiveProcessStop = NULL; winapi_DebugSetProcessKillOnExit *DebugSetProcessKillOnExit = NULL; @@ -683,7 +683,7 @@ win32_attach (unsigned long pid) DebugSetProcessKillOnExit = (winapi_DebugSetProcessKillOnExit *) GetProcAddress (kernel32, _T("DebugSetProcessKillOnExit")); - res = DebugActiveProcess (pid) ? 1 : 0; + res = DebugActiveProcess (pid); if (!res) error ("Attach to process failed."); @@ -696,7 +696,7 @@ win32_attach (unsigned long pid) if (current_process_handle == NULL) { - res = 0; + res = FALSE; if (DebugActiveProcessStop != NULL) DebugActiveProcessStop (current_process_id); } @@ -707,7 +707,7 @@ win32_attach (unsigned long pid) if (kernel32 != NULL) FreeLibrary (kernel32); - return res? 0:-1; + return (res != FALSE) ? 0 : -1; } /* Handle OUTPUT_DEBUG_STRING_EVENT from child process. */