* ada-lang.c (ada_make_symbol_completion_list): Add 'code'
authorTom Tromey <tromey@redhat.com>
Fri, 7 Dec 2012 20:09:11 +0000 (20:09 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 7 Dec 2012 20:09:11 +0000 (20:09 +0000)
commit2f68a89553836f68b8676beda9287c93e489bc6e
tree660cfb00b6001f1f1c3ee19051b85682cf2ce286
parent155da5173d74221a3099c22c27de1e8e2214982b
* ada-lang.c (ada_make_symbol_completion_list): Add 'code'
argument, assertion.
* c-exp.y (typebase): Add completion productions.
* completer.c (expression_completer): Handle tag completion.
* expression.h (parse_expression_for_completion): Add argument.
* f-lang.c (f_make_symbol_completion_list): Add 'code'
argument.
* language.h (struct language_defn)
<la_make_symbol_completion_list>: Add 'code' argument.
* parse.c (expout_tag_completion_type, expout_completion_name):
New globals.
(mark_struct_expression): Add assertion.
(mark_completion_tag): New function.
(parse_exp_in_context): Initialize new globals.
(parse_expression_for_completion): Add 'code' argument.  Handle
tag completion.
* parser-defs.h (mark_completion_tag): Declare.
* symtab.c (default_make_symbol_completion_list_break_on): Add
'code' argument.  Update.
(default_make_symbol_completion_list): Add 'code' argument.
(make_symbol_completion_list): Update.
(make_symbol_completion_type): New function.
* symtab.h (default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list): Update.
(make_symbol_completion_type): Declare.
testsuite
* gdb.base/break1.c (enum some_enum, union some_union): New.
(some_enum_global, some_union_global, some_value): New globals.
* gdb.base/completion.exp: Add tag completion tests.
14 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/c-exp.y
gdb/completer.c
gdb/expression.h
gdb/f-lang.c
gdb/language.h
gdb/parse.c
gdb/parser-defs.h
gdb/symtab.c
gdb/symtab.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break1.c
gdb/testsuite/gdb.base/completion.exp