PR exp/9608:
authorTom Tromey <tromey@redhat.com>
Fri, 6 Jul 2012 14:47:00 +0000 (14:47 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 6 Jul 2012 14:47:00 +0000 (14:47 +0000)
commit71918a863fdc11435a0f47a1b3e49bfdf44f6ef5
treeeec937131aa13c30d07f679b04e427899e4f7238
parentfcde5961ebacc85a85adcf858c751dc9c11f8d58
PR exp/9608:
* c-exp.y (%union) <tvec>: Change type.
(func_mod): Now uses <tvec> type.
(exp): Update for tvec change.
(direct_abs_decl): Push the typelist.
(func_mod): Return a typelist.
(nonempty_typelist): Update for tvec change.
* gdbtypes.c (lookup_function_type_with_arguments): New function.
* gdbtypes.h (lookup_function_type_with_arguments): Declare.
* parse.c (pop_type_list): New function.
(push_typelist): New function.
(follow_types): Handle tp_function_with_arguments.
* parser-defs.h (type_ptr): New typedef.  Define a VEC.
(enum type_pieces) <tp_function_with_arguments>: New constant.
(union type_stack_elt) <typelist_val>: New field.
(push_typelist): Declare.
testsuite
* gdb.base/whatis.exp: Add regression test.
gdb/ChangeLog
gdb/c-exp.y
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/parse.c
gdb/parser-defs.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/whatis.exp