From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8697 invoked by alias); 8 Feb 2008 06:47:11 -0000 Received: (qmail 8686 invoked by uid 22791); 8 Feb 2008 06:47:11 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Feb 2008 06:46:46 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1JNN0Q-0006pZ-5k for gdb@sources.redhat.com; Fri, 08 Feb 2008 09:46:43 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1JNN0I-0006pN-Du; Fri, 08 Feb 2008 09:46:30 +0300 From: Vladimir Prus To: Nick Roberts Subject: Re: Variable objects and STL containers Date: Fri, 08 Feb 2008 06:47:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <18343.64413.689019.489727@kahikatea.snap.net.nz> <18347.42973.952396.224123@kahikatea.snap.net.nz> In-Reply-To: <18347.42973.952396.224123@kahikatea.snap.net.nz> Cc: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802080946.28915.ghost@cs.msu.su> 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: 2008-02/txt/msg00041.txt.bz2 On Friday 08 February 2008 03:52:45 you wrote: > > We discussed using Python scripting for that; in fact, I have a patch locally > > that will make > > > > -var-evaluate-expression V > > > > for a vector print something like: > > > > [1,2,3] > > > > I'm working on making those element the children of the variable object, > > but it's not done yet. > > What will you do when the number of elements increases/decreases. Will > Gdb create/delete variable objects for these children automatically? I anticipate that -var-update will: 1. Create new children, and report them. 2. Report children that are now gone, possibly deleting them. - Volodya