* lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior

to restarting SID.
This commit is contained in:
Kevin Buettner 2007-07-23 22:53:27 +00:00
parent 4b91b5ac43
commit 2b97317d48
2 changed files with 9 additions and 0 deletions

View 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'

View 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$" {