From 2b97317d481b0826246ac8e2f7a43be89d5cd53d Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Mon, 23 Jul 2007 22:53:27 +0000 Subject: [PATCH] * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior to restarting SID. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/mi-support.exp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 76bf298ac7f..6ff8b26ea52 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-23 Kevin Buettner + + * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior + to restarting SID. + 2007-07-18 Kevin Buettner * 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 c1381a5c249..8db5b8180d6 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$" { -- 2.30.2