This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Why Does "java_global_trees" Exist?
- From: Tom Tromey <tromey at redhat dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 11 Jun 2004 06:50:31 -0600
- Subject: Re: Why Does "java_global_trees" Exist?
- References: <cac1qs$8s3$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
Ranjit> Many a time have I been smitten/flummoxed by GDB
Ranjit> proclaiming a supposedly global variable to be non-existent
Ranjit> only to discover it being a macro aliasing one of the
Ranjit> elements of "java_global_trees".
Yeah, that is annoying. If you have a gdb capable of macro expansion
(the newer ones are), you can build gcc with -g3 to work around this.
Unfortunately that still won't get perfect results since many of the
tree macros use statement expressions when compiled with checking
enabled (and gdb doesn't understand those).
Ranjit> Wild guess: is it to have a convenient root for
Ranjit> the GCC garbage collection mechanism?
AFAIK yes.
Tom