* lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
authorKevin Buettner <kevinb@redhat.com>
Mon, 23 Jul 2007 22:53:27 +0000 (22:53 +0000)
committerKevin Buettner <kevinb@redhat.com>
Mon, 23 Jul 2007 22:53:27 +0000 (22:53 +0000)
to restarting SID.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/mi-support.exp

index 76bf298ac7f82fb84a135ed75ff8da0e2b87f1a1..6ff8b26ea5274aec7027f7e7d10cb35dbbc828e0 100644 (file)
@@ -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'
index c1381a5c249133fa4de7ad7beeb467803866ac64..8db5b8180d6cdb2b5957b7caead4d33a8787932b 100644 (file)
@@ -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$" {