1 # Copyright 1992, 1994, 1995, 1999, 2002, 2007, 2008, 2009
2 # Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 # This file was written by Fred Fish. (fnf@cygnus.com)
31 gdb_test "set pagination off" ""
32 gdb_test "show pagination" "State of pagination is off.*" "pagination is off"
34 gdb_expect_list "unpaged help" ".*$gdb_prompt $" {
35 "List of classes of commands:"
37 "aliases -- Aliases of other commands"
38 "breakpoints -- Making program stop at certain points"
39 "data -- Examining data"
40 "files -- Specifying and examining files"
41 "internals -- Maintenance commands"
42 "obscure -- Obscure features"
43 "running -- Running the program"
44 "stack -- Examining the stack"
45 "status -- Status inquiries"
46 "support -- Support facilities"
47 "tracepoints -- Tracing of program execution without stopping the program"
48 "user-defined -- User-defined commands"
50 "Type .help. followed by a class name for a list of commands in that class."
51 "Type .help. followed by command name for full documentation."
52 "Command name abbreviations are allowed if unambiguous."
56 gdb_test "set pagination on" ""
57 gdb_test "show pagination" "State of pagination is on.*" "pagination is on"
58 gdb_test "set height 10" ""
60 gdb_expect_list "paged help" \
61 ".*---Type <return> to continue, or q <return> to quit---" {
62 "List of classes of commands:"
64 "aliases -- Aliases of other commands"
65 "breakpoints -- Making program stop at certain points"
66 "data -- Examining data"
67 "files -- Specifying and examining files"
68 "internals -- Maintenance commands"
69 "obscure -- Obscure features"
70 "running -- Running the program"