Index: gdb/testsuite/gdb.multi/bkpt-multi-exec.exp |
diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp |
index 6a76d0779ab21f668d0d469b3e7afe7ec135a146..c4eee8fae78cdee9f0d542d5b66cec2e8a0d375c 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-2013 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 |
@@ -33,11 +33,15 @@ set exec2 "crashme" |
set srcfile2 ${exec2}.c |
set binfile2 [standard_output_file ${exec2}] |
-if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings}] == -1 } { |
+set compile_options {debug nowarnings} |
+set dirname [relative_filename [pwd] [file dirname $binfile1]] |
+lappend compile_options "additional_flags=-DBASEDIR=\"$dirname\"" |
+ |
+if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" $compile_options] == -1 } { |
return -1 |
} |
-if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings}] == -1 } { |
+if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" $compile_options] == -1 } { |
return -1 |
} |