Re: -var-show-attributes response syntax

Nick Roberts
2006-11-10T23:33:57Z

> Sorry, I no longer understand the problem you were talking about.
> AFAICS, the `{}' are literal (and so don't need to be discussed),
> while `|' is _not_ a literal character and is already documented in
> "Notation and Terminology". What am I missing?

From "GDB/MI Variable Objects" in the manual:

lang=LANG-SPEC,exp=EXPRESSION

where LANG-SPEC is `{"C" | "C++" | "Java"}'.

means e.g lang="C" not lang={"C"}

status=ATTR [ ( ,ATTR )* ]

where ATTR is `{ { editable | noneditable } | TBD }'.

means e.g attr="editable" not attr={{"editable"}}

As Andreas says, status=ATTR should be attr=ATTR. Also editable | noneditable
should presumably be strings:

where ATTR is `{ { "editable" | "noneditable" } | TBD }'.

Having said that I always find it hard to use one syntax to describe another
in an unambiguous way and it's not that hard to find out what is meant by
invoking GDB with MI.

--
Nick http://www.inet.net.nz/~nickrob