OLD | NEW |
1 # Copyright 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 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 # Please email any bugs, comments, and/or additions to this file to: | 16 # Please email any bugs, comments, and/or additions to this file to: |
17 # bug-gdb@gnu.org | 17 # bug-gdb@gnu.org |
18 | 18 |
19 # This file is part of the gdb testsuite. | 19 # This file is part of the gdb testsuite. |
20 | 20 |
21 # Unwinding of DW_CFA_GNU_negative_offset_extended test program. | 21 # Unwinding of DW_CFA_GNU_negative_offset_extended test program. |
22 | 22 |
23 if $tracelevel { | |
24 strace $tracelevel | |
25 } | |
26 | |
27 # Test i386 unwinder. | 23 # Test i386 unwinder. |
28 | 24 |
29 | 25 |
30 if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] }
then { | 26 if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] }
then { |
31 verbose "Skipping i386 unwinder tests." | 27 verbose "Skipping i386 unwinder tests." |
32 return | 28 return |
33 } | 29 } |
34 | 30 |
35 set testfile "i386-gnu-cfi" | 31 set testfile "i386-gnu-cfi" |
36 set srcfilec ${testfile}.c | 32 set srcfilec ${testfile}.c |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 gdb_test_multiple "info frame" "Existence of the CFI inserted register" { | 74 gdb_test_multiple "info frame" "Existence of the CFI inserted register" { |
79 -re "Stack level 3, frame at (0x\[0-9a-f\]+):.*Saved registers:.* ecx at (0x
\[0-9a-f\]+),.*" { | 75 -re "Stack level 3, frame at (0x\[0-9a-f\]+):.*Saved registers:.* ecx at (0x
\[0-9a-f\]+),.*" { |
80 pass "Existence of the CFI inserted register" | 76 pass "Existence of the CFI inserted register" |
81 if { [string compare $expect_out(1,string) $expect_out(2,string)] } then
{ | 77 if { [string compare $expect_out(1,string) $expect_out(2,string)] } then
{ |
82 fail "Value of the CFI inserted register" | 78 fail "Value of the CFI inserted register" |
83 } else { | 79 } else { |
84 pass "Value of the CFI inserted register" | 80 pass "Value of the CFI inserted register" |
85 } | 81 } |
86 } | 82 } |
87 } | 83 } |
OLD | NEW |