Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.arch / aix-sighandle.exp
CommitLineData
88b9d363 1# Copyright 2018-2022 Free Software Foundation, Inc.
cdcda965
SM
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
16if {![istarget "powerpc*-*-aix*"]} {
17 return
18}
19
20if { [prepare_for_testing "failed to prepare" aix-sighandle aix-sighandle.c] } {
21 return -1
22}
23
24set srcfile aix-sighandle.c
25set binfile aix-sighandle
26
27gdb_test "break sig_handle_aix" \
28 "Breakpoint.1.at.*:.file.*$srcfile,.line.22." \
29 "breakpoint sig_handle_aix"
30gdb_test "run" \
31 "Starting.program:.*$binfile.*\r\nProgram.received.signal.SIGSEGV,.*\r\n.*.in.foo.*.at.*$srcfile:29.*" \
32 "run to breakpoint sig_handle_aix"
33
34gdb_test "continue" \
35 "Continuing.*Breakpoint.1,.sig_handle_aix..signo=11..at.*$srcfile:22.*" \
36 "continue to breakpoint sig_handle_aix"
37
38gdb_test_sequence "backtrace" "backtrace for sighandle" {
39 "\[\r\n\]+#0 .* sig_handle_aix \\(signo=11\\) at "
40 "\[\r\n\]+#1 .* .signal.handler.called."
41 "\[\r\n\]+#2 .* foo \\(\\) at "
42 "\[\r\n\]+#3 .* main \\(\\) at "
43}
This page took 0.394643 seconds and 4 git commands to generate.