aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/constvars.exp
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2001-12-19 21:08:45 +0000
committerJeff Law <law@redhat.com>2001-12-19 21:08:45 +0000
commit2cd045cd85ef7e9873a80672ea3b0e9ff47f3c66 (patch)
treec9d6c442fecfa86b7c542f45e103c2ac100ce7cb /gdb/testsuite/gdb.base/constvars.exp
parent1cdb71fe7e3a2a6b0484c98d52e4b6f41081750d (diff)
downloadgdb-2cd045cd85ef7e9873a80672ea3b0e9ff47f3c66.zip
gdb-2cd045cd85ef7e9873a80672ea3b0e9ff47f3c66.tar.gz
gdb-2cd045cd85ef7e9873a80672ea3b0e9ff47f3c66.tar.bz2
* gdb.base/break.exp: Fix HP specific search string when testing
backtracing in a called function. * gdb.base/constvars.exp: Only set lang to C++ if we're compiling the test with HP's compilers. * gdb.base/volatile.exp: Similarly.
Diffstat (limited to 'gdb/testsuite/gdb.base/constvars.exp')
-rw-r--r--gdb/testsuite/gdb.base/constvars.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.exp b/gdb/testsuite/gdb.base/constvars.exp
index 35420e2..bb062ef 100644
--- a/gdb/testsuite/gdb.base/constvars.exp
+++ b/gdb/testsuite/gdb.base/constvars.exp
@@ -41,7 +41,13 @@ set testfile "constvars"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-if [istarget "hppa*-*-*"] {
+# 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} {
set lang "c++"
} else {
set lang ""