diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-07 19:58:10 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-07 19:58:10 +0000 |
commit | 4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7 (patch) | |
tree | 0351d47efcf85fd721a20096a8cd305cb816d418 /gdb/testsuite/gdb.base/completion.exp | |
parent | 7708f7ef37a45253153d7c739a86668ed62d5a1b (diff) | |
download | gdb-4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7.zip gdb-4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7.tar.gz 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/gdb.base/completion.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/completion.exp | 8 |
1 files changed, 8 insertions, 0 deletions
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 |