From: Paul Brook Date: Mon, 14 Mar 2005 15:42:52 +0000 (+0000) Subject: 2005-03-14 Paul Brook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e3049aa8c77da715c615f85d11e36dd08597c1c;p=binutils-gdb.git 2005-03-14 Paul Brook * lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote targets. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4c24847a131..b50169e588a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-14 Paul Brook + + * lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote + targets. + 2005-03-09 Joel Brobecker * gdb.dwarf2/dup-psym.S: New file. diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 29a4f76d93e..6d1d8675235 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 {