1 # Copyright (C) 1992, 1994-1995, 2007-2012 Free Software Foundation,
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)
23 if { [skip_hp_tests] } then { continue }
26 # test running programs
30 set srcfile ${testfile}.c
31 set binfile ${objdir}/${subdir}/${testfile}
32 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
37 if [get_compiler_info ${binfile}] {
40 if { $gcc_compiled } then { continue }
43 set saved_gdbflags $GDBFLAGS
45 set GDBFLAGS "$GDBFLAGS --xdb"
49 gdb_reinitialize_dir $srcdir/$subdir
52 gdb_test "set pagination off" ""
53 gdb_test "show pagination" "State of pagination is off."
54 gdb_test "set pagination on" ""
55 gdb_test "show pagination" "State of pagination is on."
57 gdb_test "txbreak callee" "Breakpoint.*at.*"
58 gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*del.*y.*"
60 gdb_test "xbreak callee" "Breakpoint.*at.*.*"
61 gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*keep.*y.*"
64 set GDBFLAGS $saved_gdbflags