* gdb.base/break.exp: Fix HP specific search string when testing
authorJeff Law <law@redhat.com>
Wed, 19 Dec 2001 21:08:45 +0000 (21:08 +0000)
committerJeff Law <law@redhat.com>
Wed, 19 Dec 2001 21:08:45 +0000 (21:08 +0000)
        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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break.exp
gdb/testsuite/gdb.base/constvars.exp
gdb/testsuite/gdb.base/volatile.exp

index 8e87b9662a6d1a6a5fe6c50dddbd9f8bc056835d..01601342a5a007c49e771af663b8f93b2eb41c9e 100644 (file)
@@ -1,3 +1,12 @@
+Wed Dec 19 14:10:57 2001  Jeffrey A Law  (law@redhat.com)
+
+        * 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.
+
 2001-12-19  Jim Blandy  <jimb@redhat.com>
 
        * gdb.base/printcmds.exp: Expect the null character to be printed
index 7671d1e87e2f71b88ab0026afa04269a93a7bf9d..798e0c24fd68c0b2a85dcf94b3a170b11830038f 100644 (file)
@@ -592,7 +592,7 @@ gdb_expect {
 #
 send_gdb "bt\n"
 gdb_expect {
-    -re "#0\[ \t\]*$hex in marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_prompt $"\
+    -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*_sr4export.*$gdb_prompt $"\
             {pass "backtrace while in called function"}
     -re "#0\[ \t\]*($hex in )?marker2.*:4\[49\]\r\n#1.*function called from gdb.*$gdb_prompt $"\
            {pass "backtrace while in called function"}
index 35420e2839dec0bc74885e2938e1078a681d3860..bb062ef5cb9f7987dd9715422612278a6857624c 100644 (file)
@@ -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 ""
index 693cea0247049fda0a30f7c509a6ba00b10d576e..efb271b6ec025b61e6afca35f1ecdd1d6d616504 100644 (file)
@@ -49,7 +49,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 ""
This page took 0.046738 seconds and 4 git commands to generate.