aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-06 14:48:48 +0000
committerTom Tromey <tromey@redhat.com>2012-07-06 14:48:48 +0000
commita6fb9c08a9ac65df98ca8829f43083feda19a6fe (patch)
tree6bda910f53fe801f12d20dd438c721c60ad7bd79 /gdb/testsuite
parent71918a863fdc11435a0f47a1b3e49bfdf44f6ef5 (diff)
downloadgdb-a6fb9c08a9ac65df98ca8829f43083feda19a6fe.zip
gdb-a6fb9c08a9ac65df98ca8829f43083feda19a6fe.tar.gz
gdb-a6fb9c08a9ac65df98ca8829f43083feda19a6fe.tar.bz2
* 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/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/whatis.exp4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6a297e2..fdc921d 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 test.
+
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
* gdb.base/whatis.exp: Add regression test.
2012-07-06 Tom Tromey <tromey@redhat.com>
diff --git a/gdb/testsuite/gdb.base/whatis.exp b/gdb/testsuite/gdb.base/whatis.exp
index 336901d..9365485 100644
--- a/gdb/testsuite/gdb.base/whatis.exp
+++ b/gdb/testsuite/gdb.base/whatis.exp
@@ -495,3 +495,7 @@ gdb_test "whatis char (*(*)())\[23\]" \
gdb_test "whatis int (*)(int, int)" \
"type = int \\(\\*\\)\\(int, int\\)" \
"whatis applied to pointer to function taking int,int and returning int"
+
+gdb_test "whatis int (*)(const int *, ...)" \
+ "type = int \\(\\*\\)\\(const int \\*, \\.\\.\\.\\)" \
+ "whatis applied to pointer to function taking const int ptr and varargs and returning int"