From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2936 invoked by alias); 24 Sep 2002 13:19:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2928 invoked from network); 24 Sep 2002 13:19:58 -0000 Received: from unknown (HELO mail.cdt.org) (206.112.85.61) by sources.redhat.com with SMTP; 24 Sep 2002 13:19:58 -0000 Received: from dberlin.org (pool-138-88-48-174.res.east.verizon.net [138.88.48.174]) by mail.cdt.org (Postfix) with ESMTP id 78BAA49005E; Tue, 24 Sep 2002 08:56:54 -0400 (EDT) Received: from [127.0.0.1] (HELO localhost) by dberlin.org (CommuniGate Pro SMTP 4.0b9a) with ESMTP-TLS id 250851; Tue, 24 Sep 2002 09:19:55 -0400 Date: Tue, 24 Sep 2002 06:19:00 -0000 From: Daniel Berlin To: Jim Blandy Cc: david carlton , Subject: Re: suggestion for dictionary representation In-Reply-To: <200209240635.g8O6ZUC23979@zenia.red-bean.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00370.txt.bz2 On Tue, 24 Sep 2002, Jim Blandy wrote: > > > Also, for what it's worth, I'm still not ready to completely give up > > on representing members of classes via a dictionary; that would > > provide another place where a linear dictionary environment could be > > useful. > > I agree, but it's worth noting that `struct symbol' is 52 bytes long > on a Pentium, whereas `struct field' and `struct fn_field' are 16 > bytes long. > > Not that that necessarily matters. We know GDB does have memory > consumption problems, but I have never seen those problems really > analyzed. Um, I have these statistics, but I need to know *exactly* what you want to know to be able to give them to you. There's just too many combinations to make a nice table or something. Even something like STABS vs DWARF2 has too many combinations because it changes with each GCC version, and even sometimes with binutils versions. > All the memory could be in physnames, for all we know. In general, DWARF2 C++ apps, a lot of it is. --Dan