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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # and many people have libc's with no symbols. | 48 # and many people have libc's with no symbols. |
49 mi_gdb_test "-thread-select $thread" \ | 49 mi_gdb_test "-thread-select $thread" \ |
50 "\\^done,new-thread-id=\"$thread\",frame={.*}(,line=\"(-)?\[0-9\]+\",file=
\".*\")?" \ | 50 "\\^done,new-thread-id=\"$thread\",frame={.*}(,line=\"(-)?\[0-9\]+\",file=
\".*\")?" \ |
51 "check_mi_thread_command_set: -thread-select $thread" | 51 "check_mi_thread_command_set: -thread-select $thread" |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 # | 55 # |
56 # Start here | 56 # Start here |
57 # | 57 # |
58 set testfile "pthreads" | 58 standard_testfile pthreads.c |
59 set srcfile "$testfile.c" | |
60 set binfile "$objdir/$subdir/mi2-$testfile" | |
61 | 59 |
62 set options [list debug incdir=$objdir] | 60 set options [list debug] |
63 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { | 61 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $option
s] != "" } { |
64 return -1 | 62 return -1 |
65 } | 63 } |
66 | 64 |
67 mi_gdb_reinitialize_dir $srcdir/$subdir | 65 mi_gdb_reinitialize_dir $srcdir/$subdir |
68 mi_gdb_load $binfile | 66 mi_gdb_load $binfile |
69 | 67 |
70 check_mi_thread_command_set | 68 check_mi_thread_command_set |
71 | 69 |
72 mi_gdb_exit | 70 mi_gdb_exit |
73 | 71 |
OLD | NEW |