From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18771 invoked by alias); 15 Feb 2008 09:24:15 -0000 Received: (qmail 18763 invoked by uid 22791); 15 Feb 2008 09:24:15 -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, 15 Feb 2008 09:23:43 +0000 Received: from kahikatea.snap.net.nz (121.31.255.123.static.snap.net.nz [123.255.31.121]) by viper.snap.net.nz (Postfix) with ESMTP id 11C203DAA09; Fri, 15 Feb 2008 22:23:40 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id AC6C08FC6D; Fri, 15 Feb 2008 22:23:31 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18357.23056.842755.97621@kahikatea.snap.net.nz> Date: Fri, 15 Feb 2008 09:24:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: Variable objects and STL containers In-Reply-To: <20080205131634.GA10652@caradoc.them.org> References: <18343.64413.689019.489727@kahikatea.snap.net.nz> <18344.836.184542.934917@kahikatea.snap.net.nz> <20080205131634.GA10652@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.1.90.2 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/msg00107.txt.bz2 > > Are iterators available to GDB, or just the executable? I only seem able > > to access those methods which are used by my program, e.g., > > That's generally correct; there's nothing in the debug info explaining > what template or inline methods do which are not instantiated > out-of-line somewhere in the program. With optimization you may not > be able to call them even if they are used. Would it be possible for the gcc developers to add that information? I mean with a special option, like -g3 means include macro information. Alternatively would it be possible to share code for those methods with Gdb, as with the bfd library? Creating variable objects using internals wasn't so hard for vectors but it gets a bit more tricky with lists. -- Nick http://www.inet.net.nz/~nickrob