From: Yao Qi Date: Sun, 28 Sep 2014 03:43:46 +0000 (+0800) Subject: Error in build_executable_own_libs for non-native target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a5f3f4353a317dc16d7371fda2ec80835036af5;p=binutils-gdb.git Error in build_executable_own_libs for non-native target gdb/testsuite: 2014-09-30 Yao Qi * lib/prelink-support.exp (build_executable_own_libs): Error if the target isn't native. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7f29c566f38..b7cc1c6b327 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-30 Yao Qi + + * lib/prelink-support.exp (build_executable_own_libs): Error if + the target isn't native. + 2014-09-30 Yao Qi * gdb.threads/dlopen-libpthread.exp: Skip it if isnative is diff --git a/gdb/testsuite/lib/prelink-support.exp b/gdb/testsuite/lib/prelink-support.exp index a0fb12b0bd1..113a078574d 100644 --- a/gdb/testsuite/lib/prelink-support.exp +++ b/gdb/testsuite/lib/prelink-support.exp @@ -118,6 +118,10 @@ proc file_copy {src dest} { proc build_executable_own_libs {testname executable sources options {interp ""} {dir ""}} { global subdir + if { ![isnative] } { + error "This proc can be only used for native target." + } + if {[build_executable $testname $executable $sources $options] == -1} { return "" }