Update the copyright notice of some of the files I missed
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / gdb669.exp
1 # Copyright 2002, 2003, 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
2
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
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16 # This file checks for the bug gdb/669, where the console
17 # command "info threads" and the MI command "-thread-list-ids"
18 # return different threads in the system.
19
20 # This only works with native configurations
21 if {![isnative]} {
22 return
23 }
24
25 load_lib mi-support.exp
26 set MIFLAGS "-i=mi"
27
28 gdb_exit
29 if {[mi_gdb_start]} {
30 continue
31 }
32
33 #
34 # Start here
35 #
36 set testfile "pthreads"
37 set srcfile "$testfile.c"
38 set binfile "$objdir/$subdir/gdb669-$testfile"
39
40 set options [list debug incdir=$objdir]
41 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
42 return -1
43 }
44
45 mi_run_to_main
46 check_mi_and_console_threads "at main"
47
48 for {set i 0} {$i < 4} {incr i} {
49 mi_next "next, try $i"
50 check_mi_and_console_threads "try $i"
51 }
52
53 mi_gdb_exit
54
This page took 0.030047 seconds and 4 git commands to generate.