* [PATCH] use runto_main in gdb.stabs/gdb11479.exp
@ 2010-10-29 19:20 Nathan Froyd
2010-10-30 14:16 ` Joel Brobecker
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Froyd @ 2010-10-29 19:20 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] use runto_main in gdb.stabs/gdb11479.exp
2010-10-29 19:20 [PATCH] use runto_main in gdb.stabs/gdb11479.exp Nathan Froyd
@ 2010-10-30 14:16 ` Joel Brobecker
0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2010-10-30 14:16 UTC (permalink / raw)
To: Nathan Froyd; +Cc: gdb-patches
>
> * gdb.stabs/gdb11479.exp: Use runto_main.
Yes. Thank you for doing that.
--
Joel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-30 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 19:20 [PATCH] use runto_main in gdb.stabs/gdb11479.exp Nathan Froyd
2010-10-30 14:16 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).