From: Nathan Froyd <froydnj@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: [PATCH,testsuite] fix pending.exp failure with remote targets
Date: Fri, 13 Nov 2009 19:12:00 -0000 [thread overview]
Message-ID: <20091113191236.GM31393@codesourcery.com> (raw)
The patch below fixes a problem with pending.exp. pending.exp uses a
bare 'run' to start execution of the test, which is not appropriate for
remote targets like gdbserver. The patch fixes this by using
gdb_run_cmd to start execution of the test.
Tested with cross to powerpc-linux-gnu. OK to commit?
-Nathan
* gdb.base/pending.exp: Use gdb_run_cmd to start the program
instead of a bare "run".
Index: gdb.base/pending.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pending.exp,v
retrieving revision 1.16
diff -u -u -r1.16 pending.exp
--- gdb.base/pending.exp 3 Jan 2009 05:58:03 -0000 1.16
+++ gdb.base/pending.exp 13 Nov 2009 19:10:19 -0000
@@ -71,7 +71,10 @@
gdb_load_shlibs $lib_sl
set pendfunc1_loc [gdb_get_line_number "y = x + 4" ${libfile}.c]
-gdb_test "run" \
+
+gdb_run_cmd
+
+gdb_test "" \
".*Breakpoint.*pendfunc1.*at.*pendshr.c:$pendfunc1_loc.*y = x \\+ 4.*" \
"run to resolved breakpoint 1 (without symbols)"
next reply other threads:[~2009-11-13 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 19:12 Nathan Froyd [this message]
2009-11-13 19:34 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091113191236.GM31393@codesourcery.com \
--to=froydnj@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox