OSDN Git Service

* linespec.c: Include language.h.
authorPedro Alves <pedro@codesourcery.com>
Wed, 28 Mar 2007 00:12:15 +0000 (00:12 +0000)
committerPedro Alves <pedro@codesourcery.com>
Wed, 28 Mar 2007 00:12:15 +0000 (00:12 +0000)
commit2b0fa599d4a66e6bcbe07a603c98443851c16cf8
tree59236eac428c14e4f98dc5b21d45e1b0872f8adf
parent39b68c55e3b76a4136802b6170a298bbce894720
* linespec.c: Include language.h.
(find_methods): Add language parameter.  Call
lookup_symbol_in_language.  Pass language down.
(add_matching_methods): Likewise.  Call
lookup_symbol_in_language.
(add_constructors): Likewise.
(find_method): Pass sym_class to collect_methods.
(collect_methods): Add sym_class parameter.  Pass language
down.
* symtab.c (lookup_symbol): Rename to ...
(lookup_symbol_in_language): ... this.  Add language
parameter.  Use passed language instead of current_language.
(lookup_symbol): New as wrapper around
lookup_symbol_in_language.
(lookup_symbol_aux): Add language parameter.  Use passed
language instead of current_language.
(search_symbols): Indent.
* symtab.h (enum language): Forward declare.
(lookup_symbol_in_language): Declare.
(lookup_symbol): Update description.
* ada-lang.h (lookup_symbol_in_language): Remove declaration.
* ada-lang.c (restore_language): Remove.
(lookup_symbol_in_language): Remove.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-lang.h
gdb/linespec.c
gdb/symtab.c
gdb/symtab.h