The following patch fixes gdb/901. I am submitting it on behalf of Pascal Obry, who found the fix. No new regression on Windows XP. 2002-12-26 J. Brobecker From Pascal Obry * win32-nat.c (SetPrivilege): New routine. (Child_Attach): call SetPrivilege to correctly set child privileges to be able to debug applications running as services. Ok to commit? Thanks, -- Joel