Why Does "java_global_trees" Exist?
Tom Tromey
tromey@redhat.com
Fri Jun 11 13:02:00 GMT 2004
>>>>> "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
More information about the Java
mailing list