From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25183 invoked by alias); 12 Feb 2009 22:43:10 -0000 Received: (qmail 25172 invoked by uid 22791); 12 Feb 2009 22:43:08 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Feb 2009 22:43:01 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1CMgwNR014258; Thu, 12 Feb 2009 17:42:58 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1CMgw2L016155; Thu, 12 Feb 2009 17:42:58 -0500 Received: from opsy.redhat.com (vpn-13-214.rdu.redhat.com [10.11.13.214]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1CMgvMQ030788; Thu, 12 Feb 2009 17:42:57 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 6F1A58880F4; Thu, 12 Feb 2009 15:42:55 -0700 (MST) To: Francois Chouinard Cc: gdb@sourceware.org Subject: Re: Problem setting a breakpoint at a location containing spaces (using MI) References: <578d90ee0902121102h75129e60xec5aae8a15820b08@mail.gmail.com> From: Tom Tromey Reply-To: tromey@redhat.com Date: Thu, 12 Feb 2009 22:43:00 -0000 In-Reply-To: <578d90ee0902121102h75129e60xec5aae8a15820b08@mail.gmail.com> (Francois Chouinard's message of "Thu\, 12 Feb 2009 14\:02\:27 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00107.txt.bz2 >>>>> "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