OLD | NEW |
1 # Test reading debug information from in object files. | 1 # Test reading debug information from in object files. |
2 | 2 |
3 if { [skip_hp_tests] } { continue } | 3 if { [skip_hp_tests] } { continue } |
4 | 4 |
5 if { ![istarget "hppa*-*-hpux*"] } { | 5 if { ![istarget "hppa*-*-hpux*"] } { |
6 verbose "HPUX test ignored for non-hppa targets." | 6 verbose "HPUX test ignored for non-hppa targets." |
7 return 0 | 7 return 0 |
8 } | 8 } |
9 | 9 |
10 set testfile "test" | 10 set testfile "test" |
11 set srcsubdir ${srcdir}/${subdir}/objdbg02 | 11 set srcsubdir ${srcdir}/${subdir}/objdbg02 |
12 set objdbgdir ${objdir}/${subdir}/objdbg02 | 12 set objdbgdir ${objdir}/${subdir}/objdbg02 |
13 set binfile ${objdbgdir}/${testfile} | 13 set binfile ${objdbgdir}/${testfile} |
14 set toolssubdir ${srcdir}/${subdir}/tools | 14 set toolssubdir ${srcdir}/${subdir}/tools |
15 | 15 |
16 # Create and source the file that provides information about the compiler | 16 # Create and source the file that provides information about the compiler |
17 # used to compile the test case. | 17 # used to compile the test case. |
18 if [get_compiler_info ${binfile}] { | 18 if [get_compiler_info] { |
19 return -1 | 19 return -1 |
20 } | 20 } |
21 | 21 |
22 if {!$hp_aCC_compiler && !$hp_cc_compiler} { | 22 if {!$hp_aCC_compiler && !$hp_cc_compiler} { |
23 return 0 | 23 return 0 |
24 } | 24 } |
25 | 25 |
26 if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" o
bject "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } { | 26 if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" o
bject "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } { |
27 untested objdbg02.exp | 27 untested objdbg02.exp |
28 return -1 | 28 return -1 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 gdb_test "s 1" "main .*/x1.cc:15.*" | 77 gdb_test "s 1" "main .*/x1.cc:15.*" |
78 gdb_test "s 1" ".*16.*" | 78 gdb_test "s 1" ".*16.*" |
79 if [istarget "hppa64-*-*"] { | 79 if [istarget "hppa64-*-*"] { |
80 gdb_test "s 1" "0x\[0-9a-f\]+ in .*START.*" | 80 gdb_test "s 1" "0x\[0-9a-f\]+ in .*START.*" |
81 gdb_continue_to_end | 81 gdb_continue_to_end |
82 } else { | 82 } else { |
83 gdb_test "s 1" "0x\[0-9a-f\]+ in _start .*" | 83 gdb_test "s 1" "0x\[0-9a-f\]+ in _start .*" |
84 gdb_continue_to_end "" "s 1" | 84 gdb_continue_to_end "" "s 1" |
85 } | 85 } |
86 | 86 |
OLD | NEW |