From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7327 invoked by alias); 10 Feb 2008 04:28:23 -0000 Received: (qmail 7317 invoked by uid 22791); 10 Feb 2008 04:28:22 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Feb 2008 04:27:57 +0000 Received: from kahikatea.snap.net.nz (26.60.255.123.dynamic.snap.net.nz [123.255.60.26]) by viper.snap.net.nz (Postfix) with ESMTP id C6B083DA0C3; Sun, 10 Feb 2008 17:27:48 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 900918FC6D; Sun, 10 Feb 2008 17:27:45 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18350.32064.844389.155290@kahikatea.snap.net.nz> Date: Sun, 10 Feb 2008 04:28:00 -0000 To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Variable objects and STL containers In-Reply-To: <200802080946.28915.ghost@cs.msu.su> References: <18343.64413.689019.489727@kahikatea.snap.net.nz> <18347.42973.952396.224123@kahikatea.snap.net.nz> <200802080946.28915.ghost@cs.msu.su> X-Mailer: VM 7.19 under Emacs 22.1.90.1 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: 2008-02/txt/msg00043.txt.bz2 > > 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. -- Nick http://www.inet.net.nz/~nickrob