Update years in copyright notice for the GDB files.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-signal.exp
CommitLineData
28e7fd62 1# Copyright 2007-2013 Free Software Foundation, Inc.
93d42b30
DJ
2
3# This file is part of the GDB testsuite.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
e22f8b7c 7# the Free Software Foundation; either version 3 of the License, or
93d42b30
DJ
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
e22f8b7c 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
93d42b30
DJ
17
18if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then {
19 verbose "Skipping i386 unwinder tests."
20 return
21}
22
23set testfile "i386-signal"
24set srcfile ${testfile}.c
25set binfile ${objdir}/${subdir}/${testfile}
26
27if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
28 executable { debug }] != "" } {
3b48433d 29 untested ${testfile}.exp
93d42b30
DJ
30 return -1
31}
32
33gdb_exit
34gdb_start
35gdb_reinitialize_dir $srcdir/$subdir
36gdb_load ${binfile}
37
38runto func
39gdb_test "backtrace 10" \
40 "#0 ($hex in )?func.*\r\n#1 <signal handler called>\r\n#2 ($hex in)?main.*"
41
42gdb_test "finish" "Run till exit from \#0 func.*<signal handler called>"
This page took 0.620987 seconds and 4 git commands to generate.