]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.hp/gdb.compat/xdb1.exp
Do not set prms_id/bug_id anymore.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / gdb.compat / xdb1.exp
CommitLineData
4c38e0a4 1# Copyright (C) 1992, 1994, 1995, 2007, 2008, 2009, 2010
0fb0cc75 2# Free Software Foundation, Inc.
7be570e7
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
7be570e7
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/>. */
7be570e7 16
7be570e7
JM
17# This file was written by Fred Fish. (fnf@cygnus.com)
18
19if $tracelevel then {
20 strace $tracelevel
21 }
22
23if { [skip_hp_tests] } then { continue }
24
25global usestubs
26
27#
28# test running programs
29#
7be570e7
JM
30
31set testfile "xdb"
32set srcfile ${testfile}.c
33set binfile ${objdir}/${subdir}/${testfile}
34if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
b60f0898
JB
35 untested xdb1.exp
36 return -1
7be570e7
JM
37}
38
39if [get_compiler_info ${binfile}] {
40 return -1;
41}
42if { $gcc_compiled } then { continue }
43
44global GDBFLAGS
45set saved_gdbflags $GDBFLAGS
46
47set GDBFLAGS "$GDBFLAGS --xdb"
48
49gdb_exit
50gdb_start
51gdb_reinitialize_dir $srcdir/$subdir
52gdb_load ${binfile}
53
54gdb_test "set pagination off" ""
55gdb_test "show pagination" "State of pagination is off."
56gdb_test "set pagination on" ""
57gdb_test "show pagination" "State of pagination is on."
58
59gdb_test "txbreak callee" "Breakpoint.*at.*"
60gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*del.*y.*"
61
62gdb_test "xbreak callee" "Breakpoint.*at.*.*"
63gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*keep.*y.*"
64
65gdb_exit
66set GDBFLAGS $saved_gdbflags
67return 0
68
69
70
71
72
73
74