| OLD | NEW |
| 1 # Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2003-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:1431. Catch gdb not continuing to second function properly. | 21 # Tests for PR:1431. Catch gdb not continuing to second function properly. |
| 22 # Note that originally this bug was reported as a problem with the "until" | 22 # Note that originally this bug was reported as a problem with the "until" |
| 23 # command, which actually is behaving as currently defined. What apparently | 23 # command, which actually is behaving as currently defined. What apparently |
| 24 # was expected was the behavior of the newer "advance" command. | 24 # was expected was the behavior of the newer "advance" command. |
| 25 | 25 |
| 26 if $tracelevel { | |
| 27 strace $tracelevel | |
| 28 } | |
| 29 | |
| 30 # Observe that the until command doesn't go all the way to sub2. | 26 # Observe that the until command doesn't go all the way to sub2. |
| 31 | 27 |
| 32 | 28 |
| 33 if ![istarget "sh-*-*"] then { | 29 if ![istarget "sh-*-*"] then { |
| 34 verbose "Skipping SH backtrace tests." | 30 verbose "Skipping SH backtrace tests." |
| 35 return | 31 return |
| 36 } | 32 } |
| 37 | 33 |
| 38 set testfile "gdb1431" | 34 set testfile "gdb1431" |
| 39 set srcfile ${testfile}.s | 35 set srcfile ${testfile}.s |
| (...skipping 12 matching lines...) Expand all Loading... |
| 52 # Run to `main' where we begin our tests. | 48 # Run to `main' where we begin our tests. |
| 53 # | 49 # |
| 54 | 50 |
| 55 if ![runto_main] then { | 51 if ![runto_main] then { |
| 56 gdb_suppress_tests | 52 gdb_suppress_tests |
| 57 } | 53 } |
| 58 | 54 |
| 59 gdb_test "advance sub1" "hello world\r\n$hex in sub1 \\(\\)" "get to sub1" | 55 gdb_test "advance sub1" "hello world\r\n$hex in sub1 \\(\\)" "get to sub1" |
| 60 gdb_test "advance sub2" "$hex in main \\(\\)" "advance returns from sub1 frame" | 56 gdb_test "advance sub2" "$hex in main \\(\\)" "advance returns from sub1 frame" |
| 61 gdb_test "advance sub2" "$hex in sub2 \\(\\)" "get to sub2" | 57 gdb_test "advance sub2" "$hex in sub2 \\(\\)" "get to sub2" |
| OLD | NEW |