OLD | NEW |
1 # Copyright 2002-2005, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2002-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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 foreach thread $thread_list { | 54 foreach thread $thread_list { |
55 mi_gdb_test "-interpreter-exec console \"thread $thread\"" \ | 55 mi_gdb_test "-interpreter-exec console \"thread $thread\"" \ |
56 ".*\\^done\r\n=thread-selected,id=\"$thread\"" \ | 56 ".*\\^done\r\n=thread-selected,id=\"$thread\"" \ |
57 "check =thread-selected: thread $thread" | 57 "check =thread-selected: thread $thread" |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 # | 61 # |
62 # Start here | 62 # Start here |
63 # | 63 # |
64 set testfile "pthreads" | 64 standard_testfile pthreads.c |
65 set srcfile "$testfile.c" | |
66 set binfile "$objdir/$subdir/mi-$testfile" | |
67 | 65 |
68 set options [list debug incdir=$objdir] | 66 set options [list debug] |
69 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { | 67 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { |
70 return -1 | 68 return -1 |
71 } | 69 } |
72 | 70 |
73 mi_gdb_reinitialize_dir $srcdir/$subdir | 71 mi_gdb_reinitialize_dir $srcdir/$subdir |
74 mi_gdb_load $binfile | 72 mi_gdb_load $binfile |
75 | 73 |
76 check_mi_thread_command_set | 74 check_mi_thread_command_set |
77 | 75 |
78 mi_gdb_exit | 76 mi_gdb_exit |
79 | 77 |
OLD | NEW |