diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-06 14:46:59 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-06 14:46:59 +0000 |
commit | 484118c3151e97ad0207fe6a6f35438e64d3c65a (patch) | |
tree | 9f4e448882ab439f6697f88df2aac4581de4579f /gdb/gdbtypes.h | |
parent | 42ad8e35a1273caaefa962edf8324845445218c1 (diff) | |
download | gdb-484118c3151e97ad0207fe6a6f35438e64d3c65a.tar.gz |
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.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 3b4edea21e4..17bfbc55b31 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1520,6 +1520,10 @@ extern struct type *make_function_type (struct type *, struct type **); extern struct type *lookup_function_type (struct type *); +extern struct type *lookup_function_type_with_arguments (struct type *, + int, + struct type **); + extern struct type *create_range_type (struct type *, struct type *, LONGEST, LONGEST); |