OLD | NEW |
1 # Copyright 2000, 2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2000, 2004, 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 |
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
12 # | 12 # |
13 # You should have received a copy of the GNU General Public License | 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/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 |
16 # This file was based on jmisc.exp which in turn was written by | 16 # This file was based on jmisc.exp which in turn was written by |
17 # Anthony Green. (green@redhat.com) | 17 # Anthony Green. (green@redhat.com) |
18 | 18 |
19 if $tracelevel then { | |
20 strace $tracelevel | |
21 } | |
22 | |
23 load_lib "java.exp" | 19 load_lib "java.exp" |
24 | 20 |
25 if { [skip_java_tests] } { continue } | 21 if { [skip_java_tests] } { continue } |
26 | 22 |
27 set testfile "jmain" | 23 standard_testfile .java |
28 set srcfile ${srcdir}/$subdir/${testfile}.java | 24 if {[compile_java_from_source $srcdir/$subdir/$srcfile $binfile "-g"] != ""} { |
29 set binfile ${objdir}/${subdir}/${testfile} | |
30 if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} { | |
31 continue | 25 continue |
32 } | 26 } |
33 | 27 |
34 | 28 |
35 # Start with a fresh gdb. | 29 # Start with a fresh gdb. |
36 | 30 |
37 gdb_exit | 31 gdb_exit |
38 gdb_start | 32 gdb_start |
39 gdb_reinitialize_dir $srcdir/$subdir | 33 gdb_reinitialize_dir $srcdir/$subdir |
40 | 34 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 pass $msg | 78 pass $msg |
85 } | 79 } |
86 -re "${earlybpmain}\r\n$gdb_prompt $" { | 80 -re "${earlybpmain}\r\n$gdb_prompt $" { |
87 setup_xfail *-*-* gcc/16439 | 81 setup_xfail *-*-* gcc/16439 |
88 fail $msg | 82 fail $msg |
89 } | 83 } |
90 } | 84 } |
91 } | 85 } |
92 } | 86 } |
93 | 87 |
OLD | NEW |