OLD | NEW |
1 # Copyright 1997-1999, 2001, 2003-2004, 2006-2012 Free Software | 1 # Copyright 1997-1999, 2001, 2003-2004, 2006-2012 Free Software |
2 # Foundation, Inc. | 2 # Foundation, Inc. |
3 | 3 |
4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
8 # | 8 # |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 # GNU General Public License for more details. | 12 # GNU General Public License for more details. |
13 # | 13 # |
14 # You should have received a copy of the GNU General Public License | 14 # You should have received a copy of the GNU General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 # Test that GDB properly ignores invalid stabs. | 17 # Test that GDB properly ignores invalid stabs. |
18 # Also test that GDB can debug a .o file, and that it doesn't mind | 18 # Also test that GDB can debug a .o file, and that it doesn't mind |
19 # a file that's more minimal than what a compiler normally puts out. | 19 # a file that's more minimal than what a compiler normally puts out. |
20 if $tracelevel then { | |
21 strace $tracelevel | |
22 } | |
23 | |
24 # If the test directory was not created by configure then skip | |
25 # this test. | |
26 if ![file isdirectory ${objdir}/${subdir}] then { | |
27 return 0 | |
28 } | |
29 | |
30 | 20 |
31 set testfile weird | 21 set testfile weird |
32 set srcfile ${objdir}/${subdir}/weird.s | 22 set srcfile [standard_output_file weird.s] |
33 set binfile ${objdir}/${subdir}/weirdx.o | 23 set binfile [standard_output_file weirdx.o] |
34 | 24 |
35 if { [ get_compiler_info "$binfile" ] } { | 25 if { [ get_compiler_info ] } { |
36 return -1 | 26 return -1 |
37 } | 27 } |
38 | 28 |
39 if { $hp_cc_compiler || $hp_aCC_compiler } { | 29 if { $hp_cc_compiler || $hp_aCC_compiler } { |
40 # The native hp-ux assembler does not support stabs at all. | 30 # The native hp-ux assembler does not support stabs at all. |
41 # If the compiler is native hp-ux, of course the assembler is too. | 31 # If the compiler is native hp-ux, of course the assembler is too. |
42 # But if someone builds gcc with the native assembler (not recommended) | 32 # But if someone builds gcc with the native assembler (not recommended) |
43 # rather than the gnu assembler, then this logic will not suppress it. | 33 # rather than the gnu assembler, then this logic will not suppress it. |
44 # -- chastain 2004-01-07 | 34 # -- chastain 2004-01-07 |
45 unsupported "stabs with hp-ux assembler" | 35 unsupported "stabs with hp-ux assembler" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 return -1 | 321 return -1 |
332 } | 322 } |
333 eof { fail "(eof) cannot read weirdx.o" } | 323 eof { fail "(eof) cannot read weirdx.o" } |
334 } | 324 } |
335 | 325 |
336 do_tests | 326 do_tests |
337 | 327 |
338 remote_file host delete ${binfile} | 328 remote_file host delete ${binfile} |
339 | 329 |
340 return 0 | 330 return 0 |
OLD | NEW |