This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [mi] -list-features
> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Fri, 31 Aug 2007 11:05:37 +0400
> Cc: drow@false.org,
> gdb-patches@sources.redhat.com
>
> How about this:
>
> -list-features
> Returns a list of particular features of the MI protocol that
> this version of gdb implements. A feature can be a command,
> or a new field in an output of some command, or even an
> important bugfix. While a frontend can sometimes detect presence
> of a feature at runtime, it is easier to perform detection at debugger
> startup.
>
> The command returns a list of strings, with each string naming an
> available feature. Each returned string is just a name, it does not
> have any internal structure. The list of possible feature names
> is given below.
It is still ambiguous, because "a list of string" does not tell the
whole story. Is it
foo bar baz
or
"foo" "bar" "baz"
or
foo,bar,baz
or
{foo,bar,baz}
or
...
You get the story.
I think an example will go a long way towards disambiguating this.
Thanks.