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. 1994afbf19892c9e614a034fbf1a5233e9addce3


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  1994afbf19892c9e614a034fbf1a5233e9addce3 (commit)
      from  9d7b48dc6e8415e95f5228a6f66b414827eb0204 (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=1994afbf19892c9e614a034fbf1a5233e9addce3

commit 1994afbf19892c9e614a034fbf1a5233e9addce3
Author: Doug Evans <xdje42@gmail.com>
Date:   Tue Dec 23 07:55:39 2014 -0800

    Look up primitive types as symbols.
    
    gdb/ChangeLog:
    
    	* ada-lang.c (user_select_syms): Only fetch symtab if symbol is
    	objfile-owned.
    	(cache_symbol): Ignore symbols that are not objfile-owned.
    	* block.c (block_objfile): New function.
    	(block_gdbarch): New function.
    	* block.h (block_objfile): Declare.
    	(block_gdbarch): Declare.
    	* c-exp.y (classify_name): Remove call to
    	language_lookup_primitive_type.  No longer necessary.
    	* gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
    	Remove call to language_lookup_primitive_type.  No longer necessary.
    	* guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
    	(syscm_gdbarch_data): New struct.
    	(syscm_init_arch_symbols): New function.
    	(syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
    	All callers updated.  Handle symbols owned by arches.
    	(gdbscm_symbol_symtab): Handle symbols owned by arches.
    	(gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
    	* language.c (language_lookup_primitive_type_1): New function.
    	(language_lookup_primitive_type): Call it.
    	(language_alloc_type_symbol): New function.
    	(language_init_primitive_type_symbols): New function.
    	(language_lookup_primitive_type_as_symbol): New function.
    	* language.h (struct language_arch_info) <primitive_type_symbols>:
    	New member.
    	(language_lookup_primitive_type): Add function comment.
    	(language_lookup_primitive_type_as_symbol): Declare.
    	* printcmd.c (address_info): Handle arch-owned symbols.
    	* python/py-symbol.c (sympy_get_symtab): Ditto.
    	(set_symbol): Ditto.
    	(sympy_dealloc): Ditto.
    	* symmisc.c (print_symbol): Ditto.
    	* symtab.c (fixup_symbol_section): Ditto.
    	(lookup_symbol_aux): Initialize block_found.
    	(basic_lookup_symbol_nonlocal): Try looking up the symbol as a
    	primitive type.
    	(initialize_objfile_symbol_1): New function.
    	(initialize_objfile_symbol): Call it.
    	(allocate_symbol): Call it.
    	(allocate_template_symbol): Call it.
    	(symbol_objfile): Assert symbol is objfile-owned.
    	(symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
    	* symtab.h (struct symbol) <owner>: Replaces member "symtab".
    	(struct symbol) <is_objfile_owned>: New member.
    	(SYMBOL_OBJFILE_OWNED): New macro.
    	* cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
    	All callers updated.  Try to find the symbol as a primitive type.
    	(lookup_namespace_scope): New arg langdef.  All callers updated.
    	Call cp_lookup_bare_symbol directly for simple bare symbols.

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

Summary of changes:
 gdb/ChangeLog          |   52 +++++++++++++++++++
 gdb/ada-lang.c         |   10 +++-
 gdb/block.c            |   26 ++++++++++
 gdb/block.h            |    8 +++
 gdb/c-exp.y            |    7 ---
 gdb/cp-namespace.c     |   51 ++++++++++++++++---
 gdb/gdbtypes.c         |    7 +--
 gdb/guile/scm-symbol.c |   60 ++++++++++++++++++----
 gdb/language.c         |  130 ++++++++++++++++++++++++++++++++++++++++++------
 gdb/language.h         |   16 ++++++
 gdb/printcmd.c         |    5 ++-
 gdb/python/py-symbol.c |    7 ++-
 gdb/symmisc.c          |    8 ++-
 gdb/symtab.c           |   60 +++++++++++++++++++---
 gdb/symtab.h           |   27 +++++++++--
 15 files changed, 411 insertions(+), 63 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]