This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ and generics


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]