| OLD | NEW |
| 1 # Copyright 1999-2002, 2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1999-2002, 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 # | 25 # |
| 26 | 26 |
| 27 load_lib mi-support.exp | 27 load_lib mi-support.exp |
| 28 set MIFLAGS "-i=mi" | 28 set MIFLAGS "-i=mi" |
| 29 | 29 |
| 30 gdb_exit | 30 gdb_exit |
| 31 if [mi_gdb_start] { | 31 if [mi_gdb_start] { |
| 32 continue | 32 continue |
| 33 } | 33 } |
| 34 | 34 |
| 35 set testfile "basics" | 35 standard_testfile basics.c |
| 36 set srcfile ${testfile}.c | 36 |
| 37 set binfile ${objdir}/${subdir}/mi-simplerun | 37 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 38 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
| 39 untested mi-simplerun.exp | 38 untested mi-simplerun.exp |
| 40 return -1 | 39 return -1 |
| 41 } | 40 } |
| 42 | 41 |
| 43 mi_delete_breakpoints | 42 mi_delete_breakpoints |
| 44 mi_gdb_reinitialize_dir $srcdir/$subdir | 43 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 45 mi_gdb_reinitialize_dir $srcdir/$subdir | 44 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 46 mi_gdb_load ${binfile} | 45 mi_gdb_load ${binfile} |
| 47 | 46 |
| 48 proc test_breakpoints_creation_and_listing {} { | 47 proc test_breakpoints_creation_and_listing {} { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 180 } |
| 182 | 181 |
| 183 test_breakpoints_creation_and_listing | 182 test_breakpoints_creation_and_listing |
| 184 test_running_the_program | 183 test_running_the_program |
| 185 test_controlled_execution | 184 test_controlled_execution |
| 186 test_controlling_breakpoints | 185 test_controlling_breakpoints |
| 187 test_program_termination | 186 test_program_termination |
| 188 | 187 |
| 189 mi_gdb_exit | 188 mi_gdb_exit |
| 190 return 0 | 189 return 0 |
| OLD | NEW |