From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20436 invoked by alias); 26 Mar 2011 16:36:29 -0000 Received: (qmail 20181 invoked by uid 22791); 26 Mar 2011 16:36:28 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Mar 2011 16:36:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q3WTP-0006vM-CY for gdb@sourceware.org; Sat, 26 Mar 2011 09:36:23 -0700 Message-ID: <31246347.post@talk.nabble.com> Date: Sat, 26 Mar 2011 16:36:00 -0000 From: BarrRobot To: gdb@sourceware.org Subject: MI Interface - interpretation of value returned by -stack-list-locals (C++) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00165.txt.bz2 The value returned by "-stack-list-locals 1" (inter alia) is of the form: ^done,locals=[{name="variable",value="a quoted string"}....] i.e. a List of Tuples containing Results. When "variable" of the first Result is a 'complex' type - typically an instantiated class, the quoted string Value of the second appears to be exactly the same (with allowance for escaped characters) as that produced by the equivalent console interface (CLI) command and whilst parts of it conform to the MI output specification, other parts - I am thinking of the representation of arrays - do not. Is there an intention to present the entire output of these commands in the defined MI output syntax, and if not, what is the recommended way to handle this part of the output, i.e. is it the expectation to present it 'as is' to the user, or is it safe to attempt to parse out the component parts and their values with rules derived from the CLI output? [The thread "[mi] -stack-list-arguments --simple-values" by Vladimir Prus-3 Jun 30, 2009; 10:39am seems vaguely relevant]. -- View this message in context: http://old.nabble.com/MI-Interface---interpretation-of-value-returned-by--stack-list-locals-%28C%2B%2B%29-tp31246347p31246347.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.