| 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}/objdbg04 | 11 set srcsubdir ${srcdir}/${subdir}/objdbg04 |
| 12 set objdbgdir ${objdir}/${subdir}/objdbg04 | 12 set objdbgdir ${objdir}/${subdir}/objdbg04 |
| 13 set binfile ${objdbgdir}/${testfile} | 13 set binfile ${objdbgdir}/${testfile} |
| 14 set toolssubdir ${srcdir}/${subdir}/tools | 14 set toolssubdir ${srcdir}/${subdir}/tools |
| 15 set symaddrfile ${toolssubdir}/symaddr | 15 set symaddrfile ${toolssubdir}/symaddr |
| 16 | 16 |
| 17 # Create and source the file that provides information about the compiler | 17 # Create and source the file that provides information about the compiler |
| 18 # used to compile the test case. | 18 # used to compile the test case. |
| 19 if [get_compiler_info ${binfile}] { | 19 if [get_compiler_info] { |
| 20 return -1 | 20 return -1 |
| 21 } | 21 } |
| 22 | 22 |
| 23 if {!$hp_aCC_compiler && !$hp_cc_compiler} { | 23 if {!$hp_aCC_compiler && !$hp_cc_compiler} { |
| 24 return 0 | 24 return 0 |
| 25 } | 25 } |
| 26 | 26 |
| 27 if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" o
bject "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } { | 27 if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" o
bject "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } { |
| 28 untested objdbg04.exp | 28 untested objdbg04.exp |
| 29 return -1 | 29 return -1 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 57 gdb_exit | 57 gdb_exit |
| 58 gdb_start | 58 gdb_start |
| 59 gdb_reinitialize_dir ${srcsubdir} | 59 gdb_reinitialize_dir ${srcsubdir} |
| 60 gdb_load ${binfile}${filenum} | 60 gdb_load ${binfile}${filenum} |
| 61 | 61 |
| 62 gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.
*}(.*template instantiations:.*Adder<int>|)" | 62 gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.
*}(.*template instantiations:.*Adder<int>|)" |
| 63 gdb_test "ptype Adder<int>" "type = (class |)Adder<int> {.*private:.*int val;.
*public:.*void set( |)\\(int\\);.*int get( |)\\(void\\);.*int add( |)\\(int\\);.
*}" | 63 gdb_test "ptype Adder<int>" "type = (class |)Adder<int> {.*private:.*int val;.
*public:.*void set( |)\\(int\\);.*int get( |)\\(void\\);.*int add( |)\\(int\\);.
*}" |
| 64 gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.
*}(.*template instantiations:.*Adder<int>|)" | 64 gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.
*}(.*template instantiations:.*Adder<int>|)" |
| 65 | 65 |
| 66 } | 66 } |
| OLD | NEW |