From 6837a0a2a98f17adfd4b3723b6130d3ae4ae258e Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Thu, 23 Mar 2000 23:21:27 +0000 Subject: Added the apropos command --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/help.exp | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 47bc29f..ded1f39 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-03-22 Daniel Berlin + + * gdb.base/help.exp: Added test for new apropos command. + 2000-03-21 Kevin Buettner * gdb.base/pointers.c (usevar): New function. diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp index c78bd89..9515132 100644 --- a/gdb/testsuite/gdb.base/help.exp +++ b/gdb/testsuite/gdb.base/help.exp @@ -540,3 +540,9 @@ gdb_test "help x" "Examine memory: x/FMT ADDRESS..*\[\r\n\]+ADDRESS is an expres gdb_test "help info bogus-gdb-command" "Undefined info command: \"bogus-gdb-command\". Try \"help info\"." "help info bogus-gdb-command" # test help gotcha gdb_test "help gotcha" "Undefined command: \"gotcha\". Try \"help\"." "help gotcha" +# test apropos regex +gdb_test "apropos \\\(print\[\^ bsiedf\\\".\]\\\)" "handle -- Specify how to handle a signal" +# test apropos >1 word string +gdb_test "apropos handle a signal" "handle -- Specify how to handle a signal" +# test apropos apropos +gdb_test "apropos apropos" "apropos -- Search for commands matching a REGEXP" -- cgit v1.1