diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:49:55 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:49:55 +0000 |
commit | d4eba7d1b0493bdcd9cf67e33ff4f8e78f436bc3 (patch) | |
tree | a63cd17453901726c36544afc88abf3a269ef0a3 | |
parent | b04c2f88b6a0bcb3c241c6a2f91d93bd3476bbf2 (diff) | |
download | gdb-d4eba7d1b0493bdcd9cf67e33ff4f8e78f436bc3.zip gdb-d4eba7d1b0493bdcd9cf67e33ff4f8e78f436bc3.tar.gz gdb-d4eba7d1b0493bdcd9cf67e33ff4f8e78f436bc3.tar.bz2 |
gdb/testsuite/
* gdb.stabs/gdb11479.exp: Use runto_main.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.stabs/gdb11479.exp | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2a6c11b..d3d76ef 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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. 2010-11-12 Nathan Froyd <froydnj@codesourcery.com> diff --git a/gdb/testsuite/gdb.stabs/gdb11479.exp b/gdb/testsuite/gdb.stabs/gdb11479.exp index e8288a4..7177530 100644 --- a/gdb/testsuite/gdb.stabs/gdb11479.exp +++ b/gdb/testsuite/gdb.stabs/gdb11479.exp @@ -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" |