This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] gdb.exp (BUILD_DATA_DIRECTORY): New global.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Tue, 20 Mar 2012 17:38:28 -0700 (PDT)
- Subject: [patch] gdb.exp (BUILD_DATA_DIRECTORY): New global.
Hi.
We have some tests that need knowledge of the build data directory,
and it's useful to define it separately anyway.
I will commit this in a few days if there are no objections.
2012-03-20 Doug Evans <dje@google.com>
* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.203
diff -u -p -r1.203 gdb.exp
--- lib/gdb.exp 9 Mar 2012 04:38:53 -0000 1.203
+++ lib/gdb.exp 21 Mar 2012 00:28:03 -0000
@@ -52,10 +52,13 @@ if ![info exists GDBFLAGS] {
}
verbose "using GDBFLAGS = $GDBFLAGS" 2
+# Make the build data directory available to tests.
+set BUILD_DATA_DIRECTORY "[pwd]/../data-directory"
+
# INTERNAL_GDBFLAGS contains flags that the testsuite requires.
global INTERNAL_GDBFLAGS
if ![info exists INTERNAL_GDBFLAGS] {
- set INTERNAL_GDBFLAGS "-nw -nx -data-directory [pwd]/../data-directory"
+ set INTERNAL_GDBFLAGS "-nw -nx -data-directory $BUILD_DATA_DIRECTORY"
}
# The variable gdb_prompt is a regexp which matches the gdb prompt.