aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/help.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-11-05 16:55:40 +0000
committerDoug Evans <dje@google.com>2010-11-05 16:55:40 +0000
commit99e7ae30ed872f3f81762504c930634c47055b7c (patch)
treefdd7ee6a246229733a3ea0483e8a5a00d239104f /gdb/testsuite/gdb.base/help.exp
parentf4b8a18de7f165283091323b11e9e363dadb8b62 (diff)
downloadgdb-99e7ae30ed872f3f81762504c930634c47055b7c.zip
gdb-99e7ae30ed872f3f81762504c930634c47055b7c.tar.gz
gdb-99e7ae30ed872f3f81762504c930634c47055b7c.tar.bz2
Make gdb.parameter("directories") work.
New command "set directories". * NEWS: Document them. * source.c (set_directories_command): New function. (show_directories_1): Renamed from show_directories. All callers updated. (show_directories_command): New function. (_initialize_source): Install "directories" as a set/show variable instead of just a show command. doc/ * gdb.texinfo (Source Path): Document "set directories". testsuite/ * gdb.base/help.exp: Update expected output. * gdb.python/py-parameter.exp: New file.
Diffstat (limited to 'gdb/testsuite/gdb.base/help.exp')
-rw-r--r--gdb/testsuite/gdb.base/help.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp
index 6e70b9d..805cc86 100644
--- a/gdb/testsuite/gdb.base/help.exp
+++ b/gdb/testsuite/gdb.base/help.exp
@@ -507,7 +507,7 @@ gdb_test "help show confirm" "Show whether to confirm potentially dangerous oper
# test help show convenience
gdb_test "help show convenience" "Debugger convenience \\(\"\\\$foo\"\\) variables\.\[\r\n\]+These variables are created when you assign them values;\[\r\n\]+thus, \"print \\\$foo=1\" gives \"\\\$foo\" the value 1\. Values may be any type\.\[\r\n\]+A few convenience variables are given values automatically:\[\r\n\]+\"\\\$_\"holds the last address examined with \"x\" or \"info lines\",\[\r\n\]+\"\\\$__\" holds the contents of the last address examined with \"x\"\." "help show convenience"
# test help show directories
-gdb_test "help show directories" "Current search path for finding source files\.\[\r\n\]+\\\$cwd in the path means the current working directory\.\[\r\n\]+\\\$cdir in the path means the compilation directory of the source file\." "help show directories"
+gdb_test "help show directories" "Show the search path for finding source files\.\[\r\n\]+\\\$cwd in the path means the current working directory\.\[\r\n\]+\\\$cdir in the path means the compilation directory of the source file\..*" "help show directories"
# test help show editing
gdb_test "help show editing" "Show editing of command lines as they are typed\.\[\r\n\]+Use \"on\" to enable the editing, and \"off\" to disable it\.\[\r\n\]+Without an argument, command line editing is enabled\. To edit, use\[\r\n\]+EMACS-like or VI-like commands like control-P or ESC\." "help show editing"
# test help show environment