| OLD | NEW |
| 1 # Copyright 1999-2001, 2003, 2005, 2007-2012 Free Software Foundation, | 1 # Copyright 1999-2001, 2003, 2005, 2007-2012 Free Software Foundation, |
| 2 # Inc. | 2 # Inc. |
| 3 | 3 |
| 4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
| 6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
| 7 # (at your option) any later version. | 7 # (at your option) any later version. |
| 8 # | 8 # |
| 9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
| 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # | 24 # |
| 25 | 25 |
| 26 load_lib mi-support.exp | 26 load_lib mi-support.exp |
| 27 set MIFLAGS "-i=mi2" | 27 set MIFLAGS "-i=mi2" |
| 28 | 28 |
| 29 gdb_exit | 29 gdb_exit |
| 30 if [mi_gdb_start] { | 30 if [mi_gdb_start] { |
| 31 continue | 31 continue |
| 32 } | 32 } |
| 33 | 33 |
| 34 set testfile "until" | 34 standard_testfile until.c |
| 35 set srcfile ${testfile}.c | 35 |
| 36 set binfile ${objdir}/${subdir}/${testfile} | 36 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
| 38 untested mi2-until.exp | 37 untested mi2-until.exp |
| 39 return -1 | 38 return -1 |
| 40 } | 39 } |
| 41 | 40 |
| 42 mi_delete_breakpoints | 41 mi_delete_breakpoints |
| 43 mi_gdb_reinitialize_dir $srcdir/$subdir | 42 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 44 mi_gdb_reinitialize_dir $srcdir/$subdir | 43 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 45 mi_gdb_load ${binfile} | 44 mi_gdb_load ${binfile} |
| 46 | 45 |
| 47 proc test_running_to_foo {} { | 46 proc test_running_to_foo {} { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 76 # This is supposed to NOT stop at line 25. It stops right after foo is over. | 75 # This is supposed to NOT stop at line 25. It stops right after foo is over. |
| 77 mi_execute_to "exec-until until.c:25" "location-reached" "main" "" ".*until.
c" "(23|24)" ""\ | 76 mi_execute_to "exec-until until.c:25" "location-reached" "main" "" ".*until.
c" "(23|24)" ""\ |
| 78 "until after current function" | 77 "until after current function" |
| 79 } | 78 } |
| 80 | 79 |
| 81 test_running_to_foo | 80 test_running_to_foo |
| 82 test_until | 81 test_until |
| 83 | 82 |
| 84 mi_gdb_exit | 83 mi_gdb_exit |
| 85 return 0 | 84 return 0 |
| OLD | NEW |