From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31663 invoked by alias); 10 Nov 2006 23:33:57 -0000 Received: (qmail 31655 invoked by uid 22791); 10 Nov 2006 23:33:57 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Nov 2006 23:33:49 +0000 Received: from kahikatea.snap.net.nz (p202-124-120-183.snap.net.nz [202.124.120.183]) by viper.snap.net.nz (Postfix) with ESMTP id 5C5293D8264; Sat, 11 Nov 2006 12:33:58 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 5DBBEBE439; Sat, 11 Nov 2006 12:29:51 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17749.2926.508338.599064@kahikatea.snap.net.nz> Date: Fri, 10 Nov 2006 23:33:00 -0000 To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: -var-show-attributes response syntax In-Reply-To: References: <200611101655.32843.vladimir@codesourcery.com> <17748.43269.740800.782628@kahikatea.snap.net.nz> <17748.62479.550269.959106@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.90.12 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00068.txt.bz2 > 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