| OLD | NEW |
| 1 # Copyright 1999, 2001, 2003-2004, 2006-2012 Free Software Foundation, | 1 # Copyright 1999, 2001, 2003-2004, 2006-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 15 matching lines...) Expand all Loading... |
| 26 # | 26 # |
| 27 | 27 |
| 28 load_lib mi-support.exp | 28 load_lib mi-support.exp |
| 29 set MIFLAGS "-i=mi2" | 29 set MIFLAGS "-i=mi2" |
| 30 | 30 |
| 31 gdb_exit | 31 gdb_exit |
| 32 if [mi_gdb_start] { | 32 if [mi_gdb_start] { |
| 33 continue | 33 continue |
| 34 } | 34 } |
| 35 | 35 |
| 36 set testfile "basics" | 36 standard_testfile basics.c |
| 37 set srcfile ${testfile}.c | 37 |
| 38 set binfile ${objdir}/${subdir}/mi2-break | 38 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 39 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
| 40 untested mi2-break.exp | 39 untested mi2-break.exp |
| 41 return -1 | 40 return -1 |
| 42 } | 41 } |
| 43 | 42 |
| 44 mi_delete_breakpoints | 43 mi_delete_breakpoints |
| 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 # Locate line numbers in basics.c. | 47 # Locate line numbers in basics.c. |
| 49 set line_callee4_head [gdb_get_line_number "callee4 ("] | 48 set line_callee4_head [gdb_get_line_number "callee4 ("] |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 mi_gdb_test "177-break-delete" \ | 148 mi_gdb_test "177-break-delete" \ |
| 150 "177\\^done" \ | 149 "177\\^done" \ |
| 151 "delete temp breakpoints" | 150 "delete temp breakpoints" |
| 152 } | 151 } |
| 153 | 152 |
| 154 test_tbreak_creation_and_listing | 153 test_tbreak_creation_and_listing |
| 155 test_rbreak_creation_and_listing | 154 test_rbreak_creation_and_listing |
| 156 | 155 |
| 157 mi_gdb_exit | 156 mi_gdb_exit |
| 158 return 0 | 157 return 0 |
| OLD | NEW |