OLD | NEW |
1 # Copyright 1999-2003, 2005, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1999-2003, 2005, 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 18 matching lines...) Expand all Loading... |
29 # remote target. | 29 # remote target. |
30 | 30 |
31 load_lib mi-support.exp | 31 load_lib mi-support.exp |
32 set MIFLAGS "-i=mi2" | 32 set MIFLAGS "-i=mi2" |
33 | 33 |
34 gdb_exit | 34 gdb_exit |
35 if [mi_gdb_start] { | 35 if [mi_gdb_start] { |
36 continue | 36 continue |
37 } | 37 } |
38 | 38 |
39 set testfile "mi-console" | 39 standard_testfile mi-console.c |
40 set srcfile ${testfile}.c | 40 |
41 set binfile ${objdir}/${subdir}/${testfile} | 41 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
42 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
43 untested mi2-console.exp | 42 untested mi2-console.exp |
44 return -1 | 43 return -1 |
45 } | 44 } |
46 | 45 |
47 mi_run_to_main | 46 mi_run_to_main |
48 | 47 |
49 # Next over the hello() call which will produce lots of output | 48 # Next over the hello() call which will produce lots of output |
50 mi_gdb_test "220-exec-next" "220\\^running(\r\n)?(\\*running,thread-id=\"all\")?
" \ | 49 mi_gdb_test "220-exec-next" "220\\^running(\r\n)?(\\*running,thread-id=\"all\")?
" \ |
51 "Started step over hello" | 50 "Started step over hello" |
52 | 51 |
(...skipping 17 matching lines...) Expand all Loading... |
70 fail "Hello message (timeout)" | 69 fail "Hello message (timeout)" |
71 } | 70 } |
72 } | 71 } |
73 } | 72 } |
74 | 73 |
75 mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \ | 74 mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \ |
76 "finished step over hello" | 75 "finished step over hello" |
77 | 76 |
78 mi_gdb_exit | 77 mi_gdb_exit |
79 return 0 | 78 return 0 |
OLD | NEW |