OLD | NEW |
1 # Copyright 2009-2012 Free Software Foundation, Inc. | 1 # Copyright 2009-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-reverse.exp because of nosignals." | 17 verbose "Skipping sigall-reverse.exp because of nosignals." |
18 return | 18 return |
19 } | 19 } |
20 | 20 |
21 if ![supports_reverse] { | 21 if ![supports_reverse] { |
22 return | 22 return |
23 } | 23 } |
24 | 24 |
25 if $tracelevel then { | |
26 strace $tracelevel | |
27 } | |
28 | |
29 | 25 |
30 gdb_exit | 26 gdb_exit |
31 gdb_start | 27 gdb_start |
32 gdb_reinitialize_dir $srcdir/$subdir | 28 gdb_reinitialize_dir $srcdir/$subdir |
33 | 29 |
34 set testfile sigall-reverse | 30 standard_testfile |
35 set srcfile ${testfile}.c | 31 |
36 set binfile ${objdir}/${subdir}/${testfile} | 32 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { |
37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 33 return -1 |
38 untested ${testfile}.exp | |
39 return -1 | |
40 } | 34 } |
41 | 35 |
42 # Make the first signal SIGABRT because it is always supported. | 36 # Make the first signal SIGABRT because it is always supported. |
43 set sig_supported 1 | 37 set sig_supported 1 |
44 set thissig "ABRT" | 38 set thissig "ABRT" |
45 | 39 |
46 proc test_one_sig {nextsig} { | 40 proc test_one_sig {nextsig} { |
47 global sig_supported | 41 global sig_supported |
48 global gdb_prompt | 42 global gdb_prompt |
49 global thissig | 43 global thissig |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 test_one_sig 55 | 395 test_one_sig 55 |
402 test_one_sig 56 | 396 test_one_sig 56 |
403 test_one_sig 57 | 397 test_one_sig 57 |
404 test_one_sig 58 | 398 test_one_sig 58 |
405 test_one_sig 59 | 399 test_one_sig 59 |
406 test_one_sig 60 | 400 test_one_sig 60 |
407 test_one_sig 61 | 401 test_one_sig 61 |
408 test_one_sig 62 | 402 test_one_sig 62 |
409 test_one_sig 63 | 403 test_one_sig 63 |
410 test_one_sig TERM | 404 test_one_sig TERM |
OLD | NEW |