Error in build_executable_own_libs for non-native target
authorYao Qi <yao@codesourcery.com>
Sun, 28 Sep 2014 03:43:46 +0000 (11:43 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 30 Sep 2014 03:42:56 +0000 (11:42 +0800)
gdb/testsuite:

2014-09-30  Yao Qi  <yao@codesourcery.com>

* lib/prelink-support.exp (build_executable_own_libs): Error if
the target isn't native.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/prelink-support.exp

index 7f29c566f383b336cef5b5640b380aebc6d85698..b7cc1c6b327df3ef168878f79a5c5f32a9fb0121 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-30  Yao Qi  <yao@codesourcery.com>
+
+       * lib/prelink-support.exp (build_executable_own_libs): Error if
+       the target isn't native.
+
 2014-09-30  Yao Qi  <yao@codesourcery.com>
 
        * gdb.threads/dlopen-libpthread.exp: Skip it if isnative is
index a0fb12b0bd17c4dce7779ad7c9903fb6fdc57e9f..113a078574df55fe39d49c1de5d9cd74c4bc6a04 100644 (file)
@@ -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 ""
     }