From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9871 invoked by alias); 21 Apr 2010 22:08:39 -0000 Received: (qmail 9805 invoked by uid 22791); 21 Apr 2010 22:08:36 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-55-5.bstnma.fios.verizon.net (HELO cgf.cx) (173.76.55.5) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Wed, 21 Apr 2010 22:08:30 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 0AC6713C061; Wed, 21 Apr 2010 18:08:29 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id 03A0C2B352; Wed, 21 Apr 2010 18:08:29 -0400 (EDT) Date: Wed, 21 Apr 2010 22:08:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Joel Brobecker Subject: Re: [RFC] Do not treat '\' as escape character on MinGW Windows hosts Message-ID: <20100421220828.GA19620@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Joel Brobecker References: <20100421203354.GD6588@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100421203354.GD6588@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00711.txt.bz2 On Wed, Apr 21, 2010 at 04:33:54PM -0400, Joel Brobecker wrote: >Hello, > >With the MinGW debugger, it is currently not possible to use a path >that follows the Windows convention. For instance: > > (gdb) file c:\foo\bar.exe > c:foobar.exe: No such file or directory. > >This is because the routine that parses arguments treats all backslashes >as an escape character. With a MinGW tool, this does not make sense >when the argument is a path, since the canonical directory separator >on Windows is a backslash... > >What the user has to do, at this point, is escape every backslash, >which can be quite painful when the path starts getting longer... > > (gdb) file c:\\foo\\bar.exe > Reading symbols from c:\foo\bar.exe...done. Why not just use a "forward" slash? cgf