From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24577 invoked by alias); 27 Jan 2003 01:54:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24570 invoked from network); 27 Jan 2003 01:54:37 -0000 Received: from unknown (HELO otisco.McKusick.COM) (209.31.233.190) by 172.16.49.205 with SMTP; 27 Jan 2003 01:54:37 -0000 Received: (from hilfingr@localhost) by otisco.McKusick.COM (8.9.3/8.9.3) id RAA15381; Sun, 26 Jan 2003 17:55:22 -0800 Date: Mon, 27 Jan 2003 01:54:00 -0000 Message-Id: <200301270155.RAA15381@otisco.McKusick.COM> X-Authentication-Warning: localhost.localdomain: hilfingr set sender to hilfingr@otisco.mckusick.com using -f From: "Paul N. Hilfinger" To: drow@mvista.com CC: gdb-patches@sources.redhat.com In-reply-to: <20030126222808.GA18132@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 26 Jan 2003 17:28:08 -0500) Subject: Re: RFC: Demangle partial symbols and save memory too Reply-to: Hilfinger@otisco.mckusick.com References: <20030126222808.GA18132@nevyn.them.org> X-SW-Source: 2003-01/txt/msg00727.txt.bz2 > This also lets us uniquely share the symbol names between msyms, psyms, and > full symbols. More memory savings, and we get the demangling for free. While you're in there merging symbol strings, perhaps you can explain this code from stabsread.c (there might be similar code for other readers; I haven't looked): In define_symbol, handling of 'T' case: if (TYPE_TAG_NAME (SYMBOL_TYPE (sym)) == 0) TYPE_TAG_NAME (SYMBOL_TYPE (sym)) = obconcat (&objfile->type_obstack, "", "", SYMBOL_NAME (sym)); Why can't just SYMBOL_NAME (sym) be used for the TYPE_TAG_NAME value? Paul Hilfinger