diff options
author | Pedro Alves <palves@redhat.com> | 2012-02-15 12:51:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-02-15 12:51:17 +0000 |
commit | a1999d402252588a8087f705f21da889135a222c (patch) | |
tree | ef271b017ea848da40ea786979f088403c684fd4 /gdb/testsuite/lib | |
parent | 7cee1e5405310dae3ab7f6356d56f6b5f69e4b2c (diff) | |
download | gdb-a1999d402252588a8087f705f21da889135a222c.zip gdb-a1999d402252588a8087f705f21da889135a222c.tar.gz gdb-a1999d402252588a8087f705f21da889135a222c.tar.bz2 |
2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.server/ext-attach.exp: Make sure gdb is disconnected.
* gdb.server/ext-run.exp: Make sure gdb is disconnected.
* gdb.server/file-transfer.exp: Make sure gdb is disconnected.
* gdb.server/server-mon.exp: Make sure gdb is disconnected.
* gdb.server/server-run.exp: Make sure gdb is disconnected.
* lib/gdbserver-support.exp (gdbserver_start_extended): Only
prepend "extended-" to $gdbserver_protocol if $gdbserver_protocol
doesn't start with "extended-" already.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdbserver-support.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 6d3a0e5..ee66e48 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -364,7 +364,10 @@ proc gdbserver_start_extended { } { global use_gdb_stub set res [gdbserver_start "--multi" ""] - set gdbserver_protocol "extended-[lindex $res 0]" + set gdbserver_protocol [lindex $res 0] + if { [string first "extended-" $gdbserver_protocol] != 0} { + set gdbserver_protocol "extended-$gdbserver_protocol" + } set gdbserver_gdbport [lindex $res 1] # Even if the board file is testing with target remote, our caller |