From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC] lib/mi-support.exp: kill SID inferior prior to reconnecting
Date: Sat, 21 Jul 2007 04:29:00 -0000 [thread overview]
Message-ID: <20070720141802.58d24ee5@ironwood.lan> (raw)
Below is another SID related patch. This patch was motivated by
gdb.mi/mi-var-cp.exp which uses the inline test support in
lib/mi-support.exp. The first inline test runs okay, but subsequent
tests run into trouble when attempting to reconnect to SID using the
same port as the existing connection. This patch simply kills (or
attempts to kill) the inferior first to avoid that problem.
Comments?
* lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
to restarting SID.
Index: testsuite/lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.47
diff -u -p -r1.47 mi-support.exp
--- testsuite/lib/mi-support.exp 23 May 2007 12:41:14 -0000 1.47
+++ testsuite/lib/mi-support.exp 19 Jul 2007 00:52:03 -0000
@@ -464,6 +464,10 @@ proc mi_gdb_target_load { } {
}
} elseif { [info procs send_target_sid] != "" } {
# For SID, things get complex
+ send_gdb "kill\n"
+ gdb_expect 10 {
+ -re ".*$mi_gdb_prompt$"
+ }
send_target_sid
gdb_expect 60 {
-re "\\^done.*$mi_gdb_prompt$" {
next reply other threads:[~2007-07-20 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-21 4:29 Kevin Buettner [this message]
2007-07-23 19:02 ` Daniel Jacobowitz
2007-07-24 1:25 ` Kevin Buettner
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=20070720141802.58d24ee5@ironwood.lan \
--to=kevinb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/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