* lib/java.exp (java_init): Ignore $GCJ if it is empty.

This commit is contained in:
Daniel Jacobowitz 2009-07-06 19:14:01 +00:00
parent 7f86f49920
commit d80a43f961
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-07-06 Daniel Jacobowitz <dan@codesourcery.com>
* lib/java.exp (java_init): Ignore $GCJ if it is empty.
2009-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* lib/gdbserver-support.exp (gdbserver_start): Loop spawning

View File

@ -45,7 +45,7 @@ proc java_init { args } {
if [info exists TOOL_EXECUTABLE] {
set GCJ_UNDER_TEST $TOOL_EXECUTABLE;
} else {
if [info exists env(GCJ)] {
if { [info exists env(GCJ)] && $env(GCJ) != "" } {
set GCJ_UNDER_TEST $env(GCJ)
} else {
global tool_root_dir