From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20735 invoked by alias); 4 Feb 2003 18:07:48 -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 20716 invoked from network); 4 Feb 2003 18:07:47 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 4 Feb 2003 18:07:47 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18g9N4-0008Vw-00; Tue, 04 Feb 2003 14:08:42 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18g7U3-0005cA-00; Tue, 04 Feb 2003 13:07:47 -0500 Date: Tue, 04 Feb 2003 18:07:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Cc: Jim Blandy Subject: Re: RFC: Demangle partial symbols and save memory too Message-ID: <20030204180746.GA5315@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com, Jim Blandy References: <20030126222808.GA18132@nevyn.them.org> <20030130011722.GB28894@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030130011722.GB28894@nevyn.them.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00125.txt.bz2 I've checked this in, with David's and Jim's comments incorporated, and copyright dates updated. On Wed, Jan 29, 2003 at 08:17:22PM -0500, Daniel Jacobowitz wrote: > I also fixed up some consts that David pointed out; here's an update. > 2003-01-29 Daniel Jacobowitz > > * defs.h (streq): Add prototype. > * utils.c (streq): New function. > > * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of > SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME. > * mdebugread.c (new_symbol): Likewise. > * stabsread.c (define_symbol): Likewise. > * coffread.c (process_coff_symbol): Likewise. > * dwarfread.c (new_symbol): Likewise. > > * minsyms.c (prim_record_minimal_symbol_and_info): Use > SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language > here. > (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call > SYMBOL_INIT_DEMANGLED_NAME. > * objfiles.c: Include "hashtab.h". > (allocate_objfile): Call htab_set_functions_ex for the > demangled_names_hash. > (free_objfile): Call htab_delete for the demangled_names_hash. > * objfiles.h (struct htab): Add declaration. > (struct objfile): Add demangled_names_hash. > * symfile.c: Include "hashtab.h". > (reread_symbols): Call htab_delete for the demangled_names_hash. > (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting > SYMBOL_NAME in the bcache. > * symtab.c: Include "hashtab.h". Update comments. > (create_demangled_names_hash, symbol_set_names): New functions. > (symbol_find_demangled_name): New function, broken out from > symbol_init_demangled_names. > (symbol_init_demangled_names): Use it. > * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses. > (SYMBOL_SET_NAMES): New macro. > (symbol_set_names): Add prototype. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer