| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 if [target_info exists gdb,nosignals] { | 24 if [target_info exists gdb,nosignals] { |
| 25 verbose "Skipping siginfo-addr.exp because of nosignals." | 25 verbose "Skipping siginfo-addr.exp because of nosignals." |
| 26 continue | 26 continue |
| 27 } | 27 } |
| 28 | 28 |
| 29 if [gdb_skip_stdio_test "siginfo-addr.exp"] { | 29 if [gdb_skip_stdio_test "siginfo-addr.exp"] { |
| 30 continue | 30 continue |
| 31 } | 31 } |
| 32 | 32 |
| 33 if $tracelevel then { | |
| 34 strace $tracelevel | |
| 35 } | |
| 36 | |
| 37 | 33 |
| 38 set testfile siginfo-addr | 34 set testfile siginfo-addr |
| 39 set srcfile ${testfile}.c | 35 set srcfile ${testfile}.c |
| 40 set binfile ${objdir}/${subdir}/${testfile} | 36 set binfile ${objdir}/${subdir}/${testfile} |
| 41 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 42 untested "Couldn't compile ${srcfile}.c" | 38 untested "Couldn't compile ${srcfile}.c" |
| 43 return -1 | 39 return -1 |
| 44 } | 40 } |
| 45 | 41 |
| 46 # get things started | 42 # get things started |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 # Check for correct si_addr. | 58 # Check for correct si_addr. |
| 63 set test "program exit" | 59 set test "program exit" |
| 64 gdb_test_multiple "continue" "${test}" { | 60 gdb_test_multiple "continue" "${test}" { |
| 65 -re "Correct si_addr" { | 61 -re "Correct si_addr" { |
| 66 pass "si_addr value" | 62 pass "si_addr value" |
| 67 } | 63 } |
| 68 -re "Got si_addr" { | 64 -re "Got si_addr" { |
| 69 fail "si_addr value" | 65 fail "si_addr value" |
| 70 } | 66 } |
| 71 } | 67 } |
| OLD | NEW |