Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Daniel Jacobowitz <dan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Make -exec-run and -exec-until into 'real' MI commands
Date: Mon, 22 Feb 2010 14:23:00 -0000	[thread overview]
Message-ID: <201002221723.48625.vladimir@codesourcery.com> (raw)
In-Reply-To: <20100113202620.GB3955@caradoc.them.org>

On Wednesday 13 January 2010 23:26:21 Daniel Jacobowitz wrote:

> On Wed, Jan 13, 2010 at 11:13:24PM +0300, Vladimir Prus wrote:
> > I think that only "\"" won't be preserved. While "a b" will be present in reconstructed
> > string with quotes.
> 
> Won't we have problems with Windows paths, for example?
> 
> -exec-run 'c:\My Documents\test' "c:\My Documents\test"
> 
> % exec /usr/bin/gdb 'c:\My Documents\test' "c:\My Documents\test"
> 
> But the MI parser is going to turn that second \t into a tab
> if I'm not mistaken.  This is a really hard transformation to
> reverse.
> 
> > I believe the fact that no known frontends use args was raised the last time,
> > but you still wanted to assume they exist.
> 
> Blech, I hate having to argue with myself.
> 
> I suggest asking for a second opinion then.  I don't think this
> quoting is good enough to be a good idea.  I think we can get away
> without it for -exec-run.  I don't know about -exec-until.

Apparently, nobody seem to have a second opinion :-(
So, unless I hear objections by tomorrow, I will commit a patch that:

a) make -exec-run refuse to accept any parameters, as no frontend
that cares is known.
b) does nothing with -exec-until, since your point about \t seems like
a killer. I'll fix -exec-until for MI3, whenever that comes around.


Thanks,

-- 
Vladimir Prus
CodeSourcery
vladimir@codesourcery.com
(650) 331-3385 x722


  parent reply	other threads:[~2010-02-22 14:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 13:29 Vladimir Prus
2010-01-13 13:44 ` Marc Khouzam
2010-01-13 15:00   ` Vladimir Prus
2010-01-13 20:10 ` Daniel Jacobowitz
2010-01-13 20:13   ` Vladimir Prus
2010-01-13 20:26     ` Daniel Jacobowitz
2010-01-14  4:46       ` Joel Brobecker
2010-02-22 14:24         ` Vladimir Prus
2010-02-25 17:25           ` Joel Brobecker
2010-02-22 14:23       ` Vladimir Prus [this message]
2010-02-24  7:34         ` Vladimir Prus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002221723.48625.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox