This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: patch to emit debug into emitted classes
- From: Per Bothner <per at bothner dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 10 Mar 2005 15:42:06 -0800
- Subject: Re: patch to emit debug into emitted classes
- References: <4230D445.9000206@bothner.com> <20050310232106.GA25787@nevyn.them.org>
Daniel Jacobowitz wrote:
Did you examine the diffs in debug info? I don't think your patch does
at all what you think it does:
Ooops. Obvious think-o. Revised patch attached.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2005-03-10 Per Bothner <per@bothner.com>
* class.c (push_class): By default, suppress debug output.
(finish_class): Enable debug output for classes we're emitting.
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.221
diff -u -p -r1.221 class.c
--- class.c 4 Mar 2005 15:38:13 -0000 1.221
+++ class.c 10 Mar 2005 22:19:48 -0000
@@ -422,6 +422,7 @@ push_class (tree class_type, tree class_
#endif
CLASS_P (class_type) = 1;
decl = build_decl (TYPE_DECL, class_name, class_type);
+ TYPE_DECL_SUPPRESS_DEBUG (decl) = 1;
/* dbxout needs a DECL_SIZE if in gstabs mode */
DECL_SIZE (decl) = integer_zero_node;
@@ -1904,6 +1905,7 @@ finish_class (void)
java_expand_catch_classes (current_class);
current_function_decl = NULL_TREE;
+ TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (current_class)) = 0;
make_class_data (current_class);
register_class ();
rest_of_decl_compilation (TYPE_NAME (current_class), 1, 0);