From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2646 invoked by alias); 18 Mar 2007 10:40:53 -0000 Received: (qmail 2635 invoked by uid 22791); 18 Mar 2007 10:40:52 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 18 Mar 2007 10:40:47 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HSsoU-0002uV-Ul for gdb@sources.redhat.com; Sun, 18 Mar 2007 11:40:34 +0100 Received: from 73-198.umostel.ru ([82.179.73.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2007 11:40:34 +0100 Received: from ghost by 73-198.umostel.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2007 11:40:34 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Behaviour of invalid varobjs Date: Sun, 18 Mar 2007 10:40:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.2 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: 2007-03/txt/msg00213.txt.bz2 I think current mainline does something strange about varobjs that cannot be evaluated: -var-create null_ptr * **0 ^done,name="null_ptr",numchild="0",value="0",type="int" (gdb) -var-update null_ptr ^done,changelist=[{name="null_ptr",in_scope="false"}] First, the value of "**0" is not 0, in fact there's no value at all. Second, given that nothing was changed between the two commands, it's strange that 'null_ptr' is mentioned in -var-update. Before I go changing code, do everybody agree that: 1. The output of -var-create should either have no "value" field at all, or value="", as is used in some other context. 2. The output of -var-update should not include anything. Also, we probably should include in_scope="false" in output of -var-create, but I'm not quite sure. Comments? - Volodya