From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18491 invoked by alias); 10 Aug 2006 17:51:25 -0000 Received: (qmail 18483 invoked by uid 22791); 10 Aug 2006 17:51:24 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 10 Aug 2006 17:51:21 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GBEgh-0006si-8D; Thu, 10 Aug 2006 13:51:19 -0400 Date: Thu, 10 Aug 2006 17:51:00 -0000 From: Daniel Jacobowitz To: Nikolay Molchanov Cc: gdb@sourceware.org Subject: Re: How to set a breakpoint in file, which name has spaces? Message-ID: <20060810175119.GA26275@nevyn.them.org> Mail-Followup-To: Nikolay Molchanov , gdb@sourceware.org References: <44D832EE.2040405@sun.com> <44D8E404.5050407@Sun.COM> <44D98D66.9060202@sun.com> <44DAD087.30004@sun.com> <20060810125827.GA18306@nevyn.them.org> <44DB6093.4030905@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44DB6093.4030905@sun.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00087.txt.bz2 On Thu, Aug 10, 2006 at 09:36:35AM -0700, Nikolay Molchanov wrote: > I would be happy to take a look at the discussion. > IMHO a good solution is to use '\ ' to escape spaces. It is standard > Unix approach. > The real '\' character should be passed as double '\' ("\\"). > What is nice, it works just great in "-file-exec-and-symbols" command, > so it seems > a pretty straight forward solution to make other commands consistent > with this one. No. The manual describes the quoting rules that MI is supposed to use; some commands violate them, but this one doesn't. It's too late to change how it's supposed to work now. > >So if you want to simulate: > > break 'C:/Documents and Settings/foo.c':17 > > > > > Unfortunately this does not work: Apparently you need to use double quotes. I'm not sure why. > >You'd need > > -break-insert "'C:/Documents and Settings/foo.c':17" Which would mean -break-insert "\"C:/Documents and Settings/foo.c\":17" -- Daniel Jacobowitz CodeSourcery