From b8a566476b411a4d64254b29daa8812bf8186eae Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 24 Feb 2004 16:09:48 +0000 Subject: [PATCH] 2004-02-24 Andrew Cagney * gdb.java/jmisc.exp: Use the fully quallified name of "main" when setting a breakpoint. Work around PR java/1565. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.java/jmisc.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2adbef4b724..cb36a051441 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-02-24 Andrew Cagney + + * 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 * lib/gdb.exp (gdb_breakpoint): Update query string to match diff --git a/gdb/testsuite/gdb.java/jmisc.exp b/gdb/testsuite/gdb.java/jmisc.exp index 8f6c6fbc2b7..9fd220ff307 100644 --- a/gdb/testsuite/gdb.java/jmisc.exp +++ b/gdb/testsuite/gdb.java/jmisc.exp @@ -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 { -- 2.30.2