This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: [MI] argv/argc/args
- From: "Marc Khouzam" <marc dot khouzam at ericsson dot com>
- To: "Vladimir Prus" <vladimir at codesourcery dot com>, <gdb at sources dot redhat dot com>
- Date: Wed, 25 Jun 2008 10:45:52 -0400
- Subject: RE: [MI] argv/argc/args
> From: Vladimir Prus
> Sent: Wednesday, June 25, 2008 5:06 AM
>
> In GDB 6.8 codebase, there were 3 different ways an MI
> command can be processed:
>
> 1. Sneaking via CLI directly (calling execute_command)
> 2. Calling a function, that takes argc/argv pair
> 3. Calling a function, that takes a string 'args' parameter with
> the raw part of MI command string after the command name.
>
> Some time ago, I've checked in a patch to remove (3), to clarify the
> code. Dan has raised concerns about backward compatibility, so here's
> an attempt to analyze the change afresh.
I never quite understood the quoting for MI commands. If I recall,
some commands need quotes when they use spaces, while others are not
allowed to use quotes. I does cause a bit of a headache.
What is the impact of removing (3) above? Quotes will be needed
or will not be allowed?
Thanks
marc