This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] use runto_main in gdb.stabs/gdb11479.exp
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 29 Oct 2010 12:20:40 -0700
- Subject: [PATCH] use runto_main in gdb.stabs/gdb11479.exp
The patch below changes gdb.stabs/gdb11479.exp to use
runto_main/continue instead of a manual run command. This change makes
the test work better on remote targets.
Tested with cross to powerpc-linux-gnu using gdbserver. OK to commit?
-Nathan
* gdb.stabs/gdb11479.exp: Use runto_main.
---
gdb/testsuite/gdb.stabs/gdb11479.exp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
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"
--
1.6.3.2