* gdb.base/annota1.exp (break handle_USR1): Make fail and pass text
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-permbkpt.exp
CommitLineData
4c38e0a4 1# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
aae64587
PA
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
5# the Free Software Foundation; either version 3 of the License, or
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
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
17# This file is part of the gdb testsuite.
18
19if $tracelevel {
20 strace $tracelevel
21}
22
23# Test inserting breakpoints over permanent breakpoints on i386 and amd64.
24
25if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then {
26 verbose "Skipping i386 test for multi break at permanent breakpoint location."
27 return
28}
29
30set testfile "i386-permbkpt"
31set srcfile ${testfile}.S
32set binfile ${objdir}/${subdir}/${testfile}
33
34# Some targets have leading underscores on assembly symbols.
35# TODO: detect this automatically
36set additional_flags ""
37if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then {
38 set additional_flags "additional_flags=-DSYMBOL_PREFIX=_"
39}
40
41if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
42 untested i386-permbkpt.exp
43 return -1
44}
45
46gdb_exit
47gdb_start
48gdb_reinitialize_dir $srcdir/$subdir
49gdb_load ${binfile}
50
51gdb_test "break main" "" "First permanent break"
52gdb_test "break main" "" "Second permanent break"
This page took 0.153356 seconds and 4 git commands to generate.