| OLD | NEW |
| 1 # Copyright 2004, 2007-2008, 2010-2012 Free Software Foundation, Inc. | 1 # Copyright 2004, 2007-2008, 2010-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 15 matching lines...) Expand all Loading... |
| 26 continue | 26 continue |
| 27 } | 27 } |
| 28 | 28 |
| 29 if { ! [istarget "i?86-*-linux*"] | 29 if { ! [istarget "i?86-*-linux*"] |
| 30 && ! [istarget "x86_64-*-linux*"] | 30 && ! [istarget "x86_64-*-linux*"] |
| 31 && ! [istarget "arm*-*-linux*"] } { | 31 && ! [istarget "arm*-*-linux*"] } { |
| 32 verbose "Skipping siginfo-obj.exp because of lack of support." | 32 verbose "Skipping siginfo-obj.exp because of lack of support." |
| 33 return | 33 return |
| 34 } | 34 } |
| 35 | 35 |
| 36 if $tracelevel then { | |
| 37 strace $tracelevel | |
| 38 } | |
| 39 | |
| 40 | 36 |
| 41 set testfile siginfo-obj | 37 set testfile siginfo-obj |
| 42 set srcfile ${testfile}.c | 38 set srcfile ${testfile}.c |
| 43 set binfile ${objdir}/${subdir}/${testfile} | 39 set binfile ${objdir}/${subdir}/${testfile} |
| 44 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 40 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 45 untested "Couldn't compile ${srcfile}.c" | 41 untested "Couldn't compile ${srcfile}.c" |
| 46 return -1 | 42 return -1 |
| 47 } | 43 } |
| 48 | 44 |
| 49 # get things started | 45 # get things started |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 gdb_test "p \$_siginfo.si_code = 999" " = 999" | 116 gdb_test "p \$_siginfo.si_code = 999" " = 999" |
| 121 gdb_test "p \$_siginfo.si_signo = 11" " = 11" | 117 gdb_test "p \$_siginfo.si_signo = 11" " = 11" |
| 122 | 118 |
| 123 gdb_test "break $bp_location" | 119 gdb_test "break $bp_location" |
| 124 gdb_test "continue" ".* handler .*" "continue to handler" | 120 gdb_test "continue" ".* handler .*" "continue to handler" |
| 125 | 121 |
| 126 gdb_test "p ssi_addr" " = \\(void \\*\\) 0x666" | 122 gdb_test "p ssi_addr" " = \\(void \\*\\) 0x666" |
| 127 gdb_test "p ssi_errno" " = 666" | 123 gdb_test "p ssi_errno" " = 666" |
| 128 gdb_test "p ssi_code" " = 999" | 124 gdb_test "p ssi_code" " = 999" |
| 129 gdb_test "p ssi_signo" " = 11" | 125 gdb_test "p ssi_signo" " = 11" |
| OLD | NEW |