diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-06 14:47:00 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-06 14:47:00 +0000 |
commit | 71918a863fdc11435a0f47a1b3e49bfdf44f6ef5 (patch) | |
tree | eec937131aa13c30d07f679b04e427899e4f7238 /gdb/testsuite | |
parent | fcde5961ebacc85a85adcf858c751dc9c11f8d58 (diff) | |
download | gdb-71918a863fdc11435a0f47a1b3e49bfdf44f6ef5.zip gdb-71918a863fdc11435a0f47a1b3e49bfdf44f6ef5.tar.gz gdb-71918a863fdc11435a0f47a1b3e49bfdf44f6ef5.tar.bz2 |
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/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/whatis.exp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ed2fcf1..6a297e2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2012-07-06 Tom Tromey <tromey@redhat.com> + * gdb.base/whatis.exp: Add regression test. + +2012-07-06 Tom Tromey <tromey@redhat.com> + * gdb.base/whatis.exp: Add tests. 2012-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> diff --git a/gdb/testsuite/gdb.base/whatis.exp b/gdb/testsuite/gdb.base/whatis.exp index 71f2e79..336901d 100644 --- a/gdb/testsuite/gdb.base/whatis.exp +++ b/gdb/testsuite/gdb.base/whatis.exp @@ -491,3 +491,7 @@ gdb_test "whatis int *(**)()" \ gdb_test "whatis char (*(*)())\[23\]" \ "type = char \\(\\*\\(\\*\\)\\(\\)\\)\\\[23\\\]" \ "whatis applied to pointer to function returning pointer to array" + +gdb_test "whatis int (*)(int, int)" \ + "type = int \\(\\*\\)\\(int, int\\)" \ + "whatis applied to pointer to function taking int,int and returning int" |