| 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=mi" | 32 set MIFLAGS "-i=mi" |
| 33 | 33 |
| 34 gdb_exit | 34 gdb_exit |
| 35 if [mi_gdb_start separate-inferior-tty] { | 35 if [mi_gdb_start separate-inferior-tty] { |
| 36 continue | 36 continue |
| 37 } | 37 } |
| 38 | 38 |
| 39 set testfile "mi-console" | 39 standard_testfile |
| 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 mi-console.exp | 42 untested mi-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" \ | 49 mi_gdb_test "220-exec-next" \ |
| 51 "220\\^running(\r\n\\*running,thread-id=\"all\")?" \ | 50 "220\\^running(\r\n\\*running,thread-id=\"all\")?" \ |
| 52 "Testing console output" \ | 51 "Testing console output" \ |
| 53 "Hello \\\\\"!\[\r\n\]+" | 52 "Hello \\\\\"!\[\r\n\]+" |
| 54 | 53 |
| 55 mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \ | 54 mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \ |
| 56 "finished step over hello" | 55 "finished step over hello" |
| 57 | 56 |
| 58 mi_gdb_exit | 57 mi_gdb_exit |
| 59 return 0 | 58 return 0 |
| OLD | NEW |