diff options
author | Paul Brook <paul@codesourcery.com> | 2005-03-14 15:42:52 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2005-03-14 15:42:52 +0000 |
commit | 8e3049aa8c77da715c615f85d11e36dd08597c1c (patch) | |
tree | f6da511c6aa353241453198ef90eee8ab96030eb /gdb/testsuite/lib | |
parent | 5ef6bac796736212fd2547acef4d948d224975dd (diff) | |
download | gdb-8e3049aa8c77da715c615f85d11e36dd08597c1c.zip gdb-8e3049aa8c77da715c615f85d11e36dd08597c1c.tar.gz gdb-8e3049aa8c77da715c615f85d11e36dd08597c1c.tar.bz2 |
2005-03-14 Paul Brook <paul@codesourcery.com>
* lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote
targets.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 29a4f76..6d1d867 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -494,14 +494,9 @@ proc mi_gdb_load { arg } { } } elseif { [target_info gdb_protocol] == "remote" } { # remote targets - send_gdb "target [target_info gdb_protocol] [target_info netport]\n" - gdb_expect 60 { - -re "\\^done,.*$mi_gdb_prompt$" { - } - timeout { - perror "Unable to connect to remote target" - return -1 - } + if { [mi_gdb_target_cmd "remote" [target_info netport]] != 0 } { + perror "Unable to connect to remote target" + return -1 } send_gdb "48-target-download\n" gdb_expect 10 { |