From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23863 invoked by alias); 8 Feb 2008 00:53:28 -0000 Received: (qmail 23854 invoked by uid 22791); 8 Feb 2008 00:53:28 -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; Fri, 08 Feb 2008 00:52:59 +0000 Received: from kahikatea.snap.net.nz (181.31.255.123.static.snap.net.nz [123.255.31.181]) by viper.snap.net.nz (Postfix) with ESMTP id 31F4D3D9F2F; Fri, 8 Feb 2008 13:52:56 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id BD8AD8FC6D; Fri, 8 Feb 2008 13:52:46 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18347.42973.952396.224123@kahikatea.snap.net.nz> Date: Fri, 08 Feb 2008 00:53:00 -0000 To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Variable objects and STL containers In-Reply-To: References: <18343.64413.689019.489727@kahikatea.snap.net.nz> 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/msg00040.txt.bz2 > 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? Or will the frontend be prompted? -- Nick http://www.inet.net.nz/~nickrob