| OLD | NEW |
| 1 # Copyright 2008-2012 Free Software Foundation, Inc. | 1 # Copyright 2008-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 set saved_gdbflags $GDBFLAGS | 29 set saved_gdbflags $GDBFLAGS |
| 30 set GDBFLAGS [concat $GDBFLAGS " -ex \"set target-async on\""] | 30 set GDBFLAGS [concat $GDBFLAGS " -ex \"set target-async on\""] |
| 31 | 31 |
| 32 load_lib mi-support.exp | 32 load_lib mi-support.exp |
| 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 "basics" | 39 standard_testfile basics.c |
| 40 set srcfile ${testfile}.c | 40 |
| 41 set binfile ${objdir}/${subdir}/mi-async | 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-async.exp | 42 untested mi-async.exp |
| 44 return -1 | 43 return -1 |
| 45 } | 44 } |
| 46 | 45 |
| 47 mi_delete_breakpoints | 46 mi_delete_breakpoints |
| 48 mi_gdb_reinitialize_dir $srcdir/$subdir | 47 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 49 mi_gdb_load ${binfile} | 48 mi_gdb_load ${binfile} |
| 50 | 49 |
| 51 # mi_gdb_test cannot be used for asynchronous commands because there are | 50 # mi_gdb_test cannot be used for asynchronous commands because there are |
| 52 # two prompts involved and this can lead to a race condition. | 51 # two prompts involved and this can lead to a race condition. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 } | 73 } |
| 75 | 74 |
| 76 | 75 |
| 77 linux_async_tests | 76 linux_async_tests |
| 78 | 77 |
| 79 mi_gdb_exit | 78 mi_gdb_exit |
| 80 | 79 |
| 81 set GDBFLAGS $saved_gdbflags | 80 set GDBFLAGS $saved_gdbflags |
| 82 | 81 |
| 83 return 0 | 82 return 0 |
| OLD | NEW |