[Converted from Gnats 2310] In both Cygwin and MinGW, if the full path of the executable being examined by gdb contains a space, one gets the message: Error creating process ... (error 193). Example: C:\Documents and Settings\Tansay\My Documents> c:\mingw\bin\gdb HelloWorld GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-mingw32"... (gdb) run Starting program: C:\Documents and Settings\Tansay\My Documents/HelloWorld.exe Error creating process C:\Documents and Settings\Tansay\My Documents/HelloWorld. exe, (error 193). (gdb) Release: 6.6 Environment: Windows XP SP2 How-To-Repeat: Put the executable being examined by gdb in a directory with a space in the full pathname. Run.
Fix: As a workaround, don't keep your project in your "My Documents" folder, move it to C:\projects instead.
From: Daniel Jacobowitz <drow@false.org> To: mortis@ucalgary.ca Cc: gdb-gnats@sources.redhat.com Subject: Re: win32/2310: Error creating process (error 193) Date: Fri, 7 Sep 2007 08:40:11 -0400 On Fri, Sep 07, 2007 at 03:23:29AM -0000, mortis@ucalgary.ca wrote: > GNU gdb 6.6 > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i686-pc-mingw32"... FSF releases of GDB don't yet support native mingw32 debugging. The MinGW project has some patches; you'll need to ask them about it. -- Daniel Jacobowitz CodeSourcery
Meanwhile, FSF GDB got support for mingw32. This is not reproducible, though.