gdb/testsuite/
authorNathan Froyd <froydnj@codesourcery.com>
Fri, 12 Nov 2010 21:49:55 +0000 (21:49 +0000)
committerNathan Froyd <froydnj@codesourcery.com>
Fri, 12 Nov 2010 21:49:55 +0000 (21:49 +0000)
* gdb.stabs/gdb11479.exp: Use runto_main.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.stabs/gdb11479.exp

index 2a6c11bd274ea6227c352414d8271197cc9b66bb..d3d76ef06f97134884fa605554800f5f5cc34695 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * gdb.stabs/gdb11479.exp: Use runto_main.
+
 2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
 
        * gdb.base/break-entry.exp: Skip if using a stub.
index e8288a4f2da64a0d394487e5e6895a0bd0c67b8e..7177530c0a5c4787edd0fc7b0e8d7fe1aa25f4b4 100644 (file)
@@ -25,8 +25,12 @@ if $tracelevel then {
 set testfile "gdb11479"
 
 proc do_test {version} {
+    if ![runto_main] {
+        fail "Can't run to main $version"
+        return -1
+    }
     gdb_test "rb test" "" "Set breakpoints $version"
-    gdb_test "run" "Breakpoint .* test2 .*" "Stop at first breakpoint $version"
+    gdb_test "continue" "Breakpoint .* test2 .*" "Stop at first breakpoint $version"
     # Check that the struct is read in correctly
     gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \
        "Inspect t in test2 $version"