X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.hp%2Fgdb.objdbg%2Fobjdbg04.exp;h=c57f4c0e056a4e4bb3ad987c8aee38995293bf30;hb=afabe08cae56909442350a37f5e310134d5ecb3e;hp=f678274561983e83bdd290547baa09ecd68c79fe;hpb=db521deb7fe0c0f50742dfccccf3c3a9ee8632b4;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04.exp b/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04.exp index f678274561..c57f4c0e05 100644 --- a/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04.exp +++ b/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04.exp @@ -14,6 +14,16 @@ set binfile ${objdbgdir}/${testfile} set toolssubdir ${srcdir}/${subdir}/tools set symaddrfile ${toolssubdir}/symaddr +# Create and source the file that provides information about the compiler +# used to compile the test case. +if [get_compiler_info ${binfile}] { + return -1 +} + +if {!$hp_aCC_compiler && !$hp_cc_compiler} { + return 0 +} + if { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" object "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } { gdb_suppress_entire_file "WARNING: +objdebug option is not supported in this compiler version, test ignored." }