[RFC] gdb/testsuite/gdb.exp not taking environment variable.

Manoj Iyer
2004-07-29T20:43:09Z

hi,

gdb/testsuite/gdb.exp is not taking the environment variable
TOOL_EXECUTABLE, here is a simple fix that does that.

--- gdb_test1/src/gdb/testsuite/lib/gdb.exp 2004-06-14
10:29:30.000000000 -0500
+++ gdb_test/src/gdb/testsuite/lib/gdb.exp 2004-07-29
15:25:50.000000000 -0500
@@ -29,8 +29,8 @@

global GDB

-if [info exists TOOL_EXECUTABLE] {
- set GDB $TOOL_EXECUTABLE;
+if [info exists env(TOOL_EXECUTABLE)] {
+ set GDB $env(TOOL_EXECUTABLE);
}
if ![info exists GDB] {
if ![is_remote host] {

Thanks
----- ----
Manoj Iyer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cognito ergo sum +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++