This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[PATCH] Use DW_TAG_interface_type for Java interfaces


Hi!

Given that GDB has been fixed to handle DW_TAG_interface_type
back in December 2007 and that GCC 4.5+ requires far more recent GDB
for debugging the generated code, I think there is no reason anymore to
keep this commented out.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

2010-05-25  Jakub Jelinek  <jakub@redhat.com>

	* lang.c (java_classify_record): Return RECORD_IS_INTERFACE
	for interfaces.

--- gcc/java/lang.c.jj	2010-05-24 17:52:21.000000000 +0200
+++ gcc/java/lang.c	2010-05-25 10:15:29.000000000 +0200
@@ -880,9 +880,7 @@ java_classify_record (tree type)
   if (! CLASS_P (type))
     return RECORD_IS_STRUCT;
 
-  /* ??? GDB does not support DW_TAG_interface_type as of December,
-     2007.  Re-enable this at a later time.  */
-  if (0 && CLASS_INTERFACE (TYPE_NAME (type)))
+  if (CLASS_INTERFACE (TYPE_NAME (type)))
     return RECORD_IS_INTERFACE;
 
   return RECORD_IS_CLASS;

	Jakub


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