* gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
	* gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
	(TYPE_CPLUS_REALLY_JAVA): New macro.
	* dwarf2read.c (process_structure_scope): Set
	TYPE_CPLUS_REALLY_JAVA.
gdb/testsuite
	* gdb.java/jprint.java (jprint.hi): New field.
	* gdb.java/jprint.exp: Print string.
This commit is contained in:
Tom Tromey
2011-07-05 13:36:42 +00:00
parent 177b42fefa
commit eb2a6f420b
7 changed files with 28 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// jprint.java test program.
//
// Copyright 2004, 2010
// Copyright 2004, 2010, 2011
// Free Software Foundation, Inc.
//
// Written by Jeff Johnston <jjohnstn@redhat.com>
@ -42,6 +42,7 @@ class jvclass {
public class jprint extends jvclass {
public static Properties props = new Properties ();
public static String hi = "hi maude";
public int dothat (int x) {
int y = x + 3;