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

Pierre Muller
2010-04-22T12:01:51Z

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé : Thursday, April 22, 2010 1:52 PM
> À : gcc-patches@gcc.gnu.org
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFC] Do not treat '\' as escape character on MinGW Windows
> hosts
>
> Ooops - I had intended to start this email thread on GCC-patches,
> Cc'ing GDB-patches, but I made a typo, and sent it to GDB-patches
> Cc'ing the very same GDB-patches. I hope you'll forgive the cross post,
> but since this is common code...
>
> Here is what has been discussed, so far... I'm mostly trying to discuss
> the idea of making backslash a normal character as opposed to an escape
> character in arguments when on (MinGW) windows, whether the idea gets
> sufficiently positive feedback that we can move ahead an implement this
> suggestion (patch attached FYI).

Should we rather think about a command
that would allow to switch from Unix to Windows behavior?

set windows-escape-mode on/auto/off

The default 'auto' mode
would adapt to the target we are debugging
which would be 'on' for mingw* targets and possibly other Windows-like
targets
and 'off' for most others (this would become a gdbarch or a tdep field...).

People that really dislike this could still
force old behavior by setting
'set windows-escape-mode' to 'off'.

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

Pierre Muller
Pascal language support maintainer for GDB