This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -var-show-attributes response syntax


 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]