From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8963 invoked by alias); 22 Apr 2008 21:35:41 -0000 Received: (qmail 8955 invoked by uid 22791); 22 Apr 2008 21:35:40 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Apr 2008 21:35:15 +0000 Received: from kahikatea.snap.net.nz (204.63.255.123.dynamic.snap.net.nz [123.255.63.204]) by viper.snap.net.nz (Postfix) with ESMTP id 2D40D3DA63D; Wed, 23 Apr 2008 09:35:12 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id D9AFB8FC6D; Wed, 23 Apr 2008 09:35:10 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18446.23053.860176.935315@kahikatea.snap.net.nz> Date: Tue, 22 Apr 2008 22:13:00 -0000 To: Vincent Benony Cc: gdb-patches@sourceware.org Subject: Re: Using STL containers with GDB In-Reply-To: <1208857199.6213.15.camel@bsr-desktop> References: <1208857199.6213.15.camel@bsr-desktop> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00490.txt.bz2 > So, yesterday, I decided myself to look at the code of GDB. After a > quick look, I wrote this patch. I know that it's not very clean, and > that it makes many assumptions about STL containers, and that it cannot > be considered as a long term feature for GDB, but, believe me, it's very > very usefull ! > > Now, I can look at the content of list, vector, set, map, multiset, > multimap and string simply with the classic "print" command of GDB. The Python branch appears to work for executables compiled with Gcc only. I'm curious to know if this approach will work for executables built using other compilers? -- Nick http://www.inet.net.nz/~nickrob