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 |
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 # This file is part of the gdb testsuite. | 16 # This file is part of the gdb testsuite. |
17 | 17 |
18 if $tracelevel { | |
19 strace $tracelevel | |
20 } | |
21 | |
22 | 18 |
23 # Test handling of nullified instructions for the pa target. | 19 # Test handling of nullified instructions for the pa target. |
24 | 20 |
25 switch -glob -- [istarget] { | 21 switch -glob -- [istarget] { |
26 "hppa-*-*" { | 22 "hppa-*-*" { |
27 set testfile "pa-nullify" | 23 set testfile "pa-nullify" |
28 } | 24 } |
29 "hppa64-*-*" { | 25 "hppa64-*-*" { |
30 set testfile "pa64-nullify" | 26 set testfile "pa64-nullify" |
31 } | 27 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 148 } |
153 | 149 |
154 set test "core at nullified insn" | 150 set test "core at nullified insn" |
155 if { ! [ runto_main ] } then { gdb_suppress_tests; } | 151 if { ! [ runto_main ] } then { gdb_suppress_tests; } |
156 gdb_breakpoint "*$foo_last" | 152 gdb_breakpoint "*$foo_last" |
157 gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakp
oint" | 153 gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakp
oint" |
158 gdb_test "stepi" ".*in foo.*" "$test: step to nullified instruction" | 154 gdb_test "stepi" ".*in foo.*" "$test: step to nullified instruction" |
159 if [gen_core $test] { | 155 if [gen_core $test] { |
160 test_core_bt $test | 156 test_core_bt $test |
161 } | 157 } |
OLD | NEW |