This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/java] Work around java/1565 in jmisc.exp


Hello,

This patch modifies jmisc.exp to work around the very very long standing bug java/1565 (just that no one thought to report it?). I'll separatly follow up with a testcase for just that bug.

committed,
Andrew
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.

Index: testsuite/gdb.java/jmisc.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.java/jmisc.exp,v
retrieving revision 1.2
diff -u -r1.2 jmisc.exp
--- testsuite/gdb.java/jmisc.exp	6 Mar 2001 08:21:58 -0000	1.2
+++ testsuite/gdb.java/jmisc.exp	24 Feb 2004 16:08:44 -0000
@@ -66,7 +66,9 @@
 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 {   

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]