From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7092 invoked by alias); 23 May 2008 14:21:19 -0000 Received: (qmail 7081 invoked by uid 22791); 23 May 2008 14:21:18 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 May 2008 14:20:51 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JzY8U-0003O2-3f for gdb-patches@sources.redhat.com; Fri, 23 May 2008 14:20:46 +0000 Received: from 78.158.192.230 ([78.158.192.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 May 2008 14:20:46 +0000 Received: from vladimir by 78.158.192.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 May 2008 14:20:46 +0000 To: gdb-patches@sources.redhat.com From: Vladimir Prus Subject: Re: GDB C plugin system, and STL container viewer as an example Date: Fri, 23 May 2008 19:30:00 -0000 Message-ID: References: <1211535909.8253.16.camel@bsr-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.5 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-05/txt/msg00681.txt.bz2 Vincent Benony wrote: > Hello, > > some days ago, I send here a (crap and buggy) patch that allows GDB to > display STL containers. I know that this patch was too intrusive and > dependent of the STL version. > > Today, I wrote another patch that allows me to load plugin into GDB > that are called in particular situations, like displaying the content of > a variable of a particular type, or creating varobjects in MI > interpreter. It is used to format any kind of datas as I want it to be > displayed. > > I submit a new version of my STL container viewer, but this time as a > plugin. It handles STL container access as it was a classic C array, and > answers queries like 'sizeof'... It also support MI interpreter, so that > GDB could be used with frontend, still displaying data correctly. I > tried it with Eclipse/CDT, KDevelop, KDBG, Nemiver and Insight/GDB. All > works well ! I don't see how you report that fact that the number of children of a varobj has changed. Without that, I'm not sure how useful MI display of vectors is. Am I missing something? - Volodya