2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 5 Dec 2000 23:14:40 +0000 (23:14 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 5 Dec 2000 23:14:40 +0000 (23:14 +0000)
        * gdb.base/constvars.exp: Test result of "up" command.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.base/scope.exp:     Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/constvars.exp
gdb/testsuite/gdb.base/miscexprs.exp
gdb/testsuite/gdb.base/pointers.exp
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.c++/derivation.exp
gdb/testsuite/gdb.c++/local.exp
gdb/testsuite/gdb.c++/namespace.exp
gdb/testsuite/gdb.c++/overload.exp
gdb/testsuite/gdb.c++/ref-types.exp

index 8eaedd40635a1d27d51c91feb9cdf6923f96c67c..c90bdc15eac1e40c1bd38b36a9b89bc4f2d88d06 100644 (file)
@@ -1,3 +1,15 @@
+2000-12-05  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
+
+       * gdb.base/constvars.exp: Test result of "up" command.
+       * gdb.base/miscexprs.exp: Ditto.
+       * gdb.base/pointers.exp:  Ditto.
+       * gdb.base/scope.exp:     Ditto.
+       * gdb.c++/derivation.exp: Ditto.
+       * gdb.c++/local.exp:      Ditto.
+       * gdb.c++/namespace.exp:  Ditto.
+       * gdb.c++/overload.exp:   Ditto.
+       * gdb.c++/ref-types.exp:  Ditto.
+
 2000-11-22  Michael Chastain  <chastain@redhat.com>
 
        * mips_pro.exp: Accept either "middle -> top -> main" or
index 312b524a3bb6a186be04d48dd46359bbdc0f1d74..1cdc231c90e213257236b5e26bf9c0c37af0ea7b 100644 (file)
@@ -79,16 +79,22 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+               -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "Break.* marker1__.* \\(\\) at .*:$decimal.*$gdb_prompt $" {
            fail "continue to marker1 (demangling)"
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+               -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index f7a5fd26a6e476d14e35337252da87b9a4472294..21f5f0fc76d3d29f4f12f4b8f7079cd22bd83ae8 100644 (file)
@@ -69,8 +69,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+               -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index 539f875b71c46f07f3335318ef6896e30b0ced4c..b7cce5174394f9b6df32c60be77a850de2f7d8be 100644 (file)
@@ -371,8 +371,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+                -re ".*more_code.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index 6c3f9f2f1adf48e625fc3837338b7c35415c7833..b4f9936e4c4cfc1781ed19348e57ebfbebaac8f9 100644 (file)
@@ -452,7 +452,7 @@ proc test_at_autovars {} {
        gdb_suppress_tests;
     }
 
-    if [gdb_test "up" ".*" "" ] { 
+    if [gdb_test "up" ".*autovars.*" "up from marker1 in scope.exp" ] { 
        gdb_suppress_tests ; 
     }
 
@@ -484,7 +484,7 @@ proc test_at_localscopes {} {
     if [gdb_test "cont" "Break.* marker2 \\(\\) at .*:$decimal.*" "continue to marker2"] {
        gdb_suppress_tests;
     }
-    if [gdb_test "up" ".*" "" ] { 
+    if [gdb_test "up" ".*localscopes.*" "up from marker2 in scopes.exp" ] { 
        gdb_suppress_tests ; 
     }
 
@@ -499,7 +499,9 @@ proc test_at_localscopes {} {
 
     if [gdb_test "cont" "Break.* marker3 \\(\\) at .*:$decimal.*" \
        "continue to marker3 in scope.exp"] then { gdb_suppress_tests }
-    if [gdb_test "up" "" "up from marker3 in scope.exp"] then { gdb_suppress_tests }
+    if [gdb_test "up" ".*localscopes.*" "up from marker3 in scope.exp"] { 
+       gdb_suppress_tests 
+    }
 
     # Should be at next (first nested) scope.  Check values.
 
@@ -515,7 +517,9 @@ proc test_at_localscopes {} {
     setup_xfail "a29k-*-udi" 2423
     if [gdb_test "cont" "Break.* marker4.*at .*:$decimal.*" \
        "continue to marker4 in scope.exp"] then { gdb_suppress_tests }
-    if [gdb_test "up" "" "up from marker4 in scope.exp"] then { gdb_suppress_tests }
+    if [gdb_test "up" ".*localscopes.*" "up from marker4 in scope.exp"] {
+       gdb_suppress_tests 
+    }
 
     gdb_test "print localval" " = 30" "print localval, innermost scope"
     gdb_test "print localval1" " = 11" "print localval1, innermost scope"
index 0185ce6774b29c156a8de231418426ddd27f9906..4b0ff74cf971b5c1b2b4fa7027b2c939c989dd7c 100644 (file)
@@ -76,8 +76,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+                -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index 10dfabedf436d1cf12ae05d5dd8e55b823f0fa47..0558860729257328a62c59ad1c54e8448ea76020 100644 (file)
@@ -68,8 +68,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+                -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index 9298c90e79ebc6c516c6ad3d482e1cbb0e600330..16e6e163ade68ad51a19d80e9acc6e772aec7516 100644 (file)
@@ -73,8 +73,9 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" { pass "up from marker1" }
-                timeout { fail "up from marker1" }
+                -re ".*main.*$gdb_prompt $" { pass "up from marker1" }
+                -re ".*$gdb_prompt $" { fail "up from marker1" }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index e889273d7b445d5f29ee93e0e374a14dcf795a4d..7b3b1aa3f74cd98ccda9277611e38df28f3153ed 100644 (file)
@@ -68,8 +68,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+                -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }
index a528fd641de15d892da8056eb5cfd79127b8a870..21e8f7b516bc12b16f5f36cac7c1c3ed6e98835c 100644 (file)
@@ -61,8 +61,11 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
         -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
             send_gdb "up\n"
             gdb_expect {
-                -re ".*$gdb_prompt $" {}
-                timeout { fail "up from marker1" }
+                -re ".*main.*$gdb_prompt $" {}
+                -re ".*$gdb_prompt $" {
+                   fail "up from marker1"
+               }
+                timeout { fail "up from marker1 (timeout)" }
             }
         }
         -re "$gdb_prompt $" { fail "continue to marker1"  }