GCJ and generics

Per Bothner per@bothner.com
Mon Oct 20 22:32:00 GMT 2003


Bryce McKinlay wrote:
> With the new ABI the offset of bar is unknown at compile time and thus 
> can't be represented in the traditional debugging data, so GDB won't be 
> able to print it. The solution may be to teach GDB about GCJ reflection 
> metadata.

... which is necessary for dynamically loaded classes anyway.
(Though they could conceptually be handled like dynamically
loaded shared libraries.)
There is some old probably-bit-rotted-and-disabled code in
gdb to grovel through the metadata. When using a JIT
you could in principle debug JIT'ed Java code just the same
as regular Java code, as long as the JIT'er and gdb can
communicate about the new classes..
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /