X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.multi%2Fbkpt-multi-exec.exp;h=844b72844a584f7b22ca9d25ae888ec4f989205a;hb=16b10d6e61bfa0940333354e8144b3924dc86e56;hp=3893a79059b5bfc0b358bf4a5454312efd6fe8a1;hpb=2d4e03767f097cc306d9fbba613f8a8f4328b4ae;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp index 3893a79059..844b72844a 100644 --- a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp +++ b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp @@ -1,4 +1,4 @@ -# Copyright 2009-2012 Free Software Foundation, Inc. +# Copyright 2009-2020 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,13 +13,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -if { [is_remote target] || ![isnative] } then { +if ![target_can_use_run_cmd] { continue } # Until "catch exec" is implemented on other targets... # -if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then { +if {![istarget "*-linux*"]} then { continue } @@ -27,17 +27,19 @@ set testfile "bkpt-multi-exec" set exec1 "bkpt-multi-exec" set srcfile1 ${exec1}.c -set binfile1 ${objdir}/${subdir}/${exec1} +set binfile1 [standard_output_file ${exec1}] set exec2 "crashme" set srcfile2 ${exec2}.c -set binfile2 ${objdir}/${subdir}/${exec2} +set binfile2 [standard_output_file ${exec2}] -if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings}] } { +set compile_options {debug} + +if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" $compile_options] == -1 } { return -1 } -if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings}] } { +if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" $compile_options] == -1 } { return -1 }