* gdb.base/stack-checking.c: New file.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / page.exp
CommitLineData
9b254dd1
DJ
1# Copyright 1992, 1994, 1995, 1999, 2002, 2007, 2008
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
19if $tracelevel {
20 strace $tracelevel
21}
22
23global message
24global timeout
25
26set timeout 200
27
28gdb_exit
29gdb_start
b5356753 30
74cf1395 31gdb_test "set pagination off" ""
b5356753
AC
32gdb_test "show pagination" "State of pagination is off.*" "pagination is off"
33send_gdb "help\n"
34gdb_expect_list "unpaged help" ".*$gdb_prompt $" {
35 "List of classes of commands:"
36 ""
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"
49 ""
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."
53}
54
55
74cf1395 56gdb_test "set pagination on" ""
b5356753
AC
57gdb_test "show pagination" "State of pagination is on.*" "pagination is on"
58gdb_test "set height 10" ""
59send_gdb "help\n"
60gdb_expect_list "paged help" \
61 ".*---Type <return> to continue, or q <return> to quit---" {
62 "List of classes of commands:"
63 ""
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"
71}
72gdb_test "q"
73
74cf1395
JM
74
75gdb_exit
76return 0
77
This page took 0.797115 seconds and 4 git commands to generate.