Commit | Line | Data |
---|---|---|
7b6bb8da | 1 | # Copyright 1992, 1994, 1995, 1999, 2002, 2007, 2008, 2009, 2010, 2011 |
9b254dd1 | 2 | # Free Software Foundation, Inc. |
74cf1395 JM |
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 | |
e22f8b7c | 6 | # the Free Software Foundation; either version 3 of the License, or |
74cf1395 JM |
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 | |
e22f8b7c | 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
74cf1395 | 16 | |
74cf1395 JM |
17 | # This file was written by Fred Fish. (fnf@cygnus.com) |
18 | ||
19 | if $tracelevel { | |
20 | strace $tracelevel | |
21 | } | |
22 | ||
74cf1395 JM |
23 | gdb_exit |
24 | gdb_start | |
b5356753 | 25 | |
27d3a1a2 | 26 | gdb_test_no_output "set pagination off" |
b5356753 | 27 | gdb_test "show pagination" "State of pagination is off.*" "pagination is off" |
5fa290c1 | 28 | gdb_test_sequence "help" "unpaged help" { |
b5356753 AC |
29 | "List of classes of commands:" |
30 | "" | |
31 | "aliases -- Aliases of other commands" | |
32 | "breakpoints -- Making program stop at certain points" | |
33 | "data -- Examining data" | |
34 | "files -- Specifying and examining files" | |
35 | "internals -- Maintenance commands" | |
36 | "obscure -- Obscure features" | |
37 | "running -- Running the program" | |
38 | "stack -- Examining the stack" | |
39 | "status -- Status inquiries" | |
40 | "support -- Support facilities" | |
41 | "tracepoints -- Tracing of program execution without stopping the program" | |
42 | "user-defined -- User-defined commands" | |
43 | "" | |
44 | "Type .help. followed by a class name for a list of commands in that class." | |
45 | "Type .help. followed by command name for full documentation." | |
46 | "Command name abbreviations are allowed if unambiguous." | |
47 | } | |
48 | ||
49 | ||
27d3a1a2 | 50 | gdb_test_no_output "set pagination on" |
b5356753 | 51 | gdb_test "show pagination" "State of pagination is on.*" "pagination is on" |
27d3a1a2 | 52 | gdb_test_no_output "set height 10" |
b5356753 AC |
53 | send_gdb "help\n" |
54 | gdb_expect_list "paged help" \ | |
55 | ".*---Type <return> to continue, or q <return> to quit---" { | |
56 | "List of classes of commands:" | |
57 | "" | |
58 | "aliases -- Aliases of other commands" | |
59 | "breakpoints -- Making program stop at certain points" | |
60 | "data -- Examining data" | |
61 | "files -- Specifying and examining files" | |
62 | "internals -- Maintenance commands" | |
63 | "obscure -- Obscure features" | |
64 | "running -- Running the program" | |
65 | } | |
66 | gdb_test "q" | |
67 | ||
74cf1395 JM |
68 | |
69 | gdb_exit | |
70 | return 0 | |
71 |