From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8648 invoked by alias); 29 Aug 2011 10:13:11 -0000 Received: (qmail 8630 invoked by uid 22791); 29 Aug 2011 10:13:10 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Aug 2011 10:12:56 +0000 Received: (qmail 3135 invoked from network); 29 Aug 2011 10:12:55 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Aug 2011 10:12:55 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFA] 12843 Date: Mon, 29 Aug 2011 10:13:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: =?iso-8859-1?q?Andr=E9_P=F6nitz?= References: <4E56C5A0.60802@redhat.com> <201108290920.40589.andre.poenitz@nokia.com> In-Reply-To: <201108290920.40589.andre.poenitz@nokia.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201108291112.53906.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2011-08/txt/msg00558.txt.bz2 On Monday 29 August 2011 08:20:40, Andr=E9 P=F6nitz wrote: > Indeed. Something like >=20 > 25-break-insert -f "\"some thing.cpp\":794" >=20 > tends to work. I found it non-obvious in the beginning... >=20 > > (I'd like -break-insert to avoid linespecs completely, which would be a > > big improvement IMO, ... >=20 > From an MI client's point of view, passing all location information as=20 > a single argument is neither wanted nor needed. >=20 > 25-break-insert --file "some thing.cpp" --line 794 >=20 > or even require everything to be quoted as in >=20 > 25-break-insert --file "some thing.cpp" --line "794" >=20 > would be easier to handle than what's there now. >=20 > > ... but of course we still have to worry about compatibility.) >=20 > Just using new flags for the parameters should do the trick in this case. Yeah, though I expect frontends to support letting the user specify manually where to insert the breakpoint (say, with a popup dialog where you write foo.exe:bar or something more complicated, thus we'd always still need some form of linespec support in MI. --=20 Pedro Alves