2012-01-16 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / page.exp
1 # Copyright 1992, 1994-1995, 1999, 2002, 2007-2012 Free Software
2 # Foundation, Inc.
3
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.
8 #
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.
13 #
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/>. */
16
17 # This file was written by Fred Fish. (fnf@cygnus.com)
18
19 gdb_exit
20 gdb_start
21
22 gdb_test_no_output "set pagination off"
23 gdb_test "show pagination" "State of pagination is off.*" "pagination is off"
24 gdb_test_sequence "help" "unpaged help" {
25 "List of classes of commands:"
26 ""
27 "aliases -- Aliases of other commands"
28 "breakpoints -- Making program stop at certain points"
29 "data -- Examining data"
30 "files -- Specifying and examining files"
31 "internals -- Maintenance commands"
32 "obscure -- Obscure features"
33 "running -- Running the program"
34 "stack -- Examining the stack"
35 "status -- Status inquiries"
36 "support -- Support facilities"
37 "tracepoints -- Tracing of program execution without stopping the program"
38 "user-defined -- User-defined commands"
39 ""
40 "Type .help. followed by a class name for a list of commands in that class."
41 "Type .help. followed by command name for full documentation."
42 "Command name abbreviations are allowed if unambiguous."
43 }
44
45
46 gdb_test_no_output "set pagination on"
47 gdb_test "show pagination" "State of pagination is on.*" "pagination is on"
48 gdb_test_no_output "set height 10"
49 send_gdb "help\n"
50 gdb_expect_list "paged help" \
51 ".*---Type <return> to continue, or q <return> to quit---" {
52 "List of classes of commands:"
53 ""
54 "aliases -- Aliases of other commands"
55 "breakpoints -- Making program stop at certain points"
56 "data -- Examining data"
57 "files -- Specifying and examining files"
58 "internals -- Maintenance commands"
59 "obscure -- Obscure features"
60 "running -- Running the program"
61 }
62 gdb_test "q"
63
64
65 gdb_exit
66 return 0
67
This page took 0.033089 seconds and 5 git commands to generate.