OLD | NEW |
1 # Copyright 2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2004, 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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 # This test first confirms that GDB can backtrace through the | 22 # This test first confirms that GDB can backtrace through the |
23 # alternative sa_sigaction signal handler, and second that GDB can | 23 # alternative sa_sigaction signal handler, and second that GDB can |
24 # nexti/stepi out of such a handler. | 24 # nexti/stepi out of such a handler. |
25 | 25 |
26 if [target_info exists gdb,nosignals] { | 26 if [target_info exists gdb,nosignals] { |
27 verbose "Skipping signals.exp because of nosignals." | 27 verbose "Skipping signals.exp because of nosignals." |
28 continue | 28 continue |
29 } | 29 } |
30 | 30 |
31 if $tracelevel then { | |
32 strace $tracelevel | |
33 } | |
34 | |
35 | 31 |
36 set testfile siginfo | 32 set testfile siginfo |
37 set srcfile ${testfile}.c | 33 set srcfile ${testfile}.c |
38 set binfile ${objdir}/${subdir}/${testfile} | 34 set binfile ${objdir}/${subdir}/${testfile} |
39 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 35 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
40 untested "Couldn't compile ${srcfile}.c" | 36 untested "Couldn't compile ${srcfile}.c" |
41 return -1 | 37 return -1 |
42 } | 38 } |
43 | 39 |
44 # get things started | 40 # get things started |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 -re "(while ..done|return 0).*${gdb_prompt} $" { | 85 -re "(while ..done|return 0).*${gdb_prompt} $" { |
90 # After stepping out of a function /r signal-handler, GDB will | 86 # After stepping out of a function /r signal-handler, GDB will |
91 # advance the inferior until it is at the first instruction of | 87 # advance the inferior until it is at the first instruction of |
92 # a code-line. While typically things return to the middle of | 88 # a code-line. While typically things return to the middle of |
93 # the "while..." (and hence GDB advances the inferior to the | 89 # the "while..." (and hence GDB advances the inferior to the |
94 # "return..." line) it is also possible for the return to land | 90 # "return..." line) it is also possible for the return to land |
95 # on the first instruction of "while...". Accept both cases. | 91 # on the first instruction of "while...". Accept both cases. |
96 pass "$test" | 92 pass "$test" |
97 } | 93 } |
98 } | 94 } |
OLD | NEW |