diff options
author | Yao Qi <yao@codesourcery.com> | 2014-09-28 11:43:46 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-09-30 11:42:56 +0800 |
commit | 6a5f3f4353a317dc16d7371fda2ec80835036af5 (patch) | |
tree | 801f6f154e91ae1c6aa9f8c43e6f3abb863475eb /gdb | |
parent | 345bcc73f2714713c8fc58992d989e3e55be0f8a (diff) | |
download | gdb-6a5f3f4353a317dc16d7371fda2ec80835036af5.zip gdb-6a5f3f4353a317dc16d7371fda2ec80835036af5.tar.gz gdb-6a5f3f4353a317dc16d7371fda2ec80835036af5.tar.bz2 |
Error in build_executable_own_libs for non-native target
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/lib/prelink-support.exp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7f29c56..b7cc1c6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 false. diff --git a/gdb/testsuite/lib/prelink-support.exp b/gdb/testsuite/lib/prelink-support.exp index a0fb12b..113a078 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 "" } |