| Index: gdb/testsuite/gdb.base/valgrind-db-attach.exp
|
| diff --git a/gdb/testsuite/gdb.base/valgrind-db-attach.exp b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
|
| index b14401fd4b0b155b17e9b07ea73f780d2d081299..56c6914f2df18db38c2c2575e3753e9cef42afbe 100644
|
| --- a/gdb/testsuite/gdb.base/valgrind-db-attach.exp
|
| +++ b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2009, 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright 2009-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -13,11 +13,13 @@
|
| # You should have received a copy of the GNU General Public License
|
| # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
| -set test valgrind-db-attach
|
| -set srcfile $test.c
|
| -set executable $test
|
| -set binfile ${objdir}/${subdir}/${executable}
|
| -if {[build_executable $test.exp $executable $srcfile {debug}] == -1} {
|
| +if [is_remote target] {
|
| + # The test always runs locally.
|
| + return 0
|
| +}
|
| +
|
| +standard_testfile .c
|
| +if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} {
|
| return -1
|
| }
|
|
|
| @@ -31,7 +33,7 @@ regsub -all " " $db_command "\\ " db_command
|
|
|
| set test "spawn valgrind"
|
| set cmd "valgrind --db-attach=yes $db_command $binfile"
|
| -set res [remote_spawn host $cmd];
|
| +set res [remote_spawn host $cmd]
|
| if { $res < 0 || $res == "" } {
|
| verbose -log "Spawning $cmd failed."
|
| unsupported $test
|
|
|