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 # 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 # Tests for PR:1558. Hits breakpoint at main after function called | 21 # Tests for PR:1558. Hits breakpoint at main after function called |
22 # from main. | 22 # from main. |
23 | 23 |
24 if $tracelevel { | |
25 strace $tracelevel | |
26 } | |
27 | |
28 | 24 |
29 if ![istarget "sh-*-*"] then { | 25 if ![istarget "sh-*-*"] then { |
30 verbose "Skipping SH breakpoint test." | 26 verbose "Skipping SH breakpoint test." |
31 return | 27 return |
32 } | 28 } |
33 | 29 |
34 set testfile "gdb1558" | 30 set testfile "gdb1558" |
35 set srcfile ${testfile}.c | 31 set srcfile ${testfile}.c |
36 set binfile ${objdir}/${subdir}/${testfile} | 32 set binfile ${objdir}/${subdir}/${testfile} |
37 # Note we have to compile WITH optimization and WITHOUT debugging information to
expose the bug. | 33 # Note we have to compile WITH optimization and WITHOUT debugging information to
expose the bug. |
(...skipping 23 matching lines...) Expand all Loading... |
61 -re "Breakpoint 2.*sub1 .*$gdb_prompt $" { | 57 -re "Breakpoint 2.*sub1 .*$gdb_prompt $" { |
62 kfail "gdb/1558" "Hits breakpoint at main after function called from mai
n" | 58 kfail "gdb/1558" "Hits breakpoint at main after function called from mai
n" |
63 } | 59 } |
64 -re "$gdb_prompt $" { | 60 -re "$gdb_prompt $" { |
65 fail "Hits breakpoint at main after function called from main" | 61 fail "Hits breakpoint at main after function called from main" |
66 } | 62 } |
67 timeout { | 63 timeout { |
68 fail "Hits breakpoint at main after function called from main (timeout)" | 64 fail "Hits breakpoint at main after function called from main (timeout)" |
69 } | 65 } |
70 } | 66 } |
OLD | NEW |