2004-02-24 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 24 Feb 2004 16:09:48 +0000 (16:09 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 24 Feb 2004 16:09:48 +0000 (16:09 +0000)
* gdb.java/jmisc.exp: Use the fully quallified name of "main" when
setting a breakpoint.  Work around PR java/1565.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.java/jmisc.exp

index 2adbef4..cb36a05 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-24  Andrew Cagney  <cagney@redhat.com>
+
+       * gdb.java/jmisc.exp: Use the fully quallified name of "main" when
+       setting a breakpoint.  Work around PR java/1565.
+
 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
 
        * lib/gdb.exp (gdb_breakpoint): Update query string to match
index 8f6c6fb..9fd220f 100644 (file)
@@ -66,7 +66,9 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_test "set print sevenbit-strings" ".*"
 
 if ![set_lang_java] then {
-    runto ${testfile}.main
+    # Ref PR gdb:java/1565.  Don't use the simpler "break jmisc.main".
+    # As of 2004-02-24 it wasn't working and is being tested separatly.
+    runto "\'${testfile}.main(java.lang.String\[\])\'"
 
     send_gdb "ptype jmisc\n"   
     gdb_expect {