-var-show-attributes response syntax
Nick Roberts
nickrob@snap.net.nz
Fri Nov 10 23:33:00 GMT 2006
> 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
More information about the Gdb
mailing list