2001-04-22 Michael Chastain <chastain@redhat.com>
authorMichael Chastain <mec@google.com>
Mon, 23 Apr 2001 17:02:05 +0000 (17:02 +0000)
committerMichael Chastain <mec@google.com>
Mon, 23 Apr 2001 17:02:05 +0000 (17:02 +0000)
* gdb.c++/local.exp: Use the 'runto' library function.
* gdb.c++/namespace.exp: Likewise.
* gdb.c++/overload.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.c++/local.exp
gdb/testsuite/gdb.c++/namespace.exp
gdb/testsuite/gdb.c++/overload.exp

index 26a60774316d7415225a7cc4f42bf3b6e74d008d..d8afbe58afc6b06dc1b2e47e240b0d9591ab3e5c 100644 (file)
@@ -1,3 +1,9 @@
+2001-04-22  Michael Chastain  <chastain@redhat.com>
+
+       * gdb.c++/local.exp: Use the 'runto' library function.
+       * gdb.c++/namespace.exp: Likewise.
+       * gdb.c++/overload.exp: Likewise.
+
 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
 
        * gdb.base/Makefile.in (EXECUTABLES): Add step-line.
index dae9d37b07d3d25d3d146e3ff1d90570982596ab..a93598f11e9c15de6f1dae45e265db8e41ffdd89 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -61,25 +61,13 @@ if ![runto_main] then {
     continue
 }
 
-send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
-
-    send_gdb "cont\n"
-    gdb_expect {
-        -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
-            send_gdb "up\n"
-            gdb_expect {
-                -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"  }
-        timeout { fail "(timeout) continue to marker1"  }
-    }
+if ![runto 'marker1'] then {
+    perror "couldn't run to marker1"
+    continue
+}
+
+gdb_test "up" ".*main.*" "up from marker1"
+
 
 # srikanth, These tests have always been run only with aCC. Now in
 # the new scheme of things, we run it twice, once with aCC, and once
index a30ce0c0667c94eab0421e3fccb78a55776ed6d0..93f126f5109b79b9cda798942240ef2a359fe1f9 100644 (file)
@@ -68,20 +68,12 @@ if ![runto_main] then {
     continue
 }
 
-send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
-    send_gdb "cont\n"
-    gdb_expect {
-        -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
-            send_gdb "up\n"
-            gdb_expect {
-                -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"  }
-        timeout { fail "(timeout) continue to marker1"  }
-    }
+if ![runto 'marker1'] then {
+    perror "couldn't run to marker1"
+    continue
+}
+
+gdb_test "up" ".*main.*" "up from marker1"
 
 # Access a data item inside a namespace using colons and
 # single quotes :-(
index a56a730856097a8b1161cf667a98604b8bd8e17a..afda692eeec84cdc53fc5e4be1d11c899be7364a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -61,26 +61,12 @@ if ![runto_main] then {
     continue
 }
 
-send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
-
-    send_gdb "cont\n"
-    gdb_expect {
-        -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
-            send_gdb "up\n"
-            gdb_expect {
-                -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"  }
-        timeout { fail "(timeout) continue to marker1"  }
-    }
+if ![runto 'marker1'] then {
+    perror "couldn't run to marker1"
+    continue
+}
 
+gdb_test "up" ".*main.*" "up from marker1"
 
 send_gdb "print foo_instance1\n"
 gdb_expect {
This page took 0.033068 seconds and 4 git commands to generate.