aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2007-07-23 22:53:27 +0000
committerKevin Buettner <kevinb@redhat.com>2007-07-23 22:53:27 +0000
commit2b97317d481b0826246ac8e2f7a43be89d5cd53d (patch)
treee387f4a8cad230fa0c7a1dcd7d7ca5f467603606 /gdb
parent4b91b5ac43413b9fd8f202284ab93759f3a3cced (diff)
downloadgdb-2b97317d481b0826246ac8e2f7a43be89d5cd53d.zip
gdb-2b97317d481b0826246ac8e2f7a43be89d5cd53d.tar.gz
gdb-2b97317d481b0826246ac8e2f7a43be89d5cd53d.tar.bz2
* lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
to restarting SID.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/mi-support.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 76bf298..6ff8b26 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-23 Kevin Buettner <kevinb@redhat.com>
+
+ * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
+ to restarting SID.
+
2007-07-18 Kevin Buettner <kevinb@redhat.com>
* gdb.cp/ref-params.exp (gdb_start_again): Invoke `gdb_exit'
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index c1381a5..8db5b81 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -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$" {