| Index: gdb/testsuite/gdb.base/dbx.exp
|
| diff --git a/gdb/testsuite/gdb.base/dbx.exp b/gdb/testsuite/gdb.base/dbx.exp
|
| index 843d637d7ade05054e76765d8b7ce04325486d0c..7d89b81eacbdabd2127c83faa849589deacfdced 100644
|
| --- a/gdb/testsuite/gdb.base/dbx.exp
|
| +++ b/gdb/testsuite/gdb.base/dbx.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 1998-1999, 2001, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 1998-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
|
| @@ -14,28 +14,12 @@
|
| # along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
| -set testfile1 "average"
|
| -set testfile2 "sum"
|
| -set testfile "dbx-test"
|
| -set binfile1 ${objdir}/${subdir}/${testfile1}
|
| -set binfile2 ${objdir}/${subdir}/${testfile2}
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_testfile average.c sum.c
|
|
|
| -
|
| -
|
| -if { [gdb_compile "${srcdir}/${subdir}/average.c" "${binfile1}.o" object {debug}] != "" } {
|
| - untested dbx.exp
|
| - return -1
|
| -}
|
| -
|
| -if { [gdb_compile "${srcdir}/${subdir}/sum.c" "${binfile2}.o" object {debug}] != "" } {
|
| - untested dbx.exp
|
| - return -1
|
| -}
|
| -
|
| -if { [gdb_compile "${binfile1}.o ${binfile2}.o" ${binfile} executable {debug}] != "" } {
|
| - untested dbx.exp
|
| - return -1
|
| +if {[build_executable $testfile.exp $testfile \
|
| + [list $srcfile $srcfile2] debug] == -1} {
|
| + untested $testfile.exp
|
| + return -1
|
| }
|
|
|
| #
|
| @@ -181,10 +165,10 @@ proc gdb_file_cmd {arg} {
|
| set last_loaded_file $arg
|
|
|
| if [is_remote host] {
|
| - set arg [remote_download host $arg];
|
| + set arg [remote_download host $arg]
|
| if { $arg == "" } {
|
| error "download failed"
|
| - return -1;
|
| + return -1
|
| }
|
| }
|
|
|
|
|