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
Daniel Jacobowitz wrote:
So does it still help so much?
I think so, but I'll have to re-compile the library.
I did try a simple hello world:
-rw-rw-r-- 1 bothner bothner 56053 Mar 10 15:33 Foo1.s # before
-rw-rw-r-- 1 bothner bothner 12607 Mar 10 15:39 Foo2.s # after
Is the resulting debug information useful?
Why not? Of course it needs to be tested, but the mechanism works for C++,
and has been used by gcc/gdb for many years.
The point is that even a "hello world" program like Foo.java references
a lot of other classes, and there is no point is emitting debug
information for them in Foo.o, since they'll be in *other* objects.
I.e. String.o has the debug information for the String class, so
there is no point duplicating it in Foo.o.
This also reduces the amount of work Gdb has to do.
--
--Per Bothner
per@bothner.com http://per.bothner.com/