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 2adbef4b7243eba03593ee87f4c5a55445bfeb1f..cb36a05144116c8b9dee0fe72c1b517cbb3c5a6c 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 8f6c6fbc2b768e11ea2a2ac8c1b0ce622d499589..9fd220ff3074f6662e1cc71ab91c406482debf3d 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 {