This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 7c5fdd25ebe3262695084d93027f313e1015518a


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  7c5fdd25ebe3262695084d93027f313e1015518a (commit)
      from  31c0ebfe8bfd9af65aee24cbff17fffe039c0b28 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7c5fdd25ebe3262695084d93027f313e1015518a

commit 7c5fdd25ebe3262695084d93027f313e1015518a
Author: Doug Evans <dje@google.com>
Date:   Tue Dec 2 16:54:16 2014 -0800

    Remove cplus_specific from general_symbol_info.
    
    This patch reverts the addition of cplus_specific added here:
    
    2010-07-16  Sami Wagiaalla  <swagiaal@redhat.com>
    
    	* symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
    	argument.
    	(cplus_specific): New struct.
    	* symtab.c (symbol_set_demangled_name): Updated.
    	Use cplus_specific for cplus symbols.
    	(symbol_get_demangled_name): Retrive the name from the cplus_specific
    	struct for cplus symbols.
    	(symbol_init_language_specific): Set cplus_specific for cplus symbols.
    	(symbol_set_names): Pass objfile to symbol_set_demangled_name.
    	* symtab.c (symbol_init_cplus_specific): New function.
    
    It was added in anticipation of improved template support:
    
    https://sourceware.org/ml/gdb-patches/2010-05/msg00594.html
    https://sourceware.org/ml/gdb-patches/2010-07/msg00284.html
    
    However, minsyms pay the price for this space too.
    For my standard benchmark this patch gets back 44MB of memory
    when gdb starts.  [There's still ~440MB of memory used
    by the demangled ELF symbols of this benchmark, but that's another topic.]
    
    When the improved templated support is added,
    I wonder if this can be moved to struct symbol.
    Hmmm, we already have a special version of
    struct symbol for templates (struct template_symbol).
    
    gdb/ChangeLog:
    
    	* symtab.c (symbol_init_cplus_specific): Delete.
    	(symbol_set_demangled_name): Remove special c++ support.
    	(symbol_get_demangled_name, symbol_set_language): Ditto.
    	* symtab.h (struct cplus_specific): Delete.
    	(struct general_symbol_info) <language_specific>: Remove
    	cplus_specific.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog |    9 +++++++++
 gdb/symtab.c  |   43 +++++--------------------------------------
 gdb/symtab.h  |   11 +----------
 3 files changed, 15 insertions(+), 48 deletions(-)


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]