OSDN Git Service

modified: utilsrc/src/Admin/Makefile
[eos/others.git] / utilsrc / srcX86MAC64 / Admin / gdb-7.7.1 / gdb / testsuite / gdb.base / kill-after-signal.exp
1 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
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 standard_testfile .c
17
18 if { ![can_single_step_to_signal_handler] } {
19     untested ${testfile}.exp
20     return
21 }
22
23 if [target_info exists gdb,nosignals] {
24     verbose "Skipping kill-after-signal.exp because of nosignals."
25     continue
26 }
27
28 if [prepare_for_testing ${testfile}.exp ${testfile}] {
29     return -1
30 }
31
32 gdb_test "handle SIGUSR1 stop print pass" "SIGUSR1\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+.*"
33
34 if ![runto_main] {
35     return -1
36 }
37
38 gdb_test "continue" "Program received signal SIGUSR1, .*"
39 gdb_test "stepi" "\r\nhandler .*"
40 gdb_test "kill" "^y" "kill" "Kill the program being debugged\\? \\(y or n\\) $" "y"