From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21150 invoked by alias); 15 Nov 2006 16:42:35 -0000 Received: (qmail 21137 invoked by uid 22791); 15 Nov 2006 16:42:33 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 16:42:28 +0000 Received: (qmail 9738 invoked from network); 15 Nov 2006 16:42:26 -0000 Received: from unknown (HELO ?172.16.64.38?) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Nov 2006 16:42:26 -0000 From: Vladimir Prus To: gdb@sources.redhat.com Subject: MI varobj properties Date: Wed, 15 Nov 2006 16:42:00 -0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200611151942.14091.vladimir@codesourcery.com> 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/msg00101.txt.bz2 It looks like MI has grown way to many ways to report properties of a variable object: - When a variable object is created, the gdb response reports some properties (like expression and the number of children). - There's -var-info-expression that returns the expression (basically the same as above) and also language. - There's -var-show-attributes that returns "editable" attribute. - Apple branch has -var-info-path-expression that returns full expression This is somewhat complicated, and there are no clear rationale how do get any new bit of information. Except for getting the value of a variable objects, all those properties are computed by gdb, and there are no complex algorithms. How about the following change: - The commands that create new variable object always return full list of properties. - There's a new command that also returns the full list of properties - For backward compatibility, existing commands just forward to the new command. Comments? - Volodya