From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29883 invoked by alias); 12 Feb 2009 22:50:46 -0000 Received: (qmail 29875 invoked by uid 22791); 12 Feb 2009 22:50:46 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f18.google.com (HELO mail-fx0-f18.google.com) (209.85.220.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Feb 2009 22:50:41 +0000 Received: by fxm11 with SMTP id 11so2261093fxm.0 for ; Thu, 12 Feb 2009 14:50:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.121.19 with SMTP id y19mr717611mum.56.1234479038405; Thu, 12 Feb 2009 14:50:38 -0800 (PST) In-Reply-To: References: <578d90ee0902121102h75129e60xec5aae8a15820b08@mail.gmail.com> Date: Thu, 12 Feb 2009 22:50:00 -0000 Message-ID: <578d90ee0902121450j7cf7f83ao5ad346a928bb900f@mail.gmail.com> Subject: Re: Problem setting a breakpoint at a location containing spaces (using MI) From: Francois Chouinard To: tromey@redhat.com, gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00108.txt.bz2 Thanks a lot! On Thu, Feb 12, 2009 at 5:42 PM, Tom Tromey wrote: >>>>>> "Francois" == Francois Chouinard writes: > > Francois> I know this sounds supremely basic but, using MI, what would > Francois> be the syntax to insert a breakpoint when specifying a > Francois> location containing spaces? > > FWIW I tried this on the CLI and used: > > (gdb) b "a b.c":5 > > Based on this, plus reading mi-parse.c:mi_parse_argv and > mi-cmd-break.c:mi_cmd_break_insert, I tried: > > -break-insert "\"a b.c\":5" > ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x080483c5",func="main",file="a b.c",fullname="/tmp/a b.c",line="5",times="0"} > > So this seems to work :-) > > Francois> Is there a protocol limitation? I know it works well with > Francois> CLI but I wonder what is the correct variant to make it work > Francois> with MI. > > I think the oddity here is that there is MI quoting to deal with, but > also quoting handled by the location parsing code. > > Tom >