| OLD | NEW |
| 1 # Copyright 1999, 2003-2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1999, 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 |
| (...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=mi2" | 28 set MIFLAGS "-i=mi2" |
| 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}/mi2-file | 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 mi2-file.exp | 38 untested mi2-file.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_file_cmd ${binfile} | 44 mi_gdb_file_cmd ${binfile} |
| 46 | 45 |
| 47 proc test_file_list_exec_source_file {} { | 46 proc test_file_list_exec_source_file {} { |
| 48 global srcfile | 47 global srcfile |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 | 64 |
| 66 mi_gdb_test "111-file-list-exec-source-file" \ | 65 mi_gdb_test "111-file-list-exec-source-file" \ |
| 67 "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname
=\"$fullname_syntax${srcfile}\",macro-info=\"0\"" \ | 66 "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname
=\"$fullname_syntax${srcfile}\",macro-info=\"0\"" \ |
| 68 "request path info of current source file (${srcfile})" | 67 "request path info of current source file (${srcfile})" |
| 69 } | 68 } |
| 70 | 69 |
| 71 test_file_list_exec_source_file | 70 test_file_list_exec_source_file |
| 72 | 71 |
| 73 mi_gdb_exit | 72 mi_gdb_exit |
| 74 return 0 | 73 return 0 |
| OLD | NEW |