This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/java] Work around java/1565 in jmisc.exp
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 24 Feb 2004 11:12:11 -0500
- Subject: [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 {