Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit/java] Work around java/1565 in jmisc.exp
@ 2004-02-24 16:12 Andrew Cagney
  2004-02-24 16:15 ` Daniel Jacobowitz
  2004-02-24 17:07 ` David Carlton
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Cagney @ 2004-02-24 16:12 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

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

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 877 bytes --]

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 {   

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [commit/java] Work around java/1565 in jmisc.exp
@ 2004-02-24 16:33 Michael Elizabeth Chastain
  2004-02-24 17:21 ` Andrew Cagney
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-24 16:33 UTC (permalink / raw)
  To: cagney, gdb-patches

This is redundant.  jmisc2.exp already does exactly what you want.

  % diff jmisc.exp jmisc2.exp
  1c1
  < # Copyright 2000 Free Software Foundation, Inc.
  ---
  > # Copyright 2002 Free Software Foundation, Inc.
  69,70d68
  <     runto ${testfile}.main
  <
  77a76,77
  >     runto ${testfile}.main(java.lang.String\[\])
  >

Also, did Anthony Green approve your patch before you commited it?

Michael C

===

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-02-24 19:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-24 16:12 [commit/java] Work around java/1565 in jmisc.exp Andrew Cagney
2004-02-24 16:15 ` Daniel Jacobowitz
2004-02-24 16:42   ` Andrew Cagney
2004-02-24 16:46     ` Daniel Jacobowitz
2004-02-24 17:07 ` David Carlton
2004-02-24 17:47   ` Andrew Cagney
2004-02-24 17:49     ` Daniel Jacobowitz
2004-02-24 19:55       ` Andrew Cagney
2004-02-24 17:53     ` David Carlton
2004-02-24 16:33 Michael Elizabeth Chastain
2004-02-24 17:21 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox