From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10372 invoked by alias); 30 Mar 2003 15:11:38 -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 10364 invoked from network); 30 Mar 2003 15:11:37 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 30 Mar 2003 15:11:37 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 688242B23; Sun, 30 Mar 2003 10:11:35 -0500 (EST) Message-ID: <3E870927.1020904@redhat.com> Date: Sun, 30 Mar 2003 15:11:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nick Roberts Cc: gdb@sources.redhat.com Subject: Re: variable objects (was: [rfc] Annotation level THREE) References: <3E6E7326.3020906@redhat.com> <15985.7336.23998.590592@nick.uklinux.net> <3E751565.4030409@redhat.com> <15990.10811.61395.996906@nick.uklinux.net> <3E763228.9060104@redhat.com> <15990.62618.114706.459904@nick.uklinux.net> <3E773B59.90403@redhat.com> <16003.24724.76812.284701@nick.uklinux.net> <3E84CD1B.9040302@redhat.com> <16006.63313.824491.352546@nick.uklinux.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00405.txt.bz2 > If -var-assign is used (or, indeed, if the array element is changed within > execution) then the changelist reflects this e.g > > -var-assign var2.3 6 > ^done,value="6" > (gdb) > -var-update * > ^done,changelist=[{name="var2.3",in_scope="true",type_changed="false"}] > (gdb) > > -var-evaluate-expression gives the following: > > -var-evaluate-expression var2 > ^done,value="[10]" > (gdb) > > which possibly explains why nothing appears in the changelist when the CLI > command (set var r[3]=6) is used as the array size is not editable: > > -var-show-attributes var2 > ^done,attr="noneditable" > (gdb) Bug The CLI side is missing an invalidate. Can you please file this as a bug report. I'll then see about fixing it. If you want to turn the above into a test case, then you'll know it > This is only a problem when trying to control GDB using both CLI and MI > commands which is what we would like to do in Emacs. Do Apple (Project > Builder?) or Eclipse have a console where CLI commands can be entered? I suspect no one noticed because, up until now, things like Insight were using varobj to do updates (it is more robust than the `set' command). Andrew