From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30120 invoked by alias); 10 Feb 2008 07:11:21 -0000 Received: (qmail 30111 invoked by uid 22791); 10 Feb 2008 07:11:21 -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; Sun, 10 Feb 2008 07:11:03 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1JO6L1-0001Q2-Rc for gdb@sources.redhat.com; Sun, 10 Feb 2008 10:11:00 +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 1JO6Ko-0001Pp-1g; Sun, 10 Feb 2008 10:10:43 +0300 From: Vladimir Prus To: Nick Roberts Subject: Re: Variable objects and STL containers Date: Sun, 10 Feb 2008 07:11:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: gdb@sources.redhat.com References: <18343.64413.689019.489727@kahikatea.snap.net.nz> <200802080946.28915.ghost@cs.msu.su> <18350.32064.844389.155290@kahikatea.snap.net.nz> In-Reply-To: <18350.32064.844389.155290@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802101010.49506.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/msg00044.txt.bz2 On Sunday 10 February 2008 07:27:44 Nick Roberts wrote: > > > 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. > > That sounds sensible. Discussion on the gcc mailing list suggested that this > should all be done in GDB, i.e., in C. I will explore that possibility. Please note that I already have proof-of-concept Python integration, together with code to use Python for -var-evaluate-expression, together with not-yet-working patch to dynamically compute the list of varobj children. It might be better to wait till I got the last bit done. - Volodya