From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15059 invoked by alias); 14 Jul 2005 08:03:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15018 invoked by uid 22791); 14 Jul 2005 08:03:48 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 14 Jul 2005 08:03:48 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dsygv-0001WY-6S for gdb@sources.redhat.com; Thu, 14 Jul 2005 10:03:33 +0200 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2005 10:03:33 +0200 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2005 10:03:33 +0200 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Checking if value is editable Date: Thu, 14 Jul 2005 08:03:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-SW-Source: 2005-07/txt/msg00163.txt.bz2 Hello, how is it possible to check that a value/expression is editable, so that I can disable "edit" functionality in a GUI. Reading MI docs, I see that '-var-assign' only works in variable is 'editable', but there's what I get in gdb 6.3: (gdb) -var-create constant 0 123+5*6 ^done,name="constant",numchild="0",type="long" (gdb) -var-show-attributes constant ^done,attr="editable" This looks like a bug... setting the value of 123+5*6 won't work. So: 1. Is above indeed a bug? 2. Can I get the same information ("is value editable") using command line interface, and not MI. Thanks, Volodya