This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [RFC] Do not treat '\' as escape character on MinGW Windows hosts
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Joel Brobecker'" <brobecker at adacore dot com>, <gcc-patches at gcc dot gnu dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 22 Apr 2010 14:01:11 +0200
- Subject: RE: [RFC] Do not treat '\' as escape character on MinGW Windows hosts
- References: <20100421203354.GD6588@adacore.com> <20100421220828.GA19620@ednor.casa.cgf.cx> <20100422001714.GD19194@adacore.com> <20100422023421.GA20111@ednor.casa.cgf.cx> <20100422103718.GG19194@adacore.com> <20100422115139.GH19194@adacore.com>
> -----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