| OLD | NEW |
| 1 # Copyright 2009-2012 Free Software Foundation, Inc. | 1 # Copyright 2009-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 11 matching lines...) Expand all Loading... |
| 22 set MIFLAGS "-i=mi" | 22 set MIFLAGS "-i=mi" |
| 23 | 23 |
| 24 gdb_exit | 24 gdb_exit |
| 25 if {[mi_gdb_start]} { | 25 if {[mi_gdb_start]} { |
| 26 continue | 26 continue |
| 27 } | 27 } |
| 28 | 28 |
| 29 # | 29 # |
| 30 # Start here | 30 # Start here |
| 31 # | 31 # |
| 32 set testfile "non-stop-exit" | 32 standard_testfile non-stop-exit.c |
| 33 set srcfile "$testfile.c" | |
| 34 set binfile "$objdir/$subdir/mi-$testfile" | |
| 35 | 33 |
| 36 set options [list debug incdir=$objdir] | 34 set options [list debug] |
| 37 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { | 35 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { |
| 38 return -1 | 36 return -1 |
| 39 } | 37 } |
| 40 | 38 |
| 41 mi_gdb_reinitialize_dir $srcdir/$subdir | 39 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 42 mi_gdb_load $binfile | 40 mi_gdb_load $binfile |
| 43 | 41 |
| 44 mi_gdb_test "-gdb-set non-stop 1" ".*" | 42 mi_gdb_test "-gdb-set non-stop 1" ".*" |
| 45 mi_gdb_test "-gdb-set target-async 1" ".*" | 43 mi_gdb_test "-gdb-set target-async 1" ".*" |
| 46 mi_detect_async | 44 mi_detect_async |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 | 55 |
| 58 if { [mi_run_to_main] < 0 } { | 56 if { [mi_run_to_main] < 0 } { |
| 59 continue | 57 continue |
| 60 } | 58 } |
| 61 | 59 |
| 62 mi_send_resuming_command "exec-continue" "continue (2)" | 60 mi_send_resuming_command "exec-continue" "continue (2)" |
| 63 | 61 |
| 64 mi_expect_stop "exited-normally" "" "" "" "" "" "finished exec continue (2)" | 62 mi_expect_stop "exited-normally" "" "" "" "" "" "finished exec continue (2)" |
| 65 | 63 |
| 66 mi_gdb_exit | 64 mi_gdb_exit |
| OLD | NEW |