aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-07-06 19:14:01 +0000
committerDaniel Jacobowitz <drow@false.org>2009-07-06 19:14:01 +0000
commitd80a43f9615fd7a29c00083e214d2b5053db0500 (patch)
tree10d0422860cf84281630bf2c9cf11d6508f40783 /gdb
parent7f86f49920f456a7b552135e50d867422af8f9b4 (diff)
downloadgdb-d80a43f9615fd7a29c00083e214d2b5053db0500.zip
gdb-d80a43f9615fd7a29c00083e214d2b5053db0500.tar.gz
gdb-d80a43f9615fd7a29c00083e214d2b5053db0500.tar.bz2
* lib/java.exp (java_init): Ignore $GCJ if it is empty.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/java.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index c118286..7b2d820 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/lib/java.exp b/gdb/testsuite/lib/java.exp
index c92fc37..19619df 100644
--- a/gdb/testsuite/lib/java.exp
+++ b/gdb/testsuite/lib/java.exp
@@ -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