| OLD | NEW |
| 1 # Copyright 1995-1997, 1999, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1995-1997, 1999, 2007-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 # This program is free software; you can redistribute it and/or modify | 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 | 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 | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 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/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 |
| 16 if [target_info exists gdb,nosignals] { | 16 if [target_info exists gdb,nosignals] { |
| 17 verbose "Skipping sigall.exp because of nosignals." | 17 verbose "Skipping sigall.exp because of nosignals." |
| 18 continue | 18 continue |
| 19 } | 19 } |
| 20 | 20 |
| 21 if $tracelevel then { | |
| 22 strace $tracelevel | |
| 23 } | |
| 24 | |
| 25 | 21 |
| 26 gdb_exit | 22 gdb_exit |
| 27 gdb_start | 23 gdb_start |
| 28 gdb_reinitialize_dir $srcdir/$subdir | 24 gdb_reinitialize_dir $srcdir/$subdir |
| 29 | 25 |
| 30 set testfile sigall | 26 set testfile sigall |
| 31 set srcfile ${testfile}.c | 27 set srcfile ${testfile}.c |
| 32 set binfile ${objdir}/${subdir}/${testfile} | 28 set binfile ${objdir}/${subdir}/${testfile} |
| 33 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 29 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 34 untested sigall.exp | 30 untested sigall.exp |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 gdb_test "handle SIGTERM stop print" \ | 181 gdb_test "handle SIGTERM stop print" \ |
| 186 "SIGTERM\[ \t\]*Yes\[ \t\]*Yes\[ \t\]*Yes.*" | 182 "SIGTERM\[ \t\]*Yes\[ \t\]*Yes\[ \t\]*Yes.*" |
| 187 gdb_test "b handle_TERM" "Breakpoint \[0-9\]+ .*" | 183 gdb_test "b handle_TERM" "Breakpoint \[0-9\]+ .*" |
| 188 gdb_test "continue" \ | 184 gdb_test "continue" \ |
| 189 "Continuing.*Program received signal SIGTERM.*" \ | 185 "Continuing.*Program received signal SIGTERM.*" \ |
| 190 "get signal TERM" | 186 "get signal TERM" |
| 191 gdb_test "continue" "Breakpoint.*handle_TERM.*" "send signal TERM" | 187 gdb_test "continue" "Breakpoint.*handle_TERM.*" "send signal TERM" |
| 192 gdb_continue_to_end "continue to sigall exit" | 188 gdb_continue_to_end "continue to sigall exit" |
| 193 | 189 |
| 194 return 0 | 190 return 0 |
| OLD | NEW |