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=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-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 mi-file.exp | 38 untested mi-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 27 matching lines...) Expand all Loading... |
76 mi_gdb_test "222-file-list-exec-source-files" \ | 75 mi_gdb_test "222-file-list-exec-source-files" \ |
77 "222\\\^done,files=\\\[\{file=\".*/${srcfile}\",fullname=\"$fullname
_syntax${srcfile}\"\}.*]" \ | 76 "222\\\^done,files=\\\[\{file=\".*/${srcfile}\",fullname=\"$fullname
_syntax${srcfile}\"\}.*]" \ |
78 "Getting a list of source files." | 77 "Getting a list of source files." |
79 } | 78 } |
80 | 79 |
81 test_file_list_exec_source_file | 80 test_file_list_exec_source_file |
82 test_file_list_exec_source_files | 81 test_file_list_exec_source_files |
83 | 82 |
84 mi_gdb_exit | 83 mi_gdb_exit |
85 return 0 | 84 return 0 |
OLD | NEW |