aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-12-07 19:58:10 +0000
committerTom Tromey <tromey@redhat.com>2012-12-07 19:58:10 +0000
commit4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7 (patch)
tree0351d47efcf85fd721a20096a8cd305cb816d418 /gdb/testsuite
parent7708f7ef37a45253153d7c739a86668ed62d5a1b (diff)
downloadfsf-binutils-gdb-4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7.zip
fsf-binutils-gdb-4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7.tar.gz
fsf-binutils-gdb-4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7.tar.bz2
* typeprint.c (_initialize_typeprint): Set completer
for "whatis" and "ptype". testsuite * gdb.base/completion.exp: Add tests for ptype and whatis completion.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/completion.exp8
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2cc6d25..0bdd094 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-07 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/completion.exp: Add tests for ptype and whatis
+ completion.
+
2012-12-07 Joel Brobecker <brobecker@adacore.com>
* gdb.base/stale-infcall.exp: Fix copyright line.
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index 80f7032..c8edc98 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -555,6 +555,14 @@ gdb_test "complete p &values\[0\]->z" \
"p &values.0.->z_field" \
"completion of field in anonymous union"
+gdb_test "complete ptype &values\[0\]->z" \
+ "ptype &values.0.->z_field" \
+ "ptype completion of field in anonymous union"
+
+gdb_test "complete whatis &values\[0\]->z" \
+ "whatis &values.0.->z_field" \
+ "whatis completion of field in anonymous union"
+
# The following tests used to simply try to complete `${objdir}/file',
# and so on. The problem is that ${objdir} can be very long; the
# completed filename may be more than eighty characters wide. When