From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26968 invoked by alias); 21 Aug 2009 14:09:07 -0000 Received: (qmail 26958 invoked by uid 22791); 21 Aug 2009 14:09:07 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Aug 2009 14:08:59 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id n7LE8tWo025550 for ; Fri, 21 Aug 2009 15:08:55 +0100 Received: from pxi15 (pxi15.prod.google.com [10.243.27.15]) by zps75.corp.google.com with ESMTP id n7LE8qqm005494 for ; Fri, 21 Aug 2009 07:08:53 -0700 Received: by pxi15 with SMTP id 15so4180747pxi.23 for ; Fri, 21 Aug 2009 07:08:52 -0700 (PDT) Received: by 10.115.84.10 with SMTP id m10mr1709731wal.100.1250863732631; Fri, 21 Aug 2009 07:08:52 -0700 (PDT) Received: from localhost.localdomain.google.com ([67.218.109.63]) by mx.google.com with ESMTPS id 22sm395478pzk.6.2009.08.21.07.08.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 Aug 2009 07:08:50 -0700 (PDT) To: Laurynas Biveinis Cc: gcc@gcc.gnu.org Subject: Re: [Repost] RFC: dump gengtype structures References: From: Ian Lance Taylor Date: Fri, 21 Aug 2009 19:52:00 -0000 In-Reply-To: (Laurynas Biveinis's message of "Fri\, 21 Aug 2009 08\:45\:23 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00393.txt.bz2 Laurynas Biveinis writes: > [Third try. Apparently the compressed dump was still too big to get throu= gh] > > So I got fed up with trying to navigate gengtype maze of type_p, > pair_p and others and trying to figure out the difference between > GC_POINTED_TO and GC_USED and what is so "maybe" about > GC_MAYBE_POINTED_TO, thus I extended gengtype to dump its data > structures representing GCC data types and variables. > > I wanted to attach an example dump it produced but it is about 350K > compressed and so it's too big for this mailing list. =C2=A0It's not > perfect since I > did depth-first processing and the very first type goes very deep > indeed by pulling virtually all of the remaining types and taking > perhaps 80% of the output. However it is already much more usable and > greppable for looking into interesting types than trying to do the > same in GDB. > > I will commit this to gc-improv branch shortly. I think this is > interesting enough to have on the trunk too and I will submit together > with some other patches from gc-improv in couple of weeks. > > Any comments? This looks like a good idea to me. The patch looks fine. Ian