From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17996 invoked by alias); 25 Jun 2008 17:28:41 -0000 Received: (qmail 17988 invoked by uid 22791); 25 Jun 2008 17:28:41 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 17:28:23 +0000 Received: (qmail 28067 invoked from network); 25 Jun 2008 17:28:21 -0000 Received: from unknown (HELO wind.local) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Jun 2008 17:28:21 -0000 From: Vladimir Prus To: "Marc Khouzam" Subject: Re: [MI] argv/argc/args Date: Wed, 25 Jun 2008 17:28:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb@sources.redhat.com References: <6D19CA8D71C89C43A057926FE0D4ADAA0429120A@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA0429120A@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806252128.28815.vladimir@codesourcery.com> 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: 2008-06/txt/msg00254.txt.bz2 On Wednesday 25 June 2008 21:21:07 Marc Khouzam wrote: > Hi, > > just to give input on DSF's use of these commands, > although that doesn't speak for any other frontend. > > > -exec-next > > -exec-next-instruction > > -exec-step > > -exec-step-instruction > > -exec-continue > > DSF does use a parameter on some of these but it is only an integer. > So, no problem here. > > > > The bad ones are: > > > > -exec-until > > We use a parameter of format file:line > I guess it could be a problem if the file name had a space in it. > > > -target-download > > Not used yet. But any future use will require to have some special > code if we want to support older GDBs. > > > -target-select > > > > The parameters here are host:port or serialDevice, which I believe > will not contain spaces. Should be fine. Well, it can also be "| some-program lots-of-parameters", so quoting is an issue. (And Sourcery G++ does use that ;-) > > So, we have 3 commands for which requiring the input to be > > quoted per MI rules > > will cause issues; and fixing those issues will require > > changing other parts of > > GDB to avoid parsing filenames, which is risky at this point. > > It appears, that > > instead of reverting my original patch, we can just path > > those 3 commands > > via CLI directly. Does the plan sound reasonable? > > For DSF, it should mean no changes, so I like this solution. Ok. - Volodya