binutils-gdb/gdb/python
Doug Evans 1994afbf19 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.
2014-12-23 07:58:14 -08:00
..
lib/gdb python extended prompt: Use os.getcwd() instead of os.getcwdu() 2014-12-15 11:40:00 -05:00
py-arch.c
py-auto-load.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-block.c Split struct symtab into two: struct symtab and compunit_symtab. 2014-11-20 07:47:44 -08:00
py-bpevent.c
py-breakpoint.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-cmd.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-continueevent.c
py-event.c
py-event.h New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-events.h New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-evtregistry.c
py-evts.c New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-exitedevent.c
py-finishbreakpoint.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-frame.c Replace some symbol accessor macros with functions. 2014-12-23 07:21:10 -08:00
py-framefilter.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-function.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-gdb-readline.c Fix build with Python 3.4 (PR python/16784) 2014-12-15 11:40:00 -05:00
py-inferior.c New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-infevents.c New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-infthread.c New python events: inferior call, register/memory changed. 2014-12-02 11:15:29 -08:00
py-lazy-string.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-linetable.c symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated. 2014-11-18 09:32:10 -08:00
py-newobjfileevent.c New python event "clear_objfiles". 2014-10-17 11:12:17 -07:00
py-objfile.c New python function gdb.lookup_objfile. 2014-12-12 09:48:13 -08:00
py-param.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-prettyprint.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
py-progspace.c Add ability to add attributes to gdb.Objfile and gdb.Progspace objects. 2014-10-30 17:05:17 -07:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Look up primitive types as symbols. 2014-12-23 07:58:14 -08:00
py-symtab.c Split struct symtab into two: struct symtab and compunit_symtab. 2014-11-20 07:47:44 -08:00
py-threadevent.c
py-type.c Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT. 2014-11-06 17:19:06 -08:00
py-utils.c
py-value.c Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT. 2014-11-06 17:19:06 -08:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h New python function gdb.lookup_objfile. 2014-12-12 09:48:13 -08:00
python.c New python function gdb.lookup_objfile. 2014-12-12 09:48:13 -08:00
python.h