This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Skip dlopen-libpthread.exp in cross testing

Pedro Alves <> writes:

> I think we should put an "error" call in build_executable_own_libs
> too, so that whoever adds the next test that uses this doesn't
> end up forgetting the same thing.

OK, how about this below?

Subject: [PATCH] Error in build_executable_own_libs for non-native target


2014-09-28  Yao Qi  <>

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

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 ""
Yao (éå)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]