[RFC] Do not treat '\' as escape character on MinGW Windows hosts

Joel Brobecker brobecker@adacore.com
Thu Apr 22 12:26:00 GMT 2010


>   Should we rather think about a command
> that would allow to switch from Unix to Windows behavior?
> 
> set windows-escape-mode on/auto/off

Absolutely, *if* we decide that the right behavior is: preserve the
current Unixy behavior everywhere except inside the GDB interpreter.

> Of course this is only valid for GDB, I don't know
> how this could be handled within GCC.

GCC already accepts both forms, I suspect.  However, the shell from
which you are calling GCC might not. For instance, if you use a cygwin
bash to call GCC, then you cannot use c:\foo.c unless you either escape
the backslashes, or you quote your argument. But if you do it from the
CMD.exe shell, then it should work just fine.

-- 
Joel



More information about the Gdb-patches mailing list