summaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-06 14:48:47 +0000
committerTom Tromey <tromey@redhat.com>2012-07-06 14:48:47 +0000
commitd479bbcb47a1dacba22919cfdb47db696e95f932 (patch)
treee9f368fff99394ed52fd0cccd83633913f6cd850 /gdb/parse.c
parent484118c3151e97ad0207fe6a6f35438e64d3c65a (diff)
downloadgdb-d479bbcb47a1dacba22919cfdb47db696e95f932.tar.gz
* c-exp.y (DOTDOTDOT): New token.
(func_mod, exp): Use parameter_typelist. (parameter_typelist): New production. (tokentab3): Add "..." token. * eval.c (make_params): Handle varargs. * gdbtypes.c (lookup_function_type_with_arguments): Handle varargs. testsuite * gdb.base/whatis.exp: Add test.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r--gdb/parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 897002d9115..529c517c25e 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -1555,7 +1555,8 @@ type_stack_cleanup (void *arg)
}
/* Push a function type with arguments onto the global type stack.
- LIST holds the argument types. */
+ LIST holds the argument types. If the final item in LIST is NULL,
+ then the function will be varargs. */
void
push_typelist (VEC (type_ptr) *list)