Commit | Line | Data |
---|---|---|
ecd75fc8 | 1 | # Copyright 1992-2014 Free Software Foundation, Inc. |
74cf1395 JM |
2 | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
e22f8b7c | 5 | # the Free Software Foundation; either version 3 of the License, or |
74cf1395 JM |
6 | # (at your option) any later version. |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
e22f8b7c | 14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
74cf1395 | 15 | |
74cf1395 JM |
16 | # This file was written by Fred Fish. (fnf@cygnus.com) |
17 | ||
74cf1395 JM |
18 | gdb_exit |
19 | gdb_start | |
b5356753 | 20 | |
27d3a1a2 | 21 | gdb_test_no_output "set pagination off" |
b5356753 | 22 | gdb_test "show pagination" "State of pagination is off.*" "pagination is off" |
5fa290c1 | 23 | gdb_test_sequence "help" "unpaged help" { |
b5356753 AC |
24 | "List of classes of commands:" |
25 | "" | |
26 | "aliases -- Aliases of other commands" | |
27 | "breakpoints -- Making program stop at certain points" | |
28 | "data -- Examining data" | |
29 | "files -- Specifying and examining files" | |
30 | "internals -- Maintenance commands" | |
31 | "obscure -- Obscure features" | |
32 | "running -- Running the program" | |
33 | "stack -- Examining the stack" | |
34 | "status -- Status inquiries" | |
35 | "support -- Support facilities" | |
36 | "tracepoints -- Tracing of program execution without stopping the program" | |
37 | "user-defined -- User-defined commands" | |
38 | "" | |
39 | "Type .help. followed by a class name for a list of commands in that class." | |
40 | "Type .help. followed by command name for full documentation." | |
41 | "Command name abbreviations are allowed if unambiguous." | |
42 | } | |
43 | ||
44 | ||
27d3a1a2 | 45 | gdb_test_no_output "set pagination on" |
b5356753 | 46 | gdb_test "show pagination" "State of pagination is on.*" "pagination is on" |
27d3a1a2 | 47 | gdb_test_no_output "set height 10" |
b5356753 AC |
48 | send_gdb "help\n" |
49 | gdb_expect_list "paged help" \ | |
50 | ".*---Type <return> to continue, or q <return> to quit---" { | |
51 | "List of classes of commands:" | |
52 | "" | |
53 | "aliases -- Aliases of other commands" | |
54 | "breakpoints -- Making program stop at certain points" | |
55 | "data -- Examining data" | |
56 | "files -- Specifying and examining files" | |
57 | "internals -- Maintenance commands" | |
58 | "obscure -- Obscure features" | |
59 | "running -- Running the program" | |
60 | } | |
61 | gdb_test "q" | |
62 | ||
74cf1395 JM |
63 | |
64 | gdb_exit | |
65 | return 0 | |
66 |